cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Breaks
Breaks
Sep 28, 2010 at 3:03pm UTC
ajones122392
(1)
I am writing a programm for school and in the program i want to make it so it will skip lines of programm but then come back to it later does anyone know how that would be able to be done if so send me an example please and thank you.
Sep 28, 2010 at 3:29pm UTC
helios
(17574)
Something like this?
1
2
3
4
5
6
7
void
f(){
/*...*/
}
void
g(){
//...
f();
//...
}
Last edited on
Sep 28, 2010 at 3:29pm UTC
Sep 28, 2010 at 3:47pm UTC
Kyon
(912)
Use either functions, loops or (but I highly recommend to not use it) labels and goto's.
Topic archived. No new replies allowed.