General C++ Programming - January 2011 (Page 18)

by Whorse
Linked List Bubble Sort
 
Hey everyone, I've just finished doing a Bubble sort algorithm for my double ended linked list, I'd just like to get everyone's opinions on it and to check if I...
[no replies]
I feel like I'm ready for the next step
 
I feel like I'm at the point where I have a good grasp on logical programming, and would like to move on to the next step of learning C++. I would preferably li...
[1 reply] : If you want to get into game programming, start programming games. Do... (by Disch)
check this c++ code and please correct
 
Cubic conversion of Borwein's Algorithm #include <iostream> #include <cmath> using namespace std; int main() { float a; double pi; double s; d...
[3 replies] Last: Check this. maybe you can understand this .... Borwein's algorithm... (by iamuser2007)
TEXT TWIST CORRECTION
 
whats wrong with this code? it has 4 errors.. #include <stdlib.h> #include <stdio.h> #include <string.h> #include <time.h> #include <conio.h> void ra...
[4 replies] Last: I already fixed it.. i renamed the function randomize(); here because ... (by joeneldeasis)
Not Printing
 
I'm trying to create a simple encryption program. You type in what you want encrypted. Then it evaluates the letters and prints out the encrypted ones. #inc...
[8 replies] Last: A map is overkill in this case, I recommend a simple array: char map... (by rocketboy9000)
Defining a class method with string return type
 
I'm sure this must be a real noob question, but I've gone round and round in circles and can't see anything wrong here... I'm writing a class; in the header...
[3 replies] Last: If you don't want to use the using namespace std; directive (this im... (by closed account 1yR4jE8b)
setting up SFML with visual studio 2008
 
I've followed this tutorial http://www.sfml-dev.org/tutorials/1.6/start-vc.php linking to the lib and include files in VC++ directories, which I think worked be...
[2 replies] Last: Did you make sure to move the libs to the correct spot? That's the onl... (by firedraco)
Proxied containers and STL
 
One of the recent posts became the topic of my current exercise. I am trying to write a vector wrapper that behaves like reference to vector. The original vecto...
[no replies]
Complimentary C++ languages?
 
So I have a couple questions.. I want to get into software engineering and development, are there other languages that I should familiarize myself with that are...
[2 replies] Last: Generally, one should'nt be familiar with a computer language. It is a... (by EverBeginner)
Best Practice Question: When to store data on stack vs heap?
 
Hi! This is a pretty straight-forward question. I want to make sure I understand when to allocate dynamic memory on the heap vs. instantiating an object on the ...
[5 replies] Last: This does not take into account NRVO. Even in the first case no copy ... (by Athar)
Convert vector<DerivedObject*> to vector<Object*>
 
Hello, I'm trying to send a vector<DerivedObject*> to a function that takes in a vector<Object*> where DerivedObject inherits Object. But when I compile the ...
[6 replies] Last: Thank you all for your comments. You've convinced me that using reinte... (by redcurry)
Big O notation and recursive functions
 
Hi, I have read about 30 websites, and several articles on the topic, but nothing has really done a good job of explaining how to calculate the big o of a re...
[13 replies] Last: Thanks again simeonz! This has been very educational. I have a much b... (by ghostfacelz)
Is there a platform independent way to get all filenames in a directory?
 
as above?
[1 reply] : boost filesystem ? (by hamsterman)
a proble with qt
 
Hello i install qt i can debug and release,but when i release and will started the mainwindow.exe ther come a fault qtcor4.dll not found i registed all dll in ...
[1 reply] : Wie wäre es, wenn du in einem deutschen Forum nachfragen würdest? Da... (by myusername)
by Whorse
Brute Force return issue.
 
I've implemented a Brute Force search into my double ended list class but have encountered a small issue. When I return the value, it returns the rest of the en...
[3 replies] Last: show us the code that does the printing. (by rocketboy9000)
Really weird window issue...
 
I'm working on my game engine again, and I got it to the point where it compiles. However, when it runs the window does some really strange stuff. The x increas...
[7 replies] Last: Well, MoveWindow is definitely the issue - I commented it out and it s... (by PiMaster)
by ToniAz
Binary Tree representation of an m-child Tree
 
Hello Everyone! I've been wanting to represent a tree with a maximum of m children per node as a binary tree but failed. Could anyone suggest a solution? ...
[1 reply] : Every node in the actual binary tree has a corresponding node in the h... (by simeonz)
converting from string to float/int
 
hi guys, my english is not so well, i'll try my best to explain i'm working on a small program that receives a std::string from the user like this: "GE:0...
[2 replies] Last: If you already have the code to pull out each token as a substring, th... (by jimc)
a hard program i'm trying to write!
 
write a program handling an inventory, by storing number of item codes inside an array (numeric values), a price for each item, and a quantity in the inventory....
[3 replies] Last: Firstly, I suggest that, for simplicity, you should use 3 one dimensio... (by hamsterman)
Why doesn't this work?
 
This is supposed to be a simple console but there is some errors with it. Can anyone help me please? // test command prompt #include<cstdio> #include<cs...
[9 replies] Last: Thank you very much, it worked! (by ThePlague1988)
January 2011 Pages: 1... 1617181920... 24
  Archived months: [dec2010] [feb2011]

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