General C++ Programming - March 2011 (Page 10)

by Disch
Saving floating point as binary
 
What are you guys recommendations as for a way to portably save floating points as binary? The ob...
[1 reply] : Unless your binary file format specifically indicates how your floatin... (by Duthomhas)
Deleting a node with a certain value
 
I'm writing a program that creates a lists of bikes from a file. Currently, I think I have everythin...
[2 replies] Last: Thanks for the info ne555. I've made some changes to my program but I'... (by skatingrocker17)
n choose k
 
I can generate all the possible ways to choose 3 things out of 6 things with the following code (ord...
[2 replies] Last: This solution should work, at least it did when I went through it on p... (by Deviouscola)
SFML segmentation fault when calling sf::RenderWindow::Clear()
 
Title says it all. I'm encapsulating SFML in a class and making some widgets for a basic GUI library...
[4 replies] Last: I re-compiled and re-installed the libraries and it works. I guess the... (by chrisname)
Serious Problem With Arrays
 
Here's the code. using namespace std; int main() { char b, d; char item_type...
[8 replies] Last: I have a feeling you started with BASIC... no self-respecting programm... (by packetpirate)
by mxs
Occasional Pointer Failure
 
I’m making an Asteroids game and to handle collisions between objects, I’m storing them in a vec...
[10 replies] Last: I’m sorry, it’s quite a large chunk of code which would require a ... (by mxs)
Array Problem
 
Look at the following code. When it gets to the second switch (enter amount part) I run into a probl...
[1 reply] : Please don't post duplicates. http://www.cplusplus.com/forum/general/3... (by kbw)
stringstream and numbers
 
The code below will explain better what i want: #include <iostream> #include <iomanip> #include <s...
[2 replies] Last: That's it, thanks. (by savavampir)
by uTil
infinite linked list
 
Hi, I made a post like this in the Beginner section and wondered if the content was appropriate. So ...
[9 replies] Last: Your linked list is made up of nodes allocated on the heap. But that ... (by kbw)
Interesting Problem with multiple File I/O
 
I am experiencing a problem reading in from files. myfile1.open("File1"); if (myfile5.is_open()...
[7 replies] Last: Yep. I just noticed that. Thank you :) (by leezardking)
Using a constant class variable
 
I have this array of "Table" objects. Table tables ; Inside this object there is this constant v...
[3 replies] Last: not quite like that no, firstly you'll have to return a Table object, ... (by quirkyusername)
Prime numbers from 1 to 100
 
Hey there, need some assistance. I want to print out prime numbers from 1 to 100. I've created a pro...
[6 replies] Last: this is for all the prime numbers. (by waleeds37)
inFile with an if/else
 
I am new to C++ (currently taking it in school) and I have actually been doing well up until this po...
[4 replies] Last: getline(infile, studentName); infile >> ws >> studentYear; infil... (by closed account zwA4jE8b)
post-fix calculator input problem
 
Hello, I'm trying to make a post-fix calculator with stacks, And im running into problems with the i...
[3 replies] Last: OK. The only problem I see with your code so far is that you won't pa... (by PanGalactic)
Event callback on a deleted object instance.
 
Hello, I'm facing a new issue with my event library. Almost all is working very well by now with th...
[1 reply] : What you need are managed pointers, and something like boost::shared_p... (by jsmith)
uncertinity regarding technology..
 
Hi Guys This post is regarding the dilemma in my professional carrier.. I am a VC++ programmer...
[7 replies] Last: ok buddy thanks a lot ... (by Nov Programmer)
Need help with vector writing in/out. I've been working for hours!!
 
Here is my code. This part works. It accepts the string and writes it to the file #include <io...
[1 reply] : Well This makes things easier class UserPw { ... bool operator==(c... (by coder777)
cant load msado.tlh
 
I cant seem to make this statement work in a header file : #import "msado15.dll" Ive also trie...
[7 replies] Last: Thanks for posting the fix. (by kbw)
by pizet
trouble with processing input
 
Hello. Let's say, that I have N lines of input where on each line are from 1 to K integers....
[5 replies] Last: Use a vector to store the data. If lines are important, then use getl... (by firedraco)
metric conversion
 
pls i need an assistance in coding a program 2 perform temperature conversion (celsius - fahrenheit...
[1 reply] : What do you have? (by firedraco)
March 2011 Pages: 1... 89101112... 31
  Archived months: [feb2011] [apr2011]

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