General C++ Programming - November 2012 (Page 40)

Binary Search Trees
 
Hello all, This is my first post here and I am giving myself a headache trying to figure out what is going on with my code. I do not want to post all of my ...
[2 replies] Last: There were some declaration issues between the two classes that were i... (by dresden0526)
by buboy
HELP IN EXCEPTION HANDLING
 
Cashier 1.0 is a C++ program that displays on the screen item codes with corresponding item description and price (at least 10 items). It asks the user to enter...
[3 replies] Last: Lol, I see no reason to do your assignment for you. (by Zhuge)
Parsing simple s-expressions
 
I'm trying to write a function to convert an s-expression in a string into a simple internal representation. I have a function to evaluate the internal data str...
[7 replies] Last: Hey, I haven't had too much time to play with this, but if you are sti... (by Duthomhas)
by BandK
merge sort
 
How to merge sort char Array ? This is algorithm void Spoji(float A ,int i,int k,int j) { int I=i, J=k+1, K=0; float *B = new float [j-i+1]; ...
[2 replies] Last: The FAQ page needs some work to make it less intimidating, but here it... (by Duthomhas)
Trouble reading and displaying from txt file.
 
Hello, I'm having difficulties with reading from a text file and displaying it in the console. I've looked at multiple examples but just do not understand...
[3 replies] Last: You guys are the best! If we're ever to meet I'm buying both of you a ... (by johnnydiamond08)
Simple Input Box
 
I want a simple input box that pops up when i declare it. I have googled but cannot find anything that is simple enough for me. Essentially my question is how w...
[2 replies] Last: What is an input box? Like a console? You already have a console, us... (by Stewbond)
Const pointer to mutable fixed size array
 
Hi, so the question is.. is there any way to write that? Other than this: T a ; T * const b = a; For instance, how would you write that a function e...
[10 replies] Last: If you really need to void foo( T (&array) ); (by ne555)
commands in console as the program runs
 
im trying to make a texted based rpg and i was curious how to get the program to always look for input starting with a "/" in front of the word and it wont inte...
[2 replies] Last: alright, after creating a thread how do i make the system look for the... (by Imgregorywong)
Choosing a class (Game development)
 
im curious if i can conditional create an instance of an object like this if (something == something1) { Object object; } object.somethingelse(); ...
[4 replies] Last: thanks, that seems really useful (by Imgregorywong)
explicit instaniation vs std::vector template how
 
#include <iostream> #include <vector> //using namespace std; struct TCbDoubleBridgeBase_Candidates { public: int I; int J; // TCbDoubleBridg...
[10 replies] Last: i probably did smth wrong. Everything works for me now. (by icegood)
by Babadu
timestamp milliseconds
 
Hello, I want to write a timestamp function that returns time in the following format. e.g. Sat May 20 2000 15:21:51:202 The code fragment: void time...
[3 replies] Last: not exact to your format but might get you started. #include <stdio... (by SamuelAdams)
writing on file
 
I wrote a code reading input from file and outputting some data to the file. i am expected to wrtie on 4 different files. my code writes only to the last file. ...
[1 reply] : Your code won't compile for me. what I would do is after: max=maximu... (by SamuelAdams)
Compiler Crashes Windows 8 Pro (help!)
 
This is the situation... I just newly installed windows 8 pro onto my netbook. I need to do some basic programming for my class, therefore i installed visual 20...
[2 replies] Last: Maybe the sticks are damaged and is corrupting memory causing your com... (by closed account o1vk4iN6)
by john22
Where should a file be located after writing on it?
 
Hello, I wrote to a file called "test.txt" and I tried to look for it and could not find it anywhere using search engines. I thought the file does not exist...
[3 replies] Last: If your not running it from the command line you would know what direc... (by SamuelAdams)
by Nausea
Nonuniform sprites. (Rubberbanding)
 
Hey! So I got a problem with different sized sprites in a animation. It works just fine with the sprites facing to the left, since the sprite is drawn from t...
[2 replies] Last: Wow, I had been thinking of the offset stuff before and after reading ... (by Nausea)
Arbitrary Precision computation with complex numbers
 
I'm to start using c++ for computations that would need: 1. Arbitrary precision (something like what is provided by MP library) 2. Complex Number support (MPC...
[no replies]
by Denver
h
 
asd
[10 replies] Last: Here is some code that is not indented: #include <process.h> int ma... (by Moschops)
How to...
 
I have written a function to take a string and return the string garbage attached. For example "THIS!!!!!" becomes "THIS". So Now that I have it written I want ...
[13 replies] Last: If I use this for(string::size_type i = 0; i < str1.size(); i++) ... (by jlillie89)
Write a C++ program that simulates the casino game of craps.?
 
Write a C++ program that simulates the casino game of craps. These are the rules of the game: • If a player throws a 7 or 11 (sum of two dice) on the first r...
[1 reply] : can somebody please help me writing this program This is a bad que... (by Moschops)
Directories and Files
 
I want to create Directories and Files, but i have some problems. So far i tried CreateDirectoryA(...) and QTs version mkpath(...). They work fine in visual...
[no replies]
November 2012 Pages: 1... 3839404142... 51
  Archived months: [oct2012] [dec2012]

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