Forum: C Nov 27th, 2008 |
| Replies: 1 Views: 632 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 |
Forum: C Nov 21st, 2008 |
| Replies: 3 Views: 1,540 Hello guys..
I´m trying to do something like the code below ..
struct node{
int a;
char *s;
};
void main()
{ |
Forum: C++ Nov 16th, 2008 |
| Replies: 2 Views: 1,201 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 |
Forum: C Oct 16th, 2008 |
| Replies: 9 Views: 1,560 Thanks for your reply Aia,
sorry I know that this code is C++, but my problem is also in C !!
char *d[] = {"aaaa","bbbb","cccc"};
you said that these strings cannot be altered
but if we do... |
Forum: C Oct 15th, 2008 |
| Replies: 9 Views: 1,560 How can I change a character of a string within an array of strings?
An execution error happens if I run the code below..
int main(int argc, char *argv[])
{
char *d[] =... |