General C++ Programming - November 2013 (Page 12)

viod*
 
Hi. There is a function int MPI_Bcast( void *buffer, int count, MPI_Datatype datatype, int root, MPI_Comm comm ) Is it possible for me to pass it a two di...
[2 replies] Last: b is a pointer to pointer, and the function accepts just a pointer, so... (by hooshdar3)
C++ Not Freeing Memory
 
Hello, I am confused on why my program will not release its memory back to the OS. Here is my code: #include <iostream> #include <vector> template <class C...
[3 replies] Last: I try your code and seems to have the same problem I experimented with... (by rmxhaha)
by dkaip
How i can delete a container from a deposit?
 
Hello. I have a deposit of containers and i must delete the cats container. How i can do that? #include <iostream> #include <string> #include <vector> ...
[2 replies] Last: Yes i know that. But here in for loop must delete a container, no an o... (by dkaip)
Is there any advantage to write like this?
 
if I write a class default construction function from wallBoundary_t() { u=0; v=0; pDer=0; cDer=0; } to wallBoundary_t() { u=v=pDer=cDer=0; ...
[2 replies] Last: Thanks! (by northfly)
Input file and store in string
 
I'd like to input a file and store the contents of the file in a string. Here is my code: std::string inputFile(); int main() { std::str...
[1 reply] : Don't loop on EOF! I assume you mean to strip all EOLs from the strin... (by Duthomhas)
Airplane seating chart c++
 
This part of the program is already done, i just need help completely the header file for the program. #include "airplaneSeats.h" const int NUM_ROW = 1...
[no replies]
Convert Int array to an integer
 
Is there anyway we can make an integer array to an integer Thank you
[4 replies] Last: Remember your basic math. This is kind of the opposite of logarithm --... (by Duthomhas)
Integer Length Function
 
Dear Users Does anyone know of any good function that get the length of an integer in C++ I do know of str.length(), however i want something similar for in...
[1 reply] : Logarithm base 10. (by Duthomhas)
Help, I'm stuck on this poker program...
 
Hello there, I'm still a beginner to this C++ programming and so I'm stuck with this project that I have due. I need to come up with a program that works with e...
[3 replies] Last: Ok, so an overview is (I'm assuming 5 card draw poker here?): -Set up ... (by Mats)
by Emtiaz
How bitwise AND works for Class Variables?
 
In the following program how bitwise AND work for class variable? As we know: if(7 && 8) evalutes TRUE whereas if(7 & 8) evalutes FALSE. What are the bit values...
[1 reply] : & Is bitwise and. In this context, showpos is a value which has all... (by Disch)
How to jump around in the code?
 
I'm making a text adventure in C++, and I would like to know how to jump around in the code for each event that could happen in the code. The text adventure is ...
[1 reply] : Congratulations! Through your realization, you're on your way to learn... (by xismn)
by rudd
c++ programming project
 
hi, i need help with creating a c++ program that can do the following, function, -add, edit, delete & search staff record -view staff schedule, calculate ...
[no replies]
error : 'split' was not declared in this scope
 
Hi, I have an error : 'split' was not declared in this code I don't know why it say that because I don't think I have a declaration problem Here's my cod...
[4 replies] Last: Did you write the function split()? I don't think that it is one of th... (by JockX)
Trouble with c++ assignment
 
This whole semester, my class has been working on a big program in installments. Well, a couple installments ago, my program wasn't right and I never got help ...
[no replies]
Trouble deleting elements in dynamic array
 
Hi, I'm a beginner at programming and I'm having a bit of trouble trying to delete elements in a dynamic array of objects. I tried to delete elements by shiftin...
[3 replies] Last: Thank you for the feedback. I took a break and looked at it again and ... (by icyphoenix84)
C++ RPG Project v0.3
 
This is a Console project (CMD). I haven't done extreme too much as I started not too long ago. I do not have a name for it yet but I will before v1.0! Here ...
[2 replies] Last: I think this is of a more 'lounge-ish' nature. (by closed account N36fSL3A)
by zENZEz
Ifstream failure
 
Hi guys! I'm trying to do the last part of my assignment and the code works fine, but I have an issue. When I read from a file (that the user inputs the name...
[6 replies] Last: Ah yeah, fixed it all, even the leak as well by using the already exis... (by zENZEz)
by Radec
libwebsocket problem
 
Hello I try to build a project with server and client, both written in c++ and they communicate via websockets. #include "Websocket.h" const char* Webso...
[no replies]
by dd76
STL
 
HI *, I need some help regarding how to efficiently store some data, so the lookup is faster. I need to use STLs set/map/multimap/hash etc etc. Please let me...
[7 replies] Last: Thank you (by dd76)
by Shal
vector std::bad_alloc
 
I'm trying to implement a suffix tree in c++ while adding nodes to my vector list, it throws std::bad_alloc after adding a third element into the tree. I have n...
[1 reply] : Node root = Node(); ... currentNode = &root; ... ... (by Cubbi)
November 2013 Pages: 1... 1011121314... 46
  Archived months: [oct2013] [dec2013]

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