General C++ Programming (Page 50)

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 r...
[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 ...
[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 variab...
[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 t...
[2 replies] Last: i dont get it (by Chubby)
Problem with the function pdlacpy/MKL.
 
Hello! I have a matrix A =| 0 1 2 | |3 4 5 | | 6 7 8| and I want to copy the first...
[1 reply] : Read the source, it describes the parameters: http://www.netlib.org/sc... (by Smac89)
Remove duplicates vector of strings, keep first instance. Can't use algorithm
 
I have a vector of strings.vector input; bob sam bob sammom aardvark money aardvark wan...
[4 replies] Last: There are many other ways to remove duplicates and most of them are no... (by Smac89)
Constructors
 
Hi I am not familiar with using constructors. Could someone please explain the reason constructors a...
[2 replies] Last: Thanks a lot (by Stephanie16)
Having Problems with classes
 
Hello. I am creating a battleship program and it appears for everything to be working fine, except t...
[4 replies] Last: Update: I figured out the deploy but the fire function is messed up. (by Tressor54321)
for imaging experts
 
Hi! I want to write a program to resize images, and I'm wondering if any of you guys know where I co...
[no replies]
Is this the same? (vectors notation)
 
Is the same to write: (1) mesh electrodeMesh(10e-9,4,10); than to write: (2) mesh ele...
[4 replies] Last: Thank you @L B..! (by ryllprous)
Why does this code work that way?
 
I want to find a code that would search for a natural number n>1 such that satisfies n | 2^{n-1} ...
[11 replies] Last: yes, the required integer overloads may be packaged as function templa... (by Cubbi)
Constant in C++!
 
Hello thank for coming to me! //VALID: const int CONSTANT=100; int integerArray ={ 0 }; //but a...
[3 replies] Last: Line 8 is perfectly valid, however it is a runtime constant instead of... (by LB)
Program, array problem
 
Hi, I am a beginer in C++. I'm doing a program which made me frustrating. The object is to create ...
[no replies]
I have no idea how to begin to program this...
 
Create a program that simulates a random walk. It starts with position 0. If a generated random num...
[3 replies] Last: It's a start. Edit your post and write [co de] before your code and ... (by LB)
Types of arrays
 
Can somebody explain me the difference between: 1. int normalarray = {1,2,3,4,5}; 2. std::vect...
[6 replies] Last: Ok, thanks for your help..! :) (by ryllprous)
recursive merging linked list - HELP!!
 
hey i've just started learning building structures in c++ and they gave us an exercise of writing a...
[1 reply] : Please use code tags when posting code, to make it readable: http://w... (by MikeyBoy)
compilation error
 
can someone just compile this and tell me what exactly the error do this code have? #include "st...
[17 replies] Last: hey daleth, i tried hard to find out why my values of y are showing li... (by praneshiitm)
creating a copy of BST
 
void copy(node *& dest, node * root) { if(!root) { dest = NULL; return; ...
[2 replies] Last: The seg fault might not be coming from this code. I don't see anywhere... (by Smac89)
by NDSE
reading from a .txt file
 
Hello. I am having an issue loading information off of a .txt file. The file reads the following: ...
[6 replies] Last: Correct, that is where I have it. I moved the txt file to the working ... (by NDSE)
by jazpen
Code Reference
 
I just found the website: https://code-reference.com/start It is supposed to be a reference for prog...
[3 replies] Last: If you're not sure where to start typing your code and getting result... (by Catfish666)
Pages: 1... 4849505152... 68
  Archived months: [feb2014]

Cannot post in this page. To post a new message, go to the first page.