We're a friendly, industry-focused discussion community of 1M+ developers and IT professionals learning and sharing knowledge. Ask us a question …

Member Avatar
I need save each word of text file into array of strings I have this code how to do for convert into dinamically #include <stdio.h> #include <conio.h> #define MAX_CHARS 20 typedef char string[MAX_CHARS+1]; // leave one space for '\0' main(){ int i; string array[4]; FILE *data; data = fopen("ard.txt","r"); for(i … Article by Jose_12 in Programming
c c++
well, I have another question Now I need to know if the strings in the array are numerical or words but when testing with isdigit () and isalpha() I do not return the desired value because it will be for(i=0;i<num_strings;i++) { if(isdigit(array[i])) { printf("%s number\n",array[i]); } else if(isalpha(array[i])) { printf("%s …
Member Avatar
Joined the Community
Member Avatar
I need save each word of text file into array of strings I have this code how to do for convert into dinamically #include <stdio.h> #include <conio.h> #define MAX_CHARS 20 typedef char string[MAX_CHARS+1]; // leave one space for '\0' main(){ int i; string array[4]; FILE *data; data = fopen("ard.txt","r"); for(i … Article by Jose_12 in Programming
c c++
The array_size is the number of elements of the array, which I made 4 to match your code. Each element of the array is 21 bytes (20 + 1), as with your code. So total array_size is 4 times 21 = 84 bytes, as it was in your code, after …
Member Avatar
Created
how to loop the auto calculation in data grid view column example : 14 32 32 64 11 75 15 90 the calculation is 32 + 32 = 64 64 +11 =75 ok.. now the problem is what if i edit the first column number 32 to 30 and the … Article by Glitz_1 in Software Development
Member Avatar
Began Watching
how to loop the auto calculation in data grid view column example : 14 32 32 64 11 75 15 90 the calculation is 32 + 32 = 64 64 +11 =75 ok.. now the problem is what if i edit the first column number 32 to 30 and the … Article by Glitz_1 in Software Development
Member Avatar
Replied To a Post in loop
how to loop the auto calculation in data grid view column example : 14 32 32 64 11 75 15 90 the calculation is 32 + 32 = 64 64 +11 =75 ok.. now the problem is what if i edit the first column number 32 to 30 and the … First Post in Article by Glitz_1 in Software Development
Member Avatar
I need save each word of text file into array of strings I have this code how to do for convert into dinamically #include <stdio.h> #include <conio.h> #define MAX_CHARS 20 typedef char string[MAX_CHARS+1]; // leave one space for '\0' main(){ int i; string array[4]; FILE *data; data = fopen("ard.txt","r"); for(i … Article by Jose_12 in Programming
c c++
hey man because this is what I needed I appreciate it very much, but I need a brief explanation of the code
Member Avatar
Joined the Community
Member Avatar
Joined the Community
Member Avatar
I need save each word of text file into array of strings I have this code how to do for convert into dinamically #include <stdio.h> #include <conio.h> #define MAX_CHARS 20 typedef char string[MAX_CHARS+1]; // leave one space for '\0' main(){ int i; string array[4]; FILE *data; data = fopen("ard.txt","r"); for(i … Article by Jose_12 in Programming
c c++
I note that you have both C and C++ tags on this. I assume you are using a C compiler. If C++, then consider using a vector of C++-style strings. vector and C++-style strings are both dynamic, but you are not responsible for keeping track of the memory. Assuming this …
Member Avatar
Sponsored 3,065 Began Watching
What happened to the PM functionality? I wanted to send a PM to rproffitt but the only messaging thingy I could find was the single line `send message` when I went to his profile. One line is certainly not suitable for composing even something as short as a tweet. While … Article by Reverend Jim in DaniWeb Community Feedback
pm
Member Avatar
Sponsored 3,065 Replied To a Post in How to PM
What happened to the PM functionality? I wanted to send a PM to rproffitt but the only messaging thingy I could find was the single line `send message` when I went to his profile. One line is certainly not suitable for composing even something as short as a tweet. While … Article by Reverend Jim in DaniWeb Community Feedback
pm
I posted about the archive before. I was meticulous in deleting all my messages in previous DW. Now they've been reanimated. I have no love for them. I will have to shoot them in the head again? I have 16 pages. 16 pages of active conversations. What criteria decide whether …
Member Avatar
How should I concatenate the characters read from a file with fgetc to determine if it is a number, keyword or an identifier? The problem is that, for example, the number 555 must be one and 5 and 5 and 5 as words must be jose and not character by … Article by Jose_12 in Programming
c c++
I found another way for do my proyect I need to read a txt and store it in a dynamic string array the code I have now does but memory is wasted because it is static I like to read a txt and every word stored in a string array …
Member Avatar
Sponsored 1,442 Began Watching
What happened to the PM functionality? I wanted to send a PM to rproffitt but the only messaging thingy I could find was the single line `send message` when I went to his profile. One line is certainly not suitable for composing even something as short as a tweet. While … Article by Reverend Jim in DaniWeb Community Feedback
pm
Member Avatar
Sponsored 1,442 Replied To a Post in How to PM
What happened to the PM functionality? I wanted to send a PM to rproffitt but the only messaging thingy I could find was the single line `send message` when I went to his profile. One line is certainly not suitable for composing even something as short as a tweet. While … Article by Reverend Jim in DaniWeb Community Feedback
pm
> the only messaging thingy I could find was the single line send message when I went to his profile. One line is certainly not suitable for composing even something as short as a tweet. I will change it to accomidate a full editor area. > While I am on …
Member Avatar
14 Replied To a Post in Android tablet, using sd card
My daughter has a Samsun Android tablet that has ran out of space so I purchased an sd card. The card is mounting and I reformatted it from the Android device but the device is still claiming to be full when she tries to install new apps. I tried this … Article by lewashby in Linux and Unix
You take it I'm not going to read from the past. Did you notice that I did post a url where I was trying to get help via web search before coming here. I wasn't having any luck. Thanks you so much for your help!
Member Avatar
I need save each word of text file into array of strings I have this code how to do for convert into dinamically #include <stdio.h> #include <conio.h> #define MAX_CHARS 20 typedef char string[MAX_CHARS+1]; // leave one space for '\0' main(){ int i; string array[4]; FILE *data; data = fopen("ard.txt","r"); for(i … Article by Jose_12 in Programming
c c++
Member Avatar
I need save each word of text file into array of strings I have this code how to do for convert into dinamically #include <stdio.h> #include <conio.h> #define MAX_CHARS 20 typedef char string[MAX_CHARS+1]; // leave one space for '\0' main(){ int i; string array[4]; FILE *data; data = fopen("ard.txt","r"); for(i … Article by Jose_12 in Programming
c c++
Member Avatar
I need save each word of text file into array of strings I have this code how to do for convert into dinamically #include <stdio.h> #include <conio.h> #define MAX_CHARS 20 typedef char string[MAX_CHARS+1]; // leave one space for '\0' main(){ int i; string array[4]; FILE *data; data = fopen("ard.txt","r"); for(i … First Post in Article by Jose_12 in Programming
c c++
Member Avatar
How should I concatenate the characters read from a file with fgetc to determine if it is a number, keyword or an identifier? The problem is that, for example, the number 555 must be one and 5 and 5 and 5 as words must be jose and not character by … Article by Jose_12 in Programming
c c++
Member Avatar
Sponsored 320 Replied To a Post in How to PM
What happened to the PM functionality? I wanted to send a PM to rproffitt but the only messaging thingy I could find was the single line `send message` when I went to his profile. One line is certainly not suitable for composing even something as short as a tweet. While … Article by Reverend Jim in DaniWeb Community Feedback
pm
If I delete (archive) my inbox when I go to the Inbox it opens the all my conversations which is pages long. This is as much fun as the three shells in Demolition Man.
Member Avatar
Sponsored 1,221 Replied To a Post in How to PM
What happened to the PM functionality? I wanted to send a PM to rproffitt but the only messaging thingy I could find was the single line `send message` when I went to his profile. One line is certainly not suitable for composing even something as short as a tweet. While … Article by Reverend Jim in DaniWeb Community Feedback
pm
A few minutes ago I had five messages in my inbox. I deleted them. Now I have 17 pages. What is going on?
Member Avatar
Sponsored 320 Began Watching
What happened to the PM functionality? I wanted to send a PM to rproffitt but the only messaging thingy I could find was the single line `send message` when I went to his profile. One line is certainly not suitable for composing even something as short as a tweet. While … Article by Reverend Jim in DaniWeb Community Feedback
pm
Member Avatar
Sponsored 320 Replied To a Post in How to PM
What happened to the PM functionality? I wanted to send a PM to rproffitt but the only messaging thingy I could find was the single line `send message` when I went to his profile. One line is certainly not suitable for composing even something as short as a tweet. While … Article by Reverend Jim in DaniWeb Community Feedback
pm
Try it now and for the next hour. I'll be sure to have a web browser open to DW.
Member Avatar
Sponsored 1,221 Edited
What happened to the PM functionality? I wanted to send a PM to rproffitt but the only messaging thingy I could find was the single line `send message` when I went to his profile. One line is certainly not suitable for composing even something as short as a tweet. While … Article by Reverend Jim in DaniWeb Community Feedback
pm
Member Avatar
Sponsored 1,221 Created
What happened to the PM functionality? I wanted to send a PM to rproffitt but the only messaging thingy I could find was the single line `send message` when I went to his profile. One line is certainly not suitable for composing even something as short as a tweet. While … Article by Reverend Jim in DaniWeb Community Feedback
pm
Member Avatar
Sponsored 1,221 Replied To a Post in How to PM
What happened to the PM functionality? I wanted to send a PM to rproffitt but the only messaging thingy I could find was the single line `send message` when I went to his profile. One line is certainly not suitable for composing even something as short as a tweet. While … First Post in Article by Reverend Jim in DaniWeb Community Feedback
pm
Member Avatar
1,221 Endorsed rproffitt 320
Member Avatar
1,221 Endorsed rproffitt 320
Member Avatar
1,221 Endorsed rproffitt 320