•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 456,586 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,624 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C advertiser: Programming Forums
Views: 1031 | Replies: 3
![]() |
•
•
Join Date: Nov 2007
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
I am new to the world of C but am enthusiastic nonetheless, so pardon me if this appears to be a particularly basic question...
I am attempting to write a program that uses DNA strands.. which consist of A,T,C,and G characters...
The user is prompted to input a DNA strand.
After they have input the string of a certain length I want to use a user defined function to check the string and ensure the fact that it doesn't contain any letters that are not A,T,C, or G. If it does contain an invalid character I want to alert the User... If it does not contain any characters other than A,T,C, or G then there will be no problem and the program will continue...
any help regarding this would be greatly appreciated.
David
I am attempting to write a program that uses DNA strands.. which consist of A,T,C,and G characters...
The user is prompted to input a DNA strand.
After they have input the string of a certain length I want to use a user defined function to check the string and ensure the fact that it doesn't contain any letters that are not A,T,C, or G. If it does contain an invalid character I want to alert the User... If it does not contain any characters other than A,T,C, or G then there will be no problem and the program will continue...
any help regarding this would be greatly appreciated.
David
•
•
Join Date: Oct 2007
Location: Cherry Hill, NJ
Posts: 1,878
Reputation:
Rep Power: 13
Solved Threads: 193
![]() |
•
•
•
•
•
•
•
•
DaniWeb C Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Copy argv to string in C(newbie question) (C)
- Remove Letters from String to convert into integer (ASP.NET)
- Counting all Non-blank Characters in a String (Java)
- Counting specific characters in a string (C)
- Handling Invalid User Input? (C)
- Removing characters from a string (C)
- string to double (C++)
Other Threads in the C Forum
- Previous Thread: I have a seg fault (can't find new thread button)
- Next Thread: file handeling



Linear Mode