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
Function and While Help
Function and While Help
Apr 17, 2015 at 10:43am UTC
HelenI
(51)
Hello, can i put a function in a while that's in a function......
1
2
3
4
5
6
7
8
void
main(){
while
(......)
if
(.....) statef=1; )
void
statef(){ ..... }
Last edited on
Apr 17, 2015 at 10:44am UTC
Apr 17, 2015 at 10:58am UTC
coder777
(8444)
Yes, but not like that. Line 4 should be:
statef();
Apr 17, 2015 at 11:08am UTC
HelenI
(51)
thank you!
Topic archived. No new replies allowed.