quick question about vectors

Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Dec 2007
Posts: 4
Reputation: drkprgrmer is an unknown quantity at this point 
Solved Threads: 1
drkprgrmer drkprgrmer is offline Offline
Newbie Poster

quick question about vectors

 
0
  #1
Dec 24th, 2007
i have this small program that im using to test some things. i have a visual c++ at school but its like 5 years old or whatever and i got visuall c++ 2008 expess at home and i need to know how to get this program to get the vector from the user... i feel like a noob
  1. #include "stdafx.h"
  2. #include <iostream>
  3. #include "apvector.h"
  4.  
  5. using namespace std;
  6.  
  7.  
  8. int main()
  9. {
  10. apvector i;
  11.  
  12. cin.get();
  13. return 0;
  14. }
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,858
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 755
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Senior Bitch

Re: quick question about vectors

 
0
  #2
Dec 24th, 2007
apvector isn't supported directly by Visual Studio. Do you have the actual header, or are you getting an error that it can't be opened (because it doesn't exist)?
New members chased away this month: 5
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 4
Reputation: drkprgrmer is an unknown quantity at this point 
Solved Threads: 1
drkprgrmer drkprgrmer is offline Offline
Newbie Poster

Re: quick question about vectors

 
0
  #3
Dec 27th, 2007
sorry it took me a while to get back on but anyways. that code compiles and runs smooth its just whenever i try to have the user input data nothing works.
Last edited by drkprgrmer; Dec 27th, 2007 at 3:46 pm.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,661
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1500
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: quick question about vectors

 
0
  #4
Dec 27th, 2007
>> it doesn't work
What exactly does that mean ? And post your most recent code because the code you originally posted doesn't do anything at all.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 4
Reputation: drkprgrmer is an unknown quantity at this point 
Solved Threads: 1
drkprgrmer drkprgrmer is offline Offline
Newbie Poster

Re: quick question about vectors

 
0
  #5
Dec 28th, 2007
i figured it out nvm
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum


Views: 927 | Replies: 4
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC