Basic C loop - TechRepublic
General discussion
November 4, 2002 at 12:06 PM
mckay_w

Basic C loop

by mckay_w . Updated 23 years, 5 months ago

LEARNER C PROGRAMMER
I am trying to use either a ‘while’ or a ‘do-while’ loop using a string, but it doesnt want to work, could someone please help me.

THESE ARE THE BITS OF CODE THAT IS AFFECTED.

char Description[100];

while (Description != “zzz”)
{
printf(“Enter Description: “);
scanf(” %s”, Description);
….
}

This discussion is locked

All Comments