Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~10.3K People Reached
Favorite Forums
Favorite Tags
c++ x 11
Member Avatar for ENCHTERP

Hello: If I have a 2d Vector and I want to convert it to a 2d Array what would be the best way to accomplish that. I know that I can go through a for loop to do it element by element but I would prefer to use the copy …

Member Avatar for mrnutty
0
109
Member Avatar for ENCHTERP

Hello: Is it possible to declare a variable with multiple data types. for example in my program I would like to declare my variable as int or char depending on the situation the variable is in as an example. declare variable C int K =cin(); if( K ==4) C = …

Member Avatar for ENCHTERP
0
2K
Member Avatar for ENCHTERP

Hello what would be the best way to return a pair<> via a structure Let me further explain. Below is the type of struct that I want to use: //compass.h struct Compass { pair<int, int> C; pair<int, int> E; pair<int, int> W; pair<int, int> NE; pair<int, int> NW; pair<int, int> …

Member Avatar for ENCHTERP
0
88
Member Avatar for ENCHTERP

Hello I have created a 2d-vector  I have no problems filing this vector. But the issue I am having is that I want to extract a specific row of this 2D vector (say the 2nd) and store it as a 1d vector. What would be the best way to do …

Member Avatar for VernonDozier
0
8K
Member Avatar for ENCHTERP

vector< vector<char> > VecGrid; vector< vector<char> > VecGrid(3, vector<char>(15,'O'));[code]Hello I have created a 2d-vector I have no problems filing this vector. But the issue I am having is that I want to extract a specific row of this 2D vector (say the 2nd) and store it as a 1d vector. …

0
69