- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
27 Posted Topics
Look Argc stands for the argument counter Argv is the array of arguments here is the simplest demonstration. [code] #include <iostream> int main(int argc,char *argv[]){ int x; x=argc; cout<<x; for(;x!=0;x--){ cout<<argv[x]<<endl; cin.get(); return 0; } [/code] It's not hard to understand For example if I did ./counter arg1 arg2 a …
Um man I don't mean to be a douche but I've never heard of filemaker 9 and if your just starting vb in my book your still a novice (no offense .) personally I would recommend any C derived language and or python and if your going to be doing …
What to code? post useful things that you do repetitively on a daily basis(must be non Windows or Mac ) specific that you would like automated but don't have the time to code?(as my machine is too slow to run windows or mac sorry :( )
Most people will tell you that mixing C and C++ isn't good but there isn't any problem with doing so, They just recommend not to because most everyone likes conforming to the standards. Technically C++ isn't just C with Classes and some other stuff but under the hood it still …
I'm not known to be a very memory friendly guy but after about 4 hours debugging my lua+sdl in C++ I finally figured out how to use threads but now I have another problem. I apparently have zero knowledge of memory manangement but thats kind of ok so I've narrowed …
did you install the headers manually and library manually or through an installer? ehh I wish windows had a /usr/include directory. As far as image libraries libpng is pretty good for well png's this might also be worth looking into [URL="http://cimg.sourceforge.net/"]Cimg[/URL] it was first on the list for a google …
I am having trouble running the lua interpreter at the same time im running sdl and am also having trouble with processing events in sdl while lua is embedded basically in some pseudo code this is what it looks like so far [CODE] #include <lua.hpp> #include <SDL/SDL.h> #include "user.hpp" int …
You can code your GUI if you prefer but you can use Qt 4's Designer(good luck working with it I find it much easier to hard code it then to use the designer) as far a Gui libraries in general take a pick out of the litter you got GTK, …
You must first choose a base language that has support(via additional libraries and headers) for the other languages. C and C++ has additional libraries for Python,Lua,Perl,XML and some more. I'm trying my best to implement Lua in a project of mine but am stuck with parsing events with SDL while …
unless your planning on using this in a business there is really no reason you can't post full code. from what i could comprehend your are trying to ignore the value 100? and then print a newline ? if so [CODE] //replace value with what your are trying to compare …
A little information put huge functions in a header then #include that header usually with #include "myheader.h" or "myheader.hpp" that way if the error is in one of the functions the compiler will be a tiny bit more information in spitting errors out. also i do hope your not using …
Optimization depends on your logic g++/gcc tries to optimize it with as little generated assembly as possible but if your logic demands that things must be done in a certain order it might not be possible to break it down any further without changing the logic. what im say is …
take the time to learn to code.... ill get you started [URL="http://lmgtfy.com/?q=c%2B%2B+tutorials"]Click Me[/URL] also see this link as well [URL="http://www.perlmonks.org/?node_id=193859"]How to Code a UAV[/URL]
command line/terminal arguments are driving me bananas according to most of my google searchs this should work by the way i am using g++/gcc version 4.6.0 [CODE] #include <iostream> #include <string> using namespace std; int main(int argc, char **argv){ if(argc==0){ cout<<"Use -l or -ls!\n"; } if(string(argv[1])== "-l"){ //code for lua …
I literally hate to ask this question but I am having trouble with Qt 4 basically all I am trying to do is clear the textEdit area with clear() but I am not sure of what to do. In C++ I would just [CODE]textEdit->clear();[/CODE] and it would do so. I …
Hey Just thought I might post some code I've Been refining its not really useful but it shows (sort of) how to print formatted text if you have any suggestions please I've almost got the kinks out weird numbers will cause it to output weird. But if you throw 9 …
Well you could (assuming you know how to work with file i/o in python) just have it spit out all but that line Looks similar to this print='yes' If print=='yes' : PrintTofileFunctiongoeshere If getridof[1]='>' : print='no' Im sure there are better ways but im still new to python so i …
Yes i realize this is the fibonacci sequence and i understand the math im just having trouble understanding the line in red what does it equate to in laymans terms? Thanks in advance :D [CODE] a,b=0,1 while b < 100: print b [COLOR="Red"]a,b=b,a+b[/COLOR][/CODE]
Im having trouble with gtk open file dialog it will open the first time but after i closed it i cant reopen it Ive tried casting it as different objects but i cant seem to fix it. After attempting to reopen the dialog box it spits out gtk_dialog_run: assertion 'GTK_IS_DIALOG …
Dude I love reading code as much as the next guy if not more but you gotta use code tags and search google to make certain that is a valid style for your object and make sure you link the appropriate files and headers
@cute cat we don't mean to be mean we simply ask that you show us your best we' re not going to make fun or be rude we just want to see what you have so far and we will point you in the right direction. It's just that as …
It's not as hard as some people make it out to be for instance I can understand more code than I have the ability to write my advice is read the program like a book start at the top because that's usually where the foundation of the rest of the …
You might get a little more help if you renamed your class 3 k's stand for an organization not well liked in America. I'm no expert in java but I have a hitch that you want this to hook into another program to control the volume correct ? I'm not …
Google = your best friend Cprogramming.com = for c and c++ tutorials Cplusplus.com = c++ specific tutorials Sorry if this counts as advertising but they really are good sources. any coding problem ask here but don't ask for code with out at least showing an effort. Graphics specific granted that …
i get an undefined reference to _objc_class_name_greeter error when I compile When I remove the line Greeter * Hi=[[greeter alloc] init]; it compiles and all but one option works any idea what's wrong with that line Also the error is at .data+0xa4 and correction it actually happens during linking ? …
That had a string delimiter that you could specify. It would be quite useful if you guys could help me remember. It might have been fscanf or might have been a c++ function.
The End.
Celtrix