hi there
my prog prompts for the number of students in a class and then for a mark for each of them.then it is supose to display a histogram of how many student have the same mark, as a bar...
Type: Posts; User: papous
hi there
my prog prompts for the number of students in a class and then for a mark for each of them.then it is supose to display a histogram of how many student have the same mark, as a bar...
somebody help guys
i changed the code into this.now the characters that will be printed are passed through command line via argv, but i still do something wrong.help guys
#include<stdio.h>
#include<stdlib.h>...
the code below is suppose to read from a file and to print out all alphanumeric characters(a-z,A-Z,0-0) spaces and newlines, throwing away the rest.
#include<stdio.h>
#include<stdlib.h>...
what can i say man.you are the best
This program reads a file given as command line argument
and outputs all the lines in the file that contain the
sequence of characters WORD. WORD is passed in as command line argument. I added an...
thanks again Salem. sometimes am realy stupid.
am posting this code again.i changed this code to read a file and write out the first line, and all non blanks lines preceded by a blank line.
/*This program reads a file given as command line...
thanks Salem.that was real good.
should i better deal with EOF instead of looking for NULL?
here is the code,but is still not working fine:
#include<stdio.h>
#include<stdlib.h>
typedef char * STRNG;
STRNG code[80];
STRNG get_line(FILE * inf)
{
STRNG s;
here is the code,but is still not working fine:
#include<stdio.h>
#include<stdlib.h>
typedef char * STRNG;
STRNG code[80];
STRNG get_line(FILE * inf)
{
STRNG s;
i am trying to wtite a small program which reads a file and writes out the nmber of lines in that file.i wrote a function which reads one line which works fine.my problem is how to make this program...