| | |
neef u help
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2005
Posts: 18
Reputation:
Solved Threads: 0
#include<iostream>
#include<string>
using namespace std;
void main()
{
string str="hello world";
string::const_iterator p=str.begin();
while(p!=str.end())
{
cout<<*P<<endl;
p++;
}
}
when i try to run this program.it doesn't working.
it tells me the 'p' is not declared identifier.
string::const_iterator p//the defination is wrong?
#include<string>
using namespace std;
void main()
{
string str="hello world";
string::const_iterator p=str.begin();
while(p!=str.end())
{
cout<<*P<<endl;
p++;
}
}
when i try to run this program.it doesn't working.
it tells me the 'p' is not declared identifier.
string::const_iterator p//the defination is wrong?
![]() |
Other Threads in the C++ Forum
- Previous Thread: building my first MFC Program
- Next Thread: Please I need help formatting an output file and sorting the names!
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete deploy developer display dll dynamiccharacterarray email encryption error file format forms fstream function functions game generator givemetehcodez graph homeworkhelp iamthwee ifstream image input int java lib list loop looping loops map math matrix memory multiple newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg simple sorting spoonfeeding string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






