General C++ Programming - February 2012 (Page 16)

floating point documentation?
 
I've been working on a C++ library allows programmers to define variables in the range of 1byte to 4,294,967,295 bytes. Now that i have signed and unsigned math...
[1 reply] : http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html (by roberts)
Sell your code
 
I wrote few line of code to help my friend but the problem is i dont know how make it work on his computer with me giving my source code. I all ready tried to g...
[5 replies] Last: in the solution explorer right click on your project ->properties ->co... (by closed account zwA4jE8b)
Help with simple code!
 
Hello, I am currently learning C++ and the topic of this week is functions, the task is to make cout and cin variables in one function and print it out in anoth...
[3 replies] Last: if the question is anwered and everything works, mark this as solved, ... (by viliml)
SDL Application problems
 
Hi again, My SDL Application, when run, seems to work OK, but it never actually appears. My IDE (Code::Blocks) says it's running, and it appears as a running...
[4 replies] Last: I do try to avoid them, but IMG_Load() only takes char* , so I can'... (by hnefatl)
optimizing an array
 
I want to find the similar elements in two arrays. I wrote a following program for that #include<iostream> using namespace std; int main() { int...
[7 replies] Last: @oonej - Kind of, yes :) @Gaminic - Sorry for late reply. True, Big O... (by incognito)
Auto-increment number
 
Hello, This code is for (hospital management system). SEE NEXT REPLY This code allow you to add patients. There are two types of patients. which is: 1...
[5 replies] Last: What viliml suggested (implemented within the class), http://ideone.co... (by closed account DSLq5Di1)
Hints on hiding alternative implementations?
 
Hi, I'm an old fart in (C-)programming, but quite nooby in today's C++. (Did little something with C++ at the end of of 80's.) My question: what would be a goo...
[13 replies] Last: I'm working with Linux - although it doesn't matter... There is also ... (by turboscrew)
Please Help
 
I made a program that i got as homework. the question is: Write a C++ program to sum the sequence if 2/9 - 5/13 + 8/17.... till the number of ...
[3 replies] Last: That's because you never change the values of a and b. You just keep a... (by hamsterman)
C++ Problems
 
Starting to learn c++ again and im having some real problems getting started. im typing the simple program. #include <iostream.h> int main() { cout <<"hell...
[4 replies] Last: There is no such thing as iostream.h , even the compiler said: #in... (by viliml)
Sorting Textfile Input
 
I have a program which sorts numbers written for a text file. For example input.txt contains 4 2 0 3 4 1 2 0 7. The fist number is the number of the data points...
[1 reply] : That code is trampling all over memory you don't own. #include <iost... (by cire)
by jwings
Cannot instantiate abstract class
 
Before posting this forum, I have tried to search through the forum but I still cannot find the solution and I don't understand... So I decide to post here a...
[3 replies] Last: You haven't provided a body for ListBase 's destructor. class Lis... (by shacktar)
coding ciphers (1,2)
 
This is probably going to be a stupid question,but im going to ask anyway.For a homework,im supposed to write a program to decrypt ciphers. One such cipher is a...
[31 replies] Last: That would be closer, but it wouldn't be right. Once again, i is your... (by cire)
by jham92
Number Guessing game
 
I am writing a program where you pick a number between 1 and 100. In this program i choose what the winning number is. I have it working when the user enters ...
[3 replies] Last: I guess that jham92 and kyky365 are in the same class? Both asked abo... (by webJose)
a number guessing game how to initialize number in an array??
 
a number guessing game. Your task is to crack a code which has been randomly created by the computer. To crack the code, you make guesses and the computer res...
[no replies]
How would I pass a pointer to my object?
 
I have a struct defined as private in a class list and I want to pass a pointer to one of my structs to one of my functions. This is my struct in my LinkedL...
[1 reply] : If you had a function in LinkedList that returned a pointer to ListNod... (by Texan40)
wxWidgets vs Qt
 
Trying to decide between libraries for my MVC model. What, in your opinion are the pros and cons of each of these libraries?
[1 reply] : I'd say Qt is easier to customize (I've never used wxWidgets mind you)... (by closed account o1vk4iN6)
OpenGL depth issues
 
I am trying to write a basic 3D game with OpenGL and when I make the objects far enough back they disappear. What I want is to have the objects look smaller whe...
[4 replies] Last: Don't see how it's last millenium as it's the same thing as doing glm:... (by closed account o1vk4iN6)
Dice Game
 
This is my Assignment and its very difficult, But maybe someone out there can give me a hand with this. Dice Game The dice game involves a set of six-side...
[2 replies] Last: Do it in small steps and compile/run/test after each step. Comment ou... (by vin)
by gibran
PLease help me with this pointer
 
I have a runtime error that i cannot figure out. The problme is in line (77 ). #include <vector> #include <iostream> #include <ctime> #include <cstdlib> ...
[14 replies] Last: "Butterfly, Cockroach, Cinderella, Pikachu, Shrek, Scareface"}; That... (by Moschops)
by rucafe
problem using namespace std
 
I am having a problem using namespace std. My code has been working fine for months. Then unexpectedly when I try to compile I get the following error: Error...
[3 replies] Last: The tutorial on this site uses "using namespace std;" in most of its e... (by vin)
February 2012 Pages: 1... 1415161718... 43
  Archived months: [jan2012] [mar2012]

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