there's no unmount either, it changed the floppy drive into a textfile....i'm using the KDE desktop
Type: Posts; User: vanilly
there's no unmount either, it changed the floppy drive into a textfile....i'm using the KDE desktop
I'm trying to save my c program to a disk, but it won't work...its doing really weird things, its saving to floppy, then when I go to mount it, the mount option is not there, i'm actually just...
thank you so much
that code works, except, for a large integer....the code changes it this is what my output looked like:
[root@CPE0010b53e159e-CM root]# gcc getData.c
[root@CPE0010b53e159e-CM...
thank you very much, however, the only thing that still doesn't work with that code, is that if you enter in a really large number, it changes it
Please Enter in a positive number, then hit ENTER...
I do need the sizeof, because, i have to compare its size in bytes, so that if its over the max bytes in an int, it will give the error msg...
thanks, but its still not doign what i'd like
Please Enter in a positive number, then hit ENTER
dg
That is not an integer
[root@CPE0010b53e159e-CM root]# ./a.out
Please Enter in a positive...
#include <stdio.h>
unsigned int getInputData(){
unsigned int digit;
printf("Please Enter in a positive number, then hit ENTER\n");
#include <stdio.h>
unsigned int getInputData(){
unsigned int digit;
printf("Please Enter in a positive number, then hit ENTER\n");
Can someone please help me with my integer problem on my other post, read the last thing i put in....thanx!!!
i'm going crazy here trying to fix it.....:confused:
I can't really use anything i haven't learned yet, so i can't implement limits.h, and use the SZE_Max or whatever it was...I was told to use the SizeOf function, basically, the getInputData function...
well, see I can't use strings or arrays i can only use the usual I/O method functions to read single characters only
thanks a lot for your help!
hi, I would like my program to nottice something, like a letter, and give an error, right now its just transforming it to an int, a very large one, and using the wrong error msg...here is my code
...
would that still work in my function?
cuz I dont' want to put that in my main method
I tried, what you said, and now I get this warning
getData.c:14: warning: passing arg 1 of `printf'...
Hi everyone, i'm just starting out with C, and i'm not too sure how to use the SizeOf Function, I need to use it to verify that an inputted integer is not greater than the maximun number of bytes...