General C++ Programming - March 2014 (Page 17)

explicit typedefs
 
Hey guys, I'm looking for a way to make explicit type conversions between two "types" that are renames (typedefs) of the same base type. An example: // T...
[5 replies] Last: Oof, that hurt my head. I think I'll stick with Boost.units for now, b... (by Gaminic)
Irrlicht custom animated scene node?
 
Hi, Firstly I would have posted this in the Irrlicht forums but I think their registration system is broken. I am creating a 3d game with the irrlicht eng...
[no replies]
Simple Peer-to-Peer in C.
 
Using C instead of C++, can anyone link me to a for-dummies example of simple peer-to-peer connections in C? I want to make a program that can send and receive ...
[3 replies] Last: Yes, there are a few libraries that let you write portable code for so... (by Computergeek01)
Specialised collections (or not)
 
I've got myself into a debate in the office about specialised collections, I feel like a lone voice atm so thought i'd throw it in here for feedback. Our cod...
[3 replies] Last: @doug4 20 different MyTypes, soz for the confusion. we only use #defi... (by Jaybob66)
by ane
list of vectors (a vector of n vectors of m elements)
 
I create a list of vectors (a vector of n vectors of m elements). std::vector <std::vector <int> > vsFA (n, std::vector<int>(n)); How I assign values? I try b...
[1 reply] : I create a list of vectors (a vector of n vectors of m elements). It... (by Computergeek01)
Need help!
 
I am very new to C++ and I find it very hard to write this program for the first time. I've been watching videos but they are not helping me with this program. ...
[1 reply] : What have you written so far? Also, who gives you this assignment? Us... (by LB)
Staic allocation and dynamic allocation
 
Lets say I have following code... if(pass==1) [ int a; ..... .... ...//somecode } Now memory allocation may happen at run time depending on th...
[2 replies] Last: @Doug4 Thanks.I have got it. (by venkatacplpl)
string replace is not working for "\'"(\+Apostrophe)
 
Currently I am trying to write a program where my requirement is I want to change ‘ as \’ using C++. I used existing C++ String:replace class and it is n...
[3 replies] Last: No worries dude :) (by mutexe)
Homework help!
 
If anyone understands my homework assignment, I would appreciate any help. Unsure where to start. Thanks in advance! http://www2.cs.uh.edu/~acl/cs1410/As...
[1 reply] : As always: input, logic, output. The input is clear: two sequences of... (by Gaminic)
pointer to vector problem
 
ive created a vector of vector and initialized like this vector<vector<double>*>* vec1= new vector<vector<double>*>; for(size_t t =0 ;t<500 ;t++ ) { vect...
[11 replies] Last: ok got it i want to copy vector<vector<double>*>* vec1 from vector<ve... (by naveen2525)
question
 
i want to ask whether the library graphics.h is compatible with 64-bit windows 7?
[2 replies] Last: Nope. It is not. graphics.h is about 25 years old. It was created fo... (by MiiNiPaa)
graphics h error id returned 1 exit status
 
Hi!I am trying to compile a program with the graphics.h library included but I always get this error:Id returned 1 exit status.
[1 reply] : That library is very old, deprecated, and non-standard. If you want g... (by giblit)
ncurses not working with iostream
 
ive recently started working with ncurses on linux. it doesnt want to compile if i include iostream in the headers. im not sure why that is so i havet been able...
[3 replies] Last: well iostream is very different than fstream (in this case). iostream ... (by Little Bobby Tables)
Moving the head of an array
 
Basically, my function receives an array. For example: u8 array = {1, 2, 3, 4, 5} I don't need the first 2 elements, how can I access the array's 3rd elem...
[1 reply] : int myArray = {1, 2, 3, 4, 5}; int *cut = &myArray ; somefunc(cut);... (by Smac89)
by csharp
Please check my code!
 
Hello, here is my code, I have problem with Max operator For instance, 13 M 47 would be 47? how can I do that ! I don't know how I can use it don't tell me...
[6 replies] Last: thank you guys, it worked case 'M': if (num1 > num2) ans = num... (by csharp)
Visual Studio 2013 Error
 
Hi, I have recently been having some trouble with Visual Studio. I create a new program and once it's done I try debugging it and then it displays: "The system ...
[1 reply] : Here are some reasons why this might occur http://msdn.microsoft.com/e... (by xismn)
BST comparing parents to the root
 
Lets say for example I have a BST that is sorted by char names, using strcmp. IF greater than 0 go right else go left. I.E (this is just an example, they ar...
[2 replies] Last: > I.E (this is just an example, they are not inserted correctly) e.g.,... (by ne555)
My Problem (Remote program)
 
I'm having a big problem at the moment. In my remote program (like Remote Desktop Connection), when I press Winkey (Start button), it will call winkey of system...
[2 replies] Last: I've already emulated keyboard in my program, but when I press Start b... (by tuan8998)
by doc17
need assistance in passing my ints to void functions
 
At first i had my int variables in global scope however i cant do the so im trying to pass my variables from my main to the void functions but cant, can anyone ...
[1 reply] : Try looking here: http://www.cplusplus.com/doc/tutorial/functions/ (by Zhuge)
by Chubby
Class
 
First of all, I kinda dont know is this mean (English is my 7th lag) I got the first part but now the second part: A. Write a statement that defines an arr...
[2 replies] Last: i dont get it (by Chubby)
March 2014 Pages: 1... 1516171819... 36
  Archived months: [feb2014] [apr2014]

This is an archived page. To post a new message, go to the current page.