Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~948 People Reached
Favorite Forums
Favorite Tags
c x 11
Member Avatar for tyliang

I'm trying to send a message from client to server. Unfortunately, the server side crashes after my client send the message one time. Sorry for my bad english. I hope you all understand what I mean. Client import java.net.*; import java.io.*; public class Client { public static void main(String[] args) …

0
53
Member Avatar for tyliang

Error at line 56 and 68. Unable to resolve it. [code=c] #include<stdlib.h> #include<stdio.h> #include<ctype.h> #include<string.h> #include"stack.h" #include"queue.h" #include"calcstack.h" #define MAXSIZE 80 void intopost(stack *stackPtr, queue *queuePtr, char expression[]); void pushvalue(queue *queuePtr, char item); void pushop(stack *stackPtr,queue *queuePtr,char item); void noBracket(stack *stackPtr,queue *queuePtr,char item); void removeBracket(stack *stackPtr,queue *queuePtr,char item); int precendence(char …

Member Avatar for mitrmkar
0
237
Member Avatar for tyliang

I tried to change for loop to do while loop so that I no need to control the value of i in the future. But seems my program crashes. [code] #include<stdio.h> #include<stdlib.h> struct stock { char code[10]; char name[10]; float amt; int held; float price; struct stock *next; }; int …

Member Avatar for uskok
0
261
Member Avatar for tyliang

I need to print to data stream to an output file but I'm not sure how to catch the data. Given example inputfile.txt has 20 data with a structure Michael 000000 m [email]abc@123.com[/email] 50 60 70 [code] #include <stdio.h> #include <string.h> void scanData(struct student data[]); void avgMaths(struct student data[]); void …

Member Avatar for jianna
0
118
Member Avatar for tyliang

I want to sub-function the reading and printing data. But it says data corrupted. Sorry for my poor english. Example of inputfile.txt [code] Michael 000000 m michael@abc.com 75 82 90 [/code] [code] #include <stdio.h> #include <string.h> void readData(); void printData(); struct student { char studName; int studID; char sex; char …

Member Avatar for tyliang
0
184
Member Avatar for tyliang

I want to read an amount of string from the file Given inputfile.txt Micheal Tammy Alex [code] #include<stdio.h> #include<stdlib.h> int main(void) { FILE* input; char name[100]; char temp[100]; input = fopen("inputfile.txt", "r"); while((fscanf(input,"%c ", &name[i]))==1) { printf("%c ", name[i]); temp[i] = name[i]; i++; } } [/code]

Member Avatar for tyliang
0
95