Hey everyone,
First post here but and I can not see why when I run this section of the program it skips right over the if statement like it is not even there. Here is the code and the compiler I am using is MS Visual C++ version 6.0
Thanks for any and all help the if statement with the problem is in red.Code:#include "stdafx.h" void create() { char name[21]=""; int confirm=0; printf("Welcome to Character Creation please answer the following questions.\n"); location0: ; printf("What is your characters name?\n"); scanf("%s",&name); printf("Your name is %s\n",name); printf("Is this correct? (0 for yes/1 for No)\n"); if(confirm==1) { goto location0; } printf("works?\n"); }
~J



LinkBack URL
About LinkBacks


