>Without displaying "Press any key to continue" and waiting to be closed manually.
Don't run it from your IDE. Some GUI front-ends to compilers like Visual C++ do that if you run the program from...
Type: Posts; User: twm
>Without displaying "Press any key to continue" and waiting to be closed manually.
Don't run it from your IDE. Some GUI front-ends to compilers like Visual C++ do that if you run the program from...
What did I tell you before? Functions inside functions are illegal.
Can you post some code? The error looks like you're trying to nest functions (which is illegal in C/C++).
>that you can backup with sufficient argument
Sufficient argument like "My CS instructor has a really great saying"? ;)
>Must be nuts eh?
No way, if you don't think you're ready then you shouldn't leave. :)
>Hey twm - chill on the sig man.
Joke...funny...laugh. :D
>How can I put a range of numbers in an array without typing in all the numbers. Like 0-24,25-49,50-74,75-100
You don't. Try either building a vector at runtime or using paired numbers for the...
>Any ideas.. this is kind of hard to explain.
Source code, something we can compile. Just give me a quick program like I posted so I can test it.
>Is this a new format? Why would it work ok in my old compiler?
Your old compiler probably doesn't know that modern C++ doesn't allow implicit int.
>Isn't ls ls what I want?
Not exactly. Try this and see if fork does something to your variable, the following works perfectly for me:
Fri Oct 31 4:12:58pm
sangut: ~/misc
> <c.c less...
I believe you need to set the format flags to floating-point, something like this IIRC:
cout.setf(ios_base::fixed, ios_base::floatfield);
>CDACSIVSession::CommandSetup(char *pszResponse, int nRespLen)
Should be:
int CDACSIVSession::CommandSetup(char *pszResponse, int nRespLen)
cout<<'\n';
This moves the cursor to the start of the next line. That's the best I can do without seeing your code.
>I didn't know that was an issue with forks.
It isn't, but you're most likely not using execlp correctly. The first argument is the program to run, the second argument is the arguments to pass to...
>I'm going to my first REAL party.
The kind with booze and X rated content where you get laid sometime before sunrise? :D If you do it right you'll understand why I like Halloween so much. ;)
>Third, they're professors, not professional coders, so they don't have to know the fine points of a language
You mean fine points like 'void main' and 'fflush(stdin)'? I don't know about you, but...
>How can you even say that?! Some of my professors are simply brilliant
Note that I said most, not all. Yea, there are some amazing teachers out there, but the majority know less than many of this...
>How can I do a similar function that instead of taking a FILE variable uses the variable already defined?
Sounds like you want sscanf if the defined variable you're talking about is EntScript...
Ctrl-C is usually SIGINT, so all you need to ignore it. :)
struct sigaction sac;
if (sigaction(SIGINT, NULL, &sac) == -1)
perror("Couldn't get old handler");
else {
...
You can't return arrays, only pointers to char and pointers to arrays. So your code would look like this:
char *getstr() {
return "I work";
}
int main {
char *str;
How about minikui? :D:p
You can't use the assignment operator with arrays except initialization, why not use a vector instead of an array?
>I feel I may be missing quite a bit by not having the voice of experience to help me through, any other ideas on this?
Sorry, missed this part. Most teachers are stupid anyway, so you're not...
>could somebody give me a little background on what a graphics library is?
Allegro, TK, OpenGL, DirectX...basically anything that lets you work with pixels instead of characters. From what I've...
Self taught by reading souce code and faking my way through things until I actually knew what to do. :D