0

im creating a simple game and i want it to have continous 10 rounds . but i dont have any idea , im not allowed to use looping .tnx

6
Contributors
5
Replies
8
Views
6 Years
Discussion Span
Last Post by sergent
0

OK, this is the part of the help where YOU help US understand WTF you want. We weren't in the classroom, or heard the lecture, or read the text, or even know the teacher.

First - find out what you want to do. Your info here just isn't enough to start talking about a C program.

Second - Get started on it. You need more than idea's, you need pseudo code and at least the bare skeleton of a C program. Put some work into it, and THEN post it, and ask your specific questions.

You'll need to do SOME kind of looping. You don't have to use standard C loops, but some looping logic (perhaps by a call and return of a function), will be needed.

I'd suggest the game have simple rounds if you need to have 10 of them.

Edited by Adak: n/a

1

Not using looping could mean recursion or goto label, depending on definition.

Or you could just put one "round" in a function, and call it 10 times explicitly, returning any information you need to track across the whole game.

Votes + Comments
Good thinking.
0
int game;
printf("round one");
.
.
. //other game stuff
printf("round two");
.
.
. //round 2 stuff

Thats the most obvious way to do it.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.