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
~3K People Reached
Favorite Tags
c x 4
Member Avatar for Dark_Knight

Hi, I've been having some problems with the getchar() statement. When I put it in a loop (to make an interactive input), I can't get user input anymore from within the loop. Even the following simple program doesn't work: [code] #include <stdio.h> #include <stdlib.h> int main(void) { char response, text[255]; …

Member Avatar for jigar23
0
2K
Member Avatar for Dark_Knight

Hello, I am using aspell to spell check my work. But my paper (written in LaTeX) has a lot of technical terms and abbreviations that normally wouldn't be found in a dictionary. In fact I might not use some of the words again in other files. Is there some way …

Member Avatar for Dark_Knight
0
139
Member Avatar for Dark_Knight

A lot of people say that Unix BC is a very good calculator program. However whenever I enter the following commands (after loading the math library -- i.e invoking BC at the command line by typing 'bc -l') I get: e (3 * l(2) ) 7.99999999999999999982 e(0.2*l(32)) 1.99999999999999999998 The first …

Member Avatar for Dark_Knight
0
119
Member Avatar for Dark_Knight

Hi. Below are two pieces of code. This first one works fine: [code] char str[] = "Hello World"; char *b; b = &(str[3]); *b = '3'; printf("%s\n", str); [/code] However this second one results in a segmentation fault. [code] char *str = "Hello World"; char *b; b = &(str[3]); *b …

Member Avatar for WolfPack
0
284
Member Avatar for Dark_Knight

Hi, I am trying to create a method that accepts a pointer to a (static) string so that it can modify the string. I have something similar to this: [code] void modifyString(char **pstr) { char *str = *pstr; // Make changes to str ... } void doSomething() { char str[] …

Member Avatar for Dark_Knight
0
133