A is for apple or alphabet pie
which all get a slice of, come taste it and try.
this is the content of the txt
hmm I have experiment with scanf and fgets to read the stream of redirection,...
Type: Posts; User: guest18
A is for apple or alphabet pie
which all get a slice of, come taste it and try.
this is the content of the txt
hmm I have experiment with scanf and fgets to read the stream of redirection,...
A is for apple or alphabet pie
which all get a slice of, come taste it and try.
this is what contained inside the txt :)
for sorting part I think I just sort it abcd and such, IM pretty sure I...
c:\assignment\assignment1question2.exe < a.txt
yup it is not a part of C, I know but the assignment need me to do redirection to enter content of a txt file into the program
Microsoft Corporation
this is redirection
basically it is entering a file after exe when you executing it
c:\assignment\assignment1question2.exe <- a.txt
its school assignment and requirement
printf("%c\n",*w[11]); <- I mean this one, if I put 11 and below it crash , but if I put 12 and above it work fine
the school assignment said I got...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAXWORD 30 /* max word size in characters */
#define N 10000 /* max number of words */
void sort_words(char *w[], int n);...
well the reason why it is pointer in the struct is because the question Im doing required me to do so
yeah, thanks alot, I shall go find way of allocating the pointer inside the struct
uhh the program arent suppose to quit at that stage, it still have another line to execute to enter
well Book *pbook[howmanyrecords]; <- this already declare the pbook as pointer, if I put...
#include <stdio.h>
typedef struct {
char* author;
char* title;
char* isbn;
int edition;
} Book;
int main()
god damm it I freaking hate c now ...
I have been alot of trouble with syntax
I have completely rewritten my code
why c gotto be soo hard , why it cant be like java
T.T
oh yeah ......
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <io.h>
#include <conio.h>
struct client
{
char name[40];