Hey.
I'm really new to scripting in C++ and I wish to know how to scan 2 variables of different types (float and char) and then checking them individualy.
An example code would be:
1 2 3 4 5 6 7 8 9
float get;
char x;
scanf("%cf",&x,&get)
do
{
...
}
while(x!='x');
I know I haven't placed casual callbacks as main() but it doesn't matter atm.
I am a begginer therefore I script command projects for now.
¿what do you mean with 'at once'? scanf("%c %f",&x,&get); there you will need to write a character, 'space' and the number. ¿Is that what you want?
Or something like the user inputs numbers, and when it puts an 'x' the loops terminate.
I haven't placed casual callbacks as main()
Maybe it's just terminology, ¿but what are you talking about?
I meant something like scanning two different types of variables at once (integer and character) and then checking if the user typed an integer, if he did, the program will input the integer and do whatever that program does, and whenever the input would be the character for example 'x' the loop will break.
I haven't placed casual callbacks as main()
I meant I didn't place them in the example code in the forum post, I did place it on my code though.