No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
student
- PC Specs
- software engineering student
8 Posted Topics
how to check there exist number in string using isalpha.if number exist, display "only alphabetic,please input again" example : user input = i had to 2 number | |
i need help. i need to write a code that can extract word from string. i had use cin.getline(string,size) to get th string and strtok(string," ") to extarct token. now i want to know how can i insert the token in array because i want to use the token for … | |
i want to get token from string using string class. i know that using cstring, i can use strtok.can i use it? [CODE] #include <iostream> #include <string> using namespace std; void echo(string message) { cout << message << endl; } int main() { cout << "Enter your word: "; string … | |
how to write into the file at the same time display at screen?if there a command that do it? | |
i input a sentence " i love eat".how can wanto to get c++ to get a full sentence.. [CODE] #include <iostream> #include <string> using namespace std; void echo(string message) { cout << message << endl; } int main() { cout << "Enter your word: "; string word; // place declaration … | |
can anybody give me an idea how to sort string in alphabetical order in file.text after user input string and in the file already had a list of string? which is the best,let user input the all string first then sorting it or sorting if after user input the string? … | |
need some idea from to find the same word in text file example i had a list of word in text file,let me name it noun.txt..contain noun word..the file contain like this walk run eat drink .... give me an idea how can i find word eat in the noun.txt … | |
i need to write a code on how can break a sentence into word and find out the word belong to. example : when user input a sentence cindy walk slow. 1.break the sentence into cindy,walk,slow. 2.get each word belong to and display. - cindy is a noun - walk … |
The End.