nothing prints!?

Pages: 12
No.
I am the single user of this stand-alone system
Prints fine for me. That is, without the generate function. I get the expected 'here' statements printed to the screen.

This was on Windows 7 using the GCC compiler.
Last edited on
It works fine with the generate function once you fix the array size, or the number of loop iterations. This is a different issue from what the OP described and Im wondering if they have ever been able to compile on this system.
closed account (Dy7SLyTq)
no linux doesnt lock files (well ubuntu locks one when your downloading through apt-get). ive had the same source file open across three text editors (vim, gedit, and i think it was the wine notepad)
> (while true) Why don't you like it?
> Because you don't know what to press to exit it?
> Try Ctrl+C, you should be running console applications from within the command prompt anyway
In which case you wouldn't need stupid hacks to `keep the console open'
The method is awful and it is not original at all.

@OP:
Try the first snip in http://www.cplusplus.com/doc/tutorial/program_structure/
see if you can build it, run it, and if the output is what is to be expected
Learn to differentiate the stages
About permission denied, I would guess that you don't have your current path in the PATH. Try:
$ ./a.out

I put this in ~/.profile, but you might have a different file for setting environment variables:
PATH=".:$PATH"
Which declares that the current directory is a place to look for executables, so I don't need to type the './'

Note that this might cause confusion if you make a program with the same name as something in a real bin directory.
Last edited on
The problem is with the loop of lines 14&15..........
But what is it that it doesn't execute?

EDIT:awesome!It didn't execute the loop of line 14, because I was declared int. I changed that to 'long' and it worked!
Last edited on
nice one.

In which case you wouldn't need stupid hacks to `keep the console open'
The method is awful and it is not original at all.


Here here!
Topic archived. No new replies allowed.
Pages: 12