Just looking to be pointed in the right direction: Have standard input to a C program, I\'ve taken each line in at a time and storing in a char[].
I\'ve programmed for a while in Java and .Net, but never really used C or Objective C. I\'m still trying to understand a few concepts. I was working on a simple program just to see how I can make an a
I开发者_如何学Go\'ve a text file with following contents: \"abc\",\"def\",\"ghi\" The following works to read the file contents properly:
I want to read in a string开发者_运维百科 and parse it with sscanf. Although i don\'t want to read in any spaces in the beginning.
I have a process master that spawns N child processes that communicate with the parent through unnamed pipes. I must be able to:
I\'ve written following code: int main() { double A[2]; printf("Enter coordinates of the point (x,y):\\n");
As the title says, I always won开发者_开发问答der why scanf must take the address of operator (&). Because C only has \"pass-by-value\" parameters, so to pass a \'variable\' to put a value into, y
here a a piece of 开发者_如何学JAVAcode that is supposed to loop over and over until the user inputs a number between 0 and 15
I\'ve got a C program that encounters errors when I enter a while loop. I initialize a variable (fragmentcount) and write into it using fscanf and assign it a value of 4 (this works)
I have a struct with many char array like this (and it works) : struct maytinh { char tenmay[10]; char mamay[10];