8 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for JohnMcPherson

Hello, am working on a program for the U.S. Department of Labor. I am working on two programs for the state of Oregon, and the program that reads data and displays on a screen is working correctly. The code reads tax rates for a specific tax schedule and puts htam …

Member Avatar for abbott@lantic
0
337
Member Avatar for JohnMcPherson

Hello, I am having a problem with the fgets statement not reading data correctly. It reads most of the data I need without a problem, but three lines of data are not read correctly. The code in question follows: strcpy(passw,"P7"); fscanf(fip, "%3s", ckod); /* card # 164 */ fprintf(ff16,"\n\n%12s%12s\n", "card# …

Member Avatar for AssertNull
0
3K
Member Avatar for ThomsonGB

////////////////////////////////////////////////////////////////////////////////// // Now I have an idea how to get my strings from the file so that I can properly // play with them (with fstream I did not have the string "in my clutches" quite // the way I wanted it). However, now I have a problem with my …

Member Avatar for ThomsonGB
0
250
Member Avatar for terence193

This is what the question is stating: Write a program that inputs a line of text using function fgets() into a char array s[90], then it outputs the line converted to uppercase. For function [ICODE]fgets[/ICODE] to be used, am i correct if I understand that the user doesn't have to …

Member Avatar for WaltP
0
188
Member Avatar for DJWK

This program should extract the first line. Somehow I'm getting the last line instead of the first... This is the textfile: [ICODE]N100 G96 S200 N115 G0 X600 Z-1004.95 T11 D2 M3 M7 H10 N125 G0 X500 N130 G1 X419 F0.5 N135 G1 Z-1004 N140 G0 X500 N145 G0 Z-419.7 N150 …

Member Avatar for DJWK
0
223
Member Avatar for d_panayotov

Hello, I have this assignment in C. The problem is that the functions have to be placed in separate files instead of just one. I haven't done that before. It seems code that would have run if the program was written in one file doesn't work when the functions are …

Member Avatar for d_panayotov
0
166
Member Avatar for Kevin_160

Hi Everybody, FYI (In order to get a feeling with the time it takes to send command strings to signal generators via a GPIB bus, I want to send a voltage level high pulse to an oscilloscope. Ones the RF signal arrives via a detector diode, The pulse and the …

Member Avatar for Kevin_160
0
341
Member Avatar for dondajr

Hi again. I have a file that have about 1000 lines, and then, time by time I need to read some of this lines, for example: 13:00:00 read lines 01 to 100; 13:30 read lines 101 to 400; .... 15:00:00 read lines 900 to 1000. There is a way to …

Member Avatar for dondajr
0
108

The End.