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

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
Revoked Solved Status for
I have this code #include <stdio.h> #include "ctype.h" #include <string.h> #include <stdlib.h> #include <string.h> char p; int j; int i; FILE *f1; char c; int main() { f1 = fopen("ard.txt","r"); if(f1 == NULL) { printf("No se ha podido abrir el archivo"); } while((c=fgetc(f1))!=EOF) { if (isdigit(c)) { putchar(c); } else … Article by Jose_12 in Programming
c
Member Avatar
Revoked Solved Status for
I have this code #include <stdio.h> #include "ctype.h" #include <string.h> #include <stdlib.h> #include <string.h> char p; int j; int i; FILE *f1; char c; int main() { f1 = fopen("ard.txt","r"); if(f1 == NULL) { printf("No se ha podido abrir el archivo"); } while((c=fgetc(f1))!=EOF) { if (isdigit(c)) { putchar(c); } else … Article by Jose_12 in Programming
c
Member Avatar
Marked Solved Status for
I have this code #include <stdio.h> #include "ctype.h" #include <string.h> #include <stdlib.h> #include <string.h> char p; int j; int i; FILE *f1; char c; int main() { f1 = fopen("ard.txt","r"); if(f1 == NULL) { printf("No se ha podido abrir el archivo"); } while((c=fgetc(f1))!=EOF) { if (isdigit(c)) { putchar(c); } else … Article by Jose_12 in Programming
c
Member Avatar
I have this code #include <stdio.h> #include "ctype.h" #include <string.h> #include <stdlib.h> #include <string.h> char p; int j; int i; FILE *f1; char c; int main() { f1 = fopen("ard.txt","r"); if(f1 == NULL) { printf("No se ha podido abrir el archivo"); } while((c=fgetc(f1))!=EOF) { if (isdigit(c)) { putchar(c); } else … Article by Jose_12 in Programming
c
Member Avatar
320 Replied To a Post in how do this in the txt in " C "
I have this code #include <stdio.h> #include "ctype.h" #include <string.h> #include <stdlib.h> #include <string.h> char p; int j; int i; FILE *f1; char c; int main() { f1 = fopen("ard.txt","r"); if(f1 == NULL) { printf("No se ha podido abrir el archivo"); } while((c=fgetc(f1))!=EOF) { if (isdigit(c)) { putchar(c); } else … Article by Jose_12 in Programming
c
This looks like what you started at https://www.daniweb.com/programming/threads/505842/how-to-concatenate-the-characters-read-from-a-file-with-fgetc The reply there is spot on. That is you don't have any code to identify number, words as well as didn't specify what is an identifier. I'd stick with your first post until you solve it.
Member Avatar
I have this code #include <stdio.h> #include "ctype.h" #include <string.h> #include <stdlib.h> #include <string.h> char p; int j; int i; FILE *f1; char c; int main() { f1 = fopen("ard.txt","r"); if(f1 == NULL) { printf("No se ha podido abrir el archivo"); } while((c=fgetc(f1))!=EOF) { if (isdigit(c)) { putchar(c); } else … Article by Jose_12 in Programming
c
Member Avatar
I have this code #include <stdio.h> #include "ctype.h" #include <string.h> #include <stdlib.h> #include <string.h> char p; int j; int i; FILE *f1; char c; int main() { f1 = fopen("ard.txt","r"); if(f1 == NULL) { printf("No se ha podido abrir el archivo"); } while((c=fgetc(f1))!=EOF) { if (isdigit(c)) { putchar(c); } else … Article by Jose_12 in Programming
c
Member Avatar
I have this code #include <stdio.h> #include "ctype.h" #include <string.h> #include <stdlib.h> #include <string.h> char p; int j; int i; FILE *f1; char c; int main() { f1 = fopen("ard.txt","r"); if(f1 == NULL) { printf("No se ha podido abrir el archivo"); } while((c=fgetc(f1))!=EOF) { if (isdigit(c)) { putchar(c); } else … First Post in Article by Jose_12 in Programming
c
Member Avatar
i dont have codes yet Article by Ben_20 in Software Development
Read https://www.daniweb.com/programming/web-development/threads/435023/read-this-before-posting-a-question again. Your post is too short and if I were to guess you are asking for folk to write this for you or maybe you lost your books on the said products.
Member Avatar
i dont have codes yet Article by Ben_20 in Software Development
> i dont have codes yet Are you hoping we should provide cristal clear codes, perhaps in a report? Show your efforts and if we can, we will help you if we possibly can. :)
Member Avatar
320 Began Watching
Sir I want to generate a query which will convert data from rows to columns I have this table ![aa.png](/attachments/large/4/266c6d1b9efd2e2621152dc5a3cad11e.png "align-center") I want to get this result ![bb.png](/attachments/large/4/54b2cbea895fc42a71c7e5109c612946.png "align-center") [IMG]http://i66.tinypic.com/2hfjep4.png[/IMG] Workers amount will go to column in relevant data Group by code. I wrote this query session_start(); require_once("includes/connectw.php"); $query = … Article by phphp in Databases
Member Avatar
320 Replied To a Post in Cross Tab Query
Sir I want to generate a query which will convert data from rows to columns I have this table ![aa.png](/attachments/large/4/266c6d1b9efd2e2621152dc5a3cad11e.png "align-center") I want to get this result ![bb.png](/attachments/large/4/54b2cbea895fc42a71c7e5109c612946.png "align-center") [IMG]http://i66.tinypic.com/2hfjep4.png[/IMG] Workers amount will go to column in relevant data Group by code. I wrote this query session_start(); require_once("includes/connectw.php"); $query = … Article by phphp in Databases
OK, I read this a few times and can guess the query is in PHP. But to get that table output you have to reveal how you will view the result. It might be this is the backend of a server and the viewer is a browser, but that's not …
Member Avatar
i dont have codes yet Article by Ben_20 in Software Development
Member Avatar
i dont have codes yet Article by Ben_20 in Software Development
Read https://www.daniweb.com/programming/web-development/threads/435023/read-this-before-posting-a-question again. Your post is too short and if I were to guess you are asking for folk to write this for you or maybe you lost your books on the said products.
Member Avatar
HELP!!! No beep on my motherboard when i remove the RAM & HDD, i tried another RAM & HDD from another computer but still not working. I checked the RAM & HDD if its working on another, it works, i replace the wires(SATA especially) but nothing change,i also replace the … Article by Jessica_16 in Hardware
Member Avatar
HELP!!! No beep on my motherboard when i remove the RAM & HDD, i tried another RAM & HDD from another computer but still not working. I checked the RAM & HDD if its working on another, it works, i replace the wires(SATA especially) but nothing change,i also replace the … Article by Jessica_16 in Hardware
Tell more. For example some models do not beep but hold in reset when the CMOS battery is too low. Tell more. As a PC Tech I expect you to have a Volt meter at the very least to measure and check things. If not, just pop in new batteries …
Member Avatar
Sponsored 3,065 Gave Reputation to in Is Search Broken Again?
I was looking for an Excle/vb.net code snippet that I posted a long time ago. I went to advanced search and selected `Programming` and `code snippets` with the search string `Excel`. The only hits that I got were member names containing `Excel`. I replaced `Excel` with `Reverend Jim` and got … Article by Reverend Jim in DaniWeb Community Feedback
I guess my lack of prioritizing it is because it's literally the exact same search we've had for the past decade, so my feelings are "well, if it brings in money, and no one complained for 10 years, then ..." However, now that I think about it, it's powered by …
Member Avatar
Joined the Community
Member Avatar
Sponsored 1,442 Replied To a Post in Login issue
I'm really sorry everyone ... Due to an SSL issue, no one was able to log into DaniWeb over the past day. I wasn't aware of the issue as I was already logged in. Soooo sorry!! Article by Dani in DaniWeb Community Feedback
Didn't change a single thing.
Member Avatar
Sponsored 1,442 Replied To a Post in Is Search Broken Again?
I was looking for an Excle/vb.net code snippet that I posted a long time ago. I went to advanced search and selected `Programming` and `code snippets` with the search string `Excel`. The only hits that I got were member names containing `Excel`. I replaced `Excel` with `Reverend Jim` and got … Article by Reverend Jim in DaniWeb Community Feedback
I guess my lack of prioritizing it is because it's literally the exact same search we've had for the past decade, so my feelings are "well, if it brings in money, and no one complained for 10 years, then ..." However, now that I think about it, it's powered by …
Member Avatar
Joined the Community
Member Avatar
Joined the Community
Member Avatar
320 Replied To a Post in rsync error
After running rsync with the `-a --delete source dest` arguments on my music library to my sd card I am getting the following errors. default_perms_for_dir: sys_acl_get_file(Tears For Fears/Donnie Darko, ACL_TYPE_DEFAULT): No such file or directory, falling back on umask rsync: mkstemp "/media/garrett/MUSIC-SD/Tears For Fears/Donnie Darko/.Mad World.mp3.yr2Xyc" failed: No such file … Article by lewashby in Linux and Unix
@lewashby, why I noted it was so you could test is it's a space in the filename issue. Also can you reveal how many entries are in the root folder? I'm not there to check basics so I ask.
Member Avatar
Replied To a Post in Updating SQL Server table
Hi Guys, i am building an application in VB.Net with sql server for databases. I have a screen on which the items in a table are populated in a datagridview based on the combo box selection. A button to commplete the sale has a code that must subtract the number … Article by wishala in Programming
Thanks Shark, you just did it.
Member Avatar
Hi Guys, i am building an application in VB.Net with sql server for databases. I have a screen on which the items in a table are populated in a datagridview based on the combo box selection. A button to commplete the sale has a code that must subtract the number … Article by wishala in Programming
Member Avatar
86 Replied To a Post in Updating SQL Server table
Hi Guys, i am building an application in VB.Net with sql server for databases. I have a screen on which the items in a table are populated in a datagridview based on the combo box selection. A button to commplete the sale has a code that must subtract the number … Article by wishala in Programming
Your SQL syntax should be as follows: Inveupdate.CommandText = "UPDATE tblItems SET Quantity = Quantity - 1 WHERE Barcode=@Barcode" MsSQl, MySql or Oracle alaways receive named parameter you can use "?" i.e. question mark when you use only OleDb database provider.
Member Avatar
Hi Guys, i am building an application in VB.Net with sql server for databases. I have a screen on which the items in a table are populated in a datagridview based on the combo box selection. A button to commplete the sale has a code that must subtract the number … Article by wishala in Programming
Member Avatar
Hi Guys, i am building an application in VB.Net with sql server for databases. I have a screen on which the items in a table are populated in a datagridview based on the combo box selection. A button to commplete the sale has a code that must subtract the number … Article by wishala in Programming
Member Avatar
Replied To a Post in Updating SQL Server table
Hi Guys, i am building an application in VB.Net with sql server for databases. I have a screen on which the items in a table are populated in a datagridview based on the combo box selection. A button to commplete the sale has a code that must subtract the number … First Post in Article by wishala in Programming