Cheers! Worked beautifuly.
Type: Posts; User: trucutu
Cheers! Worked beautifuly.
Cheers! Worked beautifuly.
Cheers! I'm coding as we speak see if it works better.
Hello again allmighty internet community: I'm a little bit stuck; I'm writting a program that will convert a number entered as a string into its correpsonding floating point representation. To do...
Ok, so if I type 12.34abc var1 gets the value 12.34. Check. Now, if I type in abc12.34 how does var1 come to get the value 1443268871235100000.0000 whatever....?
If I have learned one thing it's that users will always find marvellous ways to mess up any program... So, don't think you're safe with a 100 char array...
I'm writting a progrm in which I want to verify the user doesn't input incoherent data. When I code this:
#include<stdio.h>;
#include<conio.h>;
main(){
float var1;
clrscr();...
to improve it a little you can use the toupper function so you won't have to check for caps, i.e.
while (condition!='N'){
/*Whatever process*/
printf("Do you wan to continue?...
I think I like the if option better. Thank you!
I have a doubt, is there any way to use ranges instead of specific values in a switch statemnt? i.e. how can i do something like:
switch(var){
case 0 to 100:
/*Some action*/
...