Ask your own question, for FREE!
Computer Science 9 Online
OpenStudy (anonymous):

very new to C++... but i need some help :l so.... im writing something that will act as a batch; using the system command. it wont loop like it does in the batch program. :l HALP! should be simple to most of you :) here's my code #include int main() { system("@echo off"); system(":1"); system("echo OH MY GOD..."); system("echo RAINBOWS!"); system("color c1"); system("color 6b"); system("color ea"); system("color ae"); system("color be"); system("color 16"); system("color dc"); system("goto :1"); its not performing the "goto :1"

OpenStudy (anonymous):

its not performing the "goto :1" command... therefore not looping and just quitting once it gets done :l

OpenStudy (anonymous):

༼ つ ◕_◕ ༽つ︻╦╤─ I DON'T KNOW ANYTHING

OpenStudy (anonymous):

LOL :P do you know anything about batch? XD

OpenStudy (anonymous):

@echo off :1 echo HALLO THERE! pause>nul :) put that into a .txt file and rename it to lol.bat :P

OpenStudy (anonymous):

download this :)

OpenStudy (anonymous):

nope trust when there is a problem on the comperter i turn it off and turn it back on or ask mr. ted

OpenStudy (anonymous):

download seizure.bat :)

OpenStudy (anonymous):

@Lyrae you know anything about this? :)

OpenStudy (e.mccormick):

Each system call is a seperate call.

OpenStudy (e.mccormick):

http://www.cplusplus.com/reference/cstdlib/system/

OpenStudy (anonymous):

e.mccormick is a life saver XD

OpenStudy (anonymous):

nvm figured it out :)

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!