Search Results

Showing results 1 to 17 of 17
Search took 0.01 seconds.
Search: Posts Made By: amen
Forum: C++ Apr 1st, 2006
Replies: 2
Views: 2,389
Posted By amen
how to write into the file at the same time display at screen?if there a command that do it?
Forum: C++ Mar 21st, 2006
Replies: 7
Views: 1,599
Posted By amen
but how do i want to compare each token in string with word in text file in c++?
Forum: C++ Mar 20th, 2006
Replies: 3
Views: 5,498
Posted By amen
i want to get token from string using string class. i know that using cstring, i can use strtok.can i use it?

#include <iostream>
#include <string>

using namespace std;
void echo(string...
Forum: C++ Mar 20th, 2006
Replies: 7
Views: 1,599
Posted By amen
i had do like this

#include <iostream>
#include <string>

using namespace std;
void echo(string message)
{
cout << message << endl;
}
Forum: C++ Mar 20th, 2006
Replies: 7
Views: 1,599
Posted By amen
i input a sentence " i love eat".how can wanto to get c++ to get a full sentence..


#include <iostream>
#include <string>

using namespace std;
void echo(string message)
{
cout << message...
Forum: C Mar 17th, 2006
Replies: 3
Views: 6,427
Posted By amen
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
Forum: C++ Feb 17th, 2006
Replies: 1
Views: 4,774
Posted By amen
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...
Forum: C++ Feb 14th, 2006
Replies: 2
Views: 11,585
Posted By amen
thank you..i think i get it on..let me try first..
Forum: C++ Feb 14th, 2006
Replies: 2
Views: 11,585
Posted By amen
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....
Forum: C++ Feb 12th, 2006
Replies: 4
Views: 14,247
Posted By amen
i had open the file using

fstream file;
file.open("katakerja.txt");

now must think how to read the string from the file..wish me luck
Forum: C++ Feb 12th, 2006
Replies: 4
Views: 14,247
Posted By amen
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
.......
Forum: C++ Feb 12th, 2006
Replies: 7
Views: 10,283
Posted By amen
here the code

#include <iostream.h>
#include <string.h>

int main()
{
//declaraction variable
//----------------------------
const size=100; //size of string
Forum: C++ Feb 12th, 2006
Replies: 7
Views: 10,283
Posted By amen
now..just need to think how to compare the token(word) with word in the file.txt that contain many word.
wish me luck
Forum: C++ Feb 12th, 2006
Replies: 7
Views: 10,283
Posted By amen
i think i had got it.it works

here is the code

#include <iostream.h>
#include <string.h>

int main()
{
//declaraction variable
Forum: C++ Feb 11th, 2006
Replies: 7
Views: 10,283
Posted By amen
i had change to code to this
while (tokenPtr != NULL)
{

temp[i]=* tokenPtr;
i++;
tokenPtr=strtok(NULL," ");
}

for (int j=0;j<i;j++)
Forum: C++ Feb 11th, 2006
Replies: 7
Views: 10,283
Posted By amen
i had a error---> cannot convert char * to char when i write this code as below

while (tokenPtr != NULL)
{
cout<<tokenPtr<<"\n";
temp[i]= tokenPtr;//tokenPtr was declare as a...
Forum: C++ Feb 11th, 2006
Replies: 7
Views: 10,283
Posted By amen
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...
Showing results 1 to 17 of 17

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC