General C++ Programming - January 2014 (Page 12)

Sorting Procedure Problems: Quick Sort
 
Im currently working on QuickSort,and yes I am just a beginner in C++ and Im still trying to master the basics of C++ programming. I made my own Quick Sort co...
[7 replies] Last: Such a sort wouldn't work the way you think. (It is a cross between b... (by Duthomhas)
by hilft
min_element help
 
I have problem understanding the error. Can anyone explain what I did wrong with min-elements on the code below? #include <iostream> #include <deque> #include...
[3 replies] Last: If your compiler says you have an error, it tells you what the error i... (by cire)
by hilft
set and iterator help
 
I have trouble understanding the output of the code below. I wrote some notes. Please read them and clarify my misunderstanding of the code. #include <iost...
[3 replies] Last: As an aside, if you replace set<int> on line 14 with multiset<int> ... (by cire)
by bm42
design pattern using C++11
 
Hi all, I would like to pose a design pattern to discussion that is achieved in two different ways. Imagine the situation where you have an interface "IFoo" ...
[4 replies] Last: a reference or pointer to only "IFoo"? That would be kind of pointles... (by cire)
pointer of vector in Netbeans/ VS 2013
 
Hi people, got this question: Book.h: #include <string> using std::string; class Book{ public: Book(string name); ...... // other functions ........
[no replies]
Switch-case statements may help branching of actions in your coding. How is it used?
 
Switch-case statements may help branching of actions in your coding. How is it used? please help
[1 reply] : http://www.cplusplus.com/doc/tutorial/control/ (by mutexe)
OpenGL GLUT
 
Hey guys, I have developed a few basic 2D games in ALLEGRO 5 with c++. ALLEGRO was a beauty. Now I want to explore the world of OpenGL GLUT. I want to creat...
[3 replies] Last: Yeah, going with freeGLUT now. (by CodeONE)
by huvcbo
incomplete sequence
 
Hi all, try this unsigned char x1, x2, x3; size_t ix = 0; size_t count; std::string Input = "EFEF9E9475C8C2D938C204EAE058F2B3"; unsigned char out ; for ...
[8 replies] Last: You see that because the sequence is not null terminated. (by kbw)
CODING PROBLEMS
 
how will you write a code if the output is like this? 1 1 1 1 1 2 2 2 2 2 3 3 3 3 3 and.. like this? 1 1 2 3 5 8
[2 replies] Last: thankyou ! (by daillem)
by Juicej
help with inheritance
 
for sum reason i keep getting a bunch of errors, in format of inheritance which to me is correct. i followed straight from the book. Can someone please help me?...
[5 replies] Last: Unless you post your current code, and the actual errors you're having... (by xismn)
my player@ slide right and down
 
@ player i don't want its slide please help #include <Windows.h> #include <iostream> void MoveUp(int x, int y); void MoveDown(int x, int y); vo...
[3 replies] Last: Thank you very much! :D i'm noob (by apina058)
Help with GUI
 
So just a heads up, this isn't with a GUI library like QT or wxWidgets. I've been working on something with SFML, and all I needed were a few buttons mostly. ...
[5 replies] Last: Oh, that's insanely cool. Didn't know you could even make an array of... (by Austin J)
Regarding Folder of Execution
 
- This question is currently only for windows; but I would like to know about a cross-platform way to perform what I want to do (explained below) - I have cre...
[5 replies] Last: Ah okay. I misread, sorry. That boost solution is the best way to go... (by Disch)
by sajast
deleting Root in avl tree,Help me plz!
 
Hi everyone I have a project about avl tree Implemention. I've written a deleteNode function that deletes the nodes of avl tree , but when i have only 1 node ...
[no replies]
by andrix
matrix class mpi
 
Hi everyone, i have implemented my matrix class as follows: class matrix{ private: unsigned rows; unsigned cols; bool **m; void allocate(bool ***...
[no replies]
link list node passed as parameter,argument pointer to pointer notation
 
I was having problems changing the value of my head node I passed it as an argument as head which would be the address. The parameter was defined as struct node...
[1 reply] : Remember that pointers are types in c/c++. So if the delete node funct... (by Smac89)
how to obtain a double from a string
 
I would like to convert the string without losing the decimal part and obtainig the same accuracy... this is my code: #include "stdafx.h" #include <...
[2 replies] Last: The types float and double do not store every possible floating-po... (by Cubbi)
Need Help! Tens Complement - BigInt
 
Hey guys I'm having an issue with my program. So let me explain what it's supposed to do. So the program has a class of BigInt and the main stores a c-string in...
[10 replies] Last: As of right now the array prints out 73900000000000..... And right arr... (by ImperfectCoder)
Inline, external call and gcc?
 
I have some functions inlined using the inline function prefix. If the function is called from outside the file (so a seperate psp-gcc -O3 ... filename.c filena...
[6 replies] Last: > I have the inline functions defined as inline within the file and th... (by JLBorges)
1 Warning
 
c:\users\q\downloads\kbc project.cpp(134) : warning C4715: 'life' : not all control paths return a value
[14 replies] Last: thanks disch Im going to check this. (by thefasninja)
January 2014 Pages: 1... 1011121314... 25
  Archived months: [dec2013] [feb2014]

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