No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Just getting started in programing willing to learn from others and share what I learn with others.
Can someone help me find the error that keeps this prg from running thanx [code] #include <iostream> #include <vector> using namespace std; int main() { vector<int>v(1,1); v.push_back(2);v.push_back(3);v.push_back(4); vector<int>::iterator i=v.begin(); vector<int>::iterator j=i+2;cout<<*j<<""; i+=3;cout<<*i<<""; j=i-1;cout<<*j<<""; j-=2; cout<<*j<<""; cout<<v[1]<<endl; //output 1 (j<i)?cout<<"j<i":cout<<"not(j<i)";cout<<endl; //output 2 (j>i)?cout<<"j>i":cout<<"not(j>i)";cout<<endl; //output 3 i=j; i<=J&&j<=i?cout<<"i and j equal":cout<<"i and … |
|
Hi, I'm taking an online C++ class and having some difficulty understanding the assignments. Can someone please look at the code I wrote to ensure validity? I am not asking for the answer just some guidance, I’m totally lost. The assignment is as follow: Write a prg to convert numbers … |
|
Re:
Hello everyone, I've been browsing this forum for small while and have gotten some great information out of it through searching so I thank you very much for that. Currently though I have a C++ program I have to write for class that inputs the full name of the student, … |