and the book assigned for this class doesnt have anything on validation
for (count = 0; count<=size-1; count++)
{
cin>> your_answers[count];
while (your_answers[count] != 'a' &&...
Type: Posts; User: taugust7
and the book assigned for this class doesnt have anything on validation
for (count = 0; count<=size-1; count++)
{
cin>> your_answers[count];
while (your_answers[count] != 'a' &&...
i am studying, i dont learn well by book
while ( your_answers != 'a' && 'b' && 'c' && 'd')
didn't work
........
also i dont know what the crap isalpha and tolower are, this is an intro level class and im tryin to teach myself arrays and loops ya know
thank you sir ill see what i come up with
while (your_answers != 'a', 'b', 'c', 'd')
{
cout<< "Your answer of "<< your_answers[count]<<" is invalid, please select A,B,C or D. \n";
cin>>...
#include <iostream>
#include <string>
using namespace std;
int main()
{
int count, correct = 0, incorrect = 0;
well either way sebastianinininnininininininininininininiininininiininiiinininin
do you know what i should look into if i want to validate my answers without using (true)
all i can think of is...
its not a homework assignment,
my teacher expects us to learn loops in a week and didnt cover do's and fors,
im goin over a few assignments and tryin to get them but i need alot of help
he told us...
this is good, but i cant use (true)
im limited in the crap i can use so if there is another simpler way of validation i would appreciate if you could help me
#include <iostream>
#include <string>
using namespace std;
int main()
{
int count, correct = 0, incorrect = 0;
okay i feel like such a newb why the -1 in the for loops?
for (count = 0; count<=size-1; count++)
{
cin>> your_answers[count];
}
and also he told us to use 21 because we have to...
also, i cant use strings, we werent taught that
this is annoyingly complicated i hate nested loops
the updated version works, now i jus need help on the a, b, c, d validation and displaying all incorrect answers
C:\Users\TimmyD\Desktop\programs\stuffski.cpp In function `int main()':
23 C:\Users\TimmyD\Desktop\programs\stuffski.cpp `your' undeclared (first use this function)
(Each undeclared identifier...
also i need some way of showing which ones they got wrong
and i need to put in answer vallidation
like so you can only put up an a,b,c, or d answer
i tried
while (your_answers != a,b,c,d)
{...
it has a problem at the
if (answers[count] = your_answers[count])
{
correct +=1;
}
write some code for me man
you know you want to
flaug i have to use only do, for, if, else and while, cant use dex or index
and no i have no clue where im goin from here i suck with loops and i keep tryin different things for validation such as ...
I need help with an assignment, he never went over arrays in our class and we have to do this assignment. We are only allowed to use do, for, while, if, else. Here is the question. I'm using the dev...