User Profile

Collapse

Profile Sidebar

Collapse
childofthehorn
childofthehorn
Last Activity: Feb 6 '07, 08:34 AM
Joined: Feb 6 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • childofthehorn
    replied to need to read multiple inputs.
    in C
    Thank You very much it was very helpful!

    Doing this fixed it all:

    Code:
    	if(COMMANDS_FROM_FILE == 1){
    					if(k == 1){ 
    						file_open();
    						k = k-1;
    					}
    
    				file_run();}
    
    	if(COMMANDS_FROM_FILE ==0){
    			cout << "Enter the Commmand: \n";
    I had been staring at this for a couple hours yet.....
    See more | Go to post

    Leave a comment:


  • childofthehorn
    started a topic need to read multiple inputs.
    in C

    need to read multiple inputs.

    Okay, so I can get this to read the first line of a txt document. I just can't figure out how to get it to read the next lines. I have to use "user_input " in a function. The wait function just waits until the user hits enter. The text document has 11 lines of code. I know this is a total newb question, but I am baffled. The function gets called at the begining of the file.
    Code:
    int file_run(void){
    	char buffer[255];
    ...
    See more | Go to post
    Last edited by horace1; Feb 6 '07, 07:41 AM. Reason: added code tags
No activity results to display
Show More
Working...