can u show me some examples of std::strings. ?
is it like this ?
if(temp5->salary < 100 && std::string temp5->department != "SALES")
but i got compilation error
Type: Posts; User: vearns
can u show me some examples of std::strings. ?
is it like this ?
if(temp5->salary < 100 && std::string temp5->department != "SALES")
but i got compilation error
daved,
whats wrong with my code ?
i get the output that i need.
i just facing with 2 more problems.
for prob no 1.....
temp5->department != "SALES" is comparing pointers.
what i need to...
LOL. REMOVED ?
hahahaha
i removed old codes.
and i put my new codes.
OK,i did a lot of changes in my code.
thanks to mats who give the idea to me.
here is my code
REMOVED
now i faced with 2 more problems.
ok mats,
i found the solution,
i put it like this
REMOVED
however,it seems not so good if we have more than 1 person that have less than 100 salary and not a great solution since the...
REMOVED
ok,
i put inside the loop and it still crash.
ok,
here is my code
REMOVED
the compiler dont show any error.
but when i test the program,it crash.
maybe stuck in the loop or something ?
oo yeah..
my fault.
hahahahaha.
thanks.
can someone show me how to list out person who have salary less than 100 ?
Hello,
i dont know where is the problem.
i should input some data in the linked-list.
when i put 2 person,the result just show the last person.
can someone help me to solve this prob ?
this...
ok,
i already did the coding but the question is why it show the same thing and keep looping ?
here is the code
#include <iostream>
#include <fstream>
#include <conio.h>
fflush(stdin);
the function is same with cin.ignore()
i still have no idea to use string::npos
maybe someone can show me some example.
Hello,
why when i inserted group name without space,the program suddenly quit.
here is my code
#include<iostream>
#include<string>
#include<fstream>
#include<conio.h>
show me some codes plz.
Hello,
i need help.
How to generate output from file ?
example input from file:
SERVICE_NUMBER, TO_NUMBER, DURATION, CHARGE, SEIZE_TIME
0060419076, 035026088, 101, 60, 01-Nov-2006 09:30:58 AM...
HOho man...thats great....it is working now !
char groupname[300];
int numGroups;
cout<<"How many groups do you wish to create?"<<endl;
cin>>numGroups;
for(int i=0;i<numGroups;i++)
{
cout <<...
OK,
I already fix it.
the code is working but i got a problem with the file output.
let say the file name is like this :
example :
========================
Group : test1
Hello,this is my code.
here is the output.
http://img201.imageshack.us/img201/5564/cppqt3.jpg
the problem is,
the output must look like this.
========================
Problem has been solved.
Great idea !
i just create this code :
cout << "Enter the name of the file you want to create: ";
cin >> FileName;
ofstream Students(FileName, ios::out);
I've arranged the code like this.
3 more functions to go.
CODE REMOVED
Problem 1 :
If i want to remove student information,i must search the student with student ID.How can i search...
thanks for your help :)
im learning new codes now.
i just have basic.
hope you dont mind to share with me.
hmm.....
how can i search the student id based on the file class ?
i copy and paste your code to my code and i modified some of undeclared variables still got error.
i dont know studMax and setw is referring to what.
can u do based on my coding ?
the first problem has been solved.
what function should i use for problem 2 and 3 ?
hahaha...sorry...just edited my post.
Can you show me the code for problem 2 and 3 ?