The problem is when I'm trying to compare two strings. a1 and " ". The string a1 is set to [3].
If the comparison is true then it makes a1 = ".."
Here is the source code. I made most of it when I only read half of my C book, so PLEASE, bear with me. I know there is a lot of security flaws, and tricks to make this much more compact and clean. I'll do that latter.
Right now, functionality is numero uno
Important Source Code:
Full Source Code:Code:int maxC; int max1; int max2; int max3; int max4; char a1[3] = " "; char a2[3] = " "; char a3[3] = " "; for (; max1>0; ) { compare = strcmp(a1," "); if (compare==0) { a1 = ".."; max1= max1 - 2; continue; } compare = strcmp(a2," "); if (compare==0) { a2 = ".."; max1= max1 - 2; continue; } compare = strcmp(a3," "); if (compare==0) { a3 = ".."; max1= max1 - 2; continue; } }
LS.C



1Likes
LinkBack URL
About LinkBacks




