No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I tried to scan a text file ( contains decimal numbers) and save all the numbers into 1 array input1[50]. When I ran the code, the printout is always 1.0000 eventhough my text file have a bunch of numbers. Could somebody point out where I did wrong? Thank you. [CODE]VOID … |
|
Hi all, I have this code here and I like to save all the messages into 1 text file name contimer.txt. I've tried to do [CODE] FILE *output fopen(output,"comtimer.txt", "ww"); [/CODE] right before the function Timer 1 and change every "printf" function into fprint_s(f, "Message", variables) but it does not … |
|
Hi all, I have this code here and I like to save all the messages into 1 text file name contimer.txt. I've tried to do [CODE]FILE *output fopen_s(output,"comtimer.txt", "ww");[/CODE] right before the function Timer 1 and change every "printf" function into fprint_s(f, "Message", variables) but it does not help. Could … |
|
I have a bunch of floats and I need to convert them to string to use Send command to send to a Receiver. However, I been trying to code like below where long1deg is a float. [ICODE] char long1degC = long1deg; [/ICODE] Or [ICODE] char* long1degC = new char[30]; float … |
|
Hi guys, I have this input.txt file and I have to scan it to get information for my project. the input.txt file has format as: 33 56 34.8 N 118 24 30.1 W 37 40 23.5 S 144 50 54.1 E So I used fscanf_s to scan the file. Here … |