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
~669 People Reached
Favorite Forums
Favorite Tags
c x 4
c++ x 1
Member Avatar for dusse

Hello guys, How can I read and write in the same file? I want to open a file that exists and write something in the end of each line of the file.. Ex: My_file: a b c d e f g h i I want to alter to: a b …

Member Avatar for Salem
0
85
Member Avatar for dusse

Hello guys.. I´m trying to do something like the code below .. [code=c] struct node{ int a; char *s; }; void main() { node *x; int sMAX = 3; int nodeMAX = 10; x = (node*)malloc((sizeof(int)+sizeof(char)*sMAX)*nodeMAX); ... } [/code] in other words I want to alloc dynamically the number of …

Member Avatar for Narue
0
214
Member Avatar for dusse

How can I declarate a matrix of strings? if I write something like the line below, my code do not compile string a[MAX][MAX]; someone can give me a solution? thanks

Member Avatar for Lerner
0
110
Member Avatar for dusse

How can I change a character of a string within an array of strings? An execution error happens if I run the code below.. [code=c] int main(int argc, char *argv[]) { char *d[] = {"aaaa","bbbb","cccc"}; cout << d[2] << endl; //PRINT cccc d[2][2] = 'x'; cout << d[2] << endl; …

Member Avatar for Aia
0
260