Programming brehs

KOOL-AID

I Pitty Da Fool
Supporter
Joined
Aug 12, 2013
Messages
24,748
Reputation
16,297
Daps
69,922
Close the IDE first, then delete them.

They should be removed by themselves when you close the IDE anyways though.
I'll try dat but i emaild my teacher and she just said do edit then save and quit n Monday she will teach me how to delete them. Appreciate it fam
 

KOOL-AID

I Pitty Da Fool
Supporter
Joined
Aug 12, 2013
Messages
24,748
Reputation
16,297
Daps
69,922
@SheWantTheD im stuck on this part of my program, im trynna use:

for(selection<1 || selection>6) {
printf("invalid value entered please put correct value:");
scanf("%d", &selection);
}

but when i run gcc it says:

error: expected â;â before â)â token
for(selection<1 || selection>6) {
^(this is under the ")" mark after the 6)
error: expected expression before â)â token

:lupe: is my or statement wrong and shld i just do two separate "for" iterations ("assume that the user can provide an invalid input only once, second time user is going to give the right value for the size"- directions).
 

KOOL-AID

I Pitty Da Fool
Supporter
Joined
Aug 12, 2013
Messages
24,748
Reputation
16,297
Daps
69,922
Do you really have to use vim? :skip:

Hopefully they have nano on the OS you're using.

And a for loop in C expects 3 expressions. Like

for(int x=0; x<10; ++x)


Try replacing "while" in place of "for"
lol u right the for loop those always have them 3 conditions idk why i ain't relize that and yea a while can essentially replace the for. we usin c+ so the want us to use vim. oh and nothing needs to be increases after each loop i just need to to print the message and make them put in a correct vaulue on the next attempt. lemme try and i'll let you no fam
 

TRUEST

Superstar
Joined
May 17, 2012
Messages
14,203
Reputation
2,661
Daps
54,217
Reppin
NULL
Do you really have to use vim? :skip:

Hopefully they have nano on the OS you're using.

And a for loop in C expects 3 expressions. Like

for(int x=0; x<10; ++x)


Try replacing "while" in place of "for"

lol what u got againt vim? nano sucks ass.
 
Top