QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

vector problem :(

This is a discussion on vector problem :( within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; i have this : #include <vector> vector<int> v; and it doesn't compile it says that is expecting a contructor, destructor ...

Reply
 
LinkBack Thread Tools
Old 08-18-2006, 02:49 AM   #1

Developer
 
Join Date: Aug 2006
Posts: 53
Trader Feedback: 0
Default vector problem :(

i have this :

#include <vector>

vector<int> v;

and it doesn't compile it says that is expecting a contructor, destructor or type before >
saulotmalo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-18-2006, 03:26 AM   #2
 
kibbles's Avatar
 
Join Date: Jun 2005
Location: |~AZEROTH~|
Posts: 3,601
Trader Feedback: 0
Default

wtf r u talking about!?!?!
but if its illegal
__________________
[CENTER][SIZE="3"][FONT="Comic Sans MS"][URL="http://forums.qj.net/f-qjnet-news-and-help-25/t--posting-guidelines-updated-04-04-07--73115.html"] [COLOR="Lime"]| Posting Guidelines | [/COLOR][/URL] [URL="http://forums.qj.net/f-qjnet-news-and-help-25/t--piracy-policy-updated-dec-28-2006--4394.html"][COLOR="Lime"]Piracy Policy | [/COLOR][/URL] [URL="http://forums.qj.net/f-qjnet-news-and-help-25/t-operation-positive-posting-73114.html"][COLOR="Lime"]Operation: Positive Posting | [/COLOR][/URL] [URL="http://forums.qj.net/f-qjnet-news-and-help-25/t-qj-quick-justice-policy-must-read-69509.html"][COLOR="Lime"]Quick Justice Policy | [/COLOR][/URL][/FONT][/SIZE]

[IMG]http://sigs.guildlaunch.net/wsig.php/1813305VpsDo.png[/IMG]

[IMG]http://img523.imageshack.us/img523/2470/towleiieesighw8.gif[/IMG][/CENTER]
kibbles is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-18-2006, 03:37 AM   #3

Developer
 
Join Date: Aug 2006
Posts: 53
Trader Feedback: 0
Default

i think use the std c++ library is illegal... please report it to a mod or several mods xD
saulotmalo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-18-2006, 03:43 AM   #4

Developer
 
Join Date: Mar 2006
Posts: 1,026
Trader Feedback: 0
Default

I've never used C++ so excuse me if this is completely off the mark...

You're doing something like this though, right?

Code:
#include <vector>

using namespace std;

main()
{
   vector<int> v;
//etc etc
If not I think this should work...

Code:
#include <vector>

main()
{
   std:: vector<std::int> v;
//etc etc
__________________

Check out my homebrew & C tutorials at http://insomniac.0x89.org/
Coder formerly known as Insomniac197

Quote:
tshirtz: what is irshell ??
Atarian_: it's where people who work for the IRS go when they die
Insert_Witty_Name is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-18-2006, 03:48 AM   #5
 
kibbles's Avatar
 
Join Date: Jun 2005
Location: |~AZEROTH~|
Posts: 3,601
Trader Feedback: 0
Default

wow u guys lost me at #
__________________
[CENTER][SIZE="3"][FONT="Comic Sans MS"][URL="http://forums.qj.net/f-qjnet-news-and-help-25/t--posting-guidelines-updated-04-04-07--73115.html"] [COLOR="Lime"]| Posting Guidelines | [/COLOR][/URL] [URL="http://forums.qj.net/f-qjnet-news-and-help-25/t--piracy-policy-updated-dec-28-2006--4394.html"][COLOR="Lime"]Piracy Policy | [/COLOR][/URL] [URL="http://forums.qj.net/f-qjnet-news-and-help-25/t-operation-positive-posting-73114.html"][COLOR="Lime"]Operation: Positive Posting | [/COLOR][/URL] [URL="http://forums.qj.net/f-qjnet-news-and-help-25/t-qj-quick-justice-policy-must-read-69509.html"][COLOR="Lime"]Quick Justice Policy | [/COLOR][/URL][/FONT][/SIZE]

[IMG]http://sigs.guildlaunch.net/wsig.php/1813305VpsDo.png[/IMG]

[IMG]http://img523.imageshack.us/img523/2470/towleiieesighw8.gif[/IMG][/CENTER]
kibbles is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-18-2006, 04:02 AM   #6
 
Nutterbutter's Avatar
 
Join Date: Jun 2006
Location: London
Posts: 645
Trader Feedback: 0
Default

Quote:
Originally Posted by kibbles'n'bits
wtf r u talking about!?!?!
but if its illegal
What the f*** are you on?
__________________
[b][center]
[URL="http://forums.qj.net/showthread.php?t=65032"][SIZE="3"][COLOR="Blue"]Omicron[/COLOR] - [COLOR="DeepSkyBlue"]A hacking simulation game for the PSP[/COLOR][/SIZE][/URL]

[url=http://profile.mygamercard.net/dr+nutterbutter][img]http://card.mygamercard.net/gbar/live/dr+nutterbutter.gif[/img][/url][/b][/center]
Nutterbutter is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-18-2006, 04:03 AM   #7

Developer
 
Join Date: Aug 2006
Posts: 53
Trader Feedback: 0
Default

thanks!!!! i just had this

vector<int> v;
using namespace std;

but i have it later from, now works like this

using namespace std;
vector<int> v;

thanks a lot!!! Insomniac197
saulotmalo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
problem , vector

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 05:45 AM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us