General C++ Programming - November 2011 (Page 26)

can some one debug ?
 
i don't understand why this program wont work is it because im not using a project #include <iostream> #include <string> #include <iomanip> #include <fst...
[no replies]
by gladi
about heap up
 
Hi guys, I am stuck in this problem, I don't know how to build the heap I did most of the functions. take a look on my code you may can give me hints that would...
[2 replies] Last: :D :O :p hey guys I am struggling with this functions void Heap:... (by gladi)
Speech In a c++ program?
 
hello i am making a program where you can have somewhat a conversation with it and i was wondering if their is anyway to add the windows speech function in it s...
[7 replies] Last: Thanks guys ill look in to MSDN (by redacted178923)
Big Number
 
User suppose to input his salary. i am using long long for input. it dose not work if user put too big number. is there an way to setup user input that dose no...
[no replies]
Stuck in While Loop
 
Hello, so for some reason, I can't get out of this while loop. The code takes a Char letter between A-I (depending on the gridSize, depends on the length the gr...
[no replies]
by reedsu
Help with c++ code for transitive property of a relation of a set
 
Hey i need to make a function for the transitive property of a relation of a set and i cant figure out why this wont work. i think theres an infinite loop in it...
[no replies]
Help!
 
Design a program that will allow the user to select from the following : Math algorithms Figures Exit Math algorithms a. Euclidean Algorithm In...
[1 reply] : Sorry, you need to do your own homework. Code as much as you can, the... (by webJose)
c++ overloading to make an overridable variable
 
I have a bunch of generated code. (no I can't fix the generator) For every 'float' I want to make it so that when 'we' is set the contents of the 'float' canno...
[3 replies] Last: ?? 'operator float(void) const ....' specifies the cast type, I don't ... (by Elden Crom)
weird random values
 
hi guys! what could cause a non-randomized algorithm to return different values for the same input each time it's called? i'm using strtoul() in my code,in a...
[12 replies] Last: Wow thx a million times!that solved the problem!i love u shacktar:D (by MasterAsh)
Question about destructors
 
I am facing a very strange issue: A mutex object is being owned by some thread, but the mutex object is managed through a class, and the destructor should be r...
[no replies]
New programming student assistance
 
I'm new to the world of programming and have been assigned with the task of taking data from 2 separate input files and rewriting it to a xml file as output thr...
[2 replies] Last: Well of course you need to know your root node. But breaking it down ... (by cppabuser)
Whacky Array memory allocation
 
I was programming a quick-sort program, and even before I coded the quick-sort part, my ARRAY, toSort which had been allocated for 6 values, got 8 values when I...
[6 replies] Last: OP, rather than using delete &toSort; // or whatever else just set... (by ceruleus)
C++ Game development Question
 
Hey, everyone! I would like to ask if I should be going on to game development yet. Right know i'm using code::blocks IDE coding in c++ and using SDL library fo...
[15 replies] Last: I'd say the OP should jump into a tutorial for using SDL if that's the... (by Computergeek01)
by Fuimus
while loop with !in_stream.eof
 
.
[4 replies] Last: while(1) { printf( "use code tags for your code" ); } thusl... (by ceruleus)
by Tatipu
How to terminate input and go directly to output?
 
hey guys, I'm almost done with my program but I have one problem... I can't terminate my input the correct way and go to the output. My input is string ...
[4 replies] Last: Alright, thanks I'll look into it! (by Tatipu)
Need help writing c++ with using recursion (intro c++) Attempt inside. (1,2)
 
Hello. I've tried to do this on my own over the weekend but it's really confusing. How would I go about making a recursive function which is my 'int evenUp ( in...
[20 replies] Last: I put a if conditional to work the nine digit around. Please, test it!... (by sandrorb)
return struct array from a function
 
Hi, This program takes in employees details like name,title,salary etc and should return the structure array.I am not being able to return the array of stru...
[3 replies] Last: #include <iostream> #include <iomanip> #include <cstdio> #include <cm... (by bluecoder)
boost::thread and boost::promise
 
I have some question about boost::promise After studying the website of boost and "C++ concurrency in action" I still can't get the idea of boost::promise ...
[no replies]
TMP and codebloat
 
How could we measured the relationship between types and binary files generated by compilers? template<typename T> T Max(T const A, T const B) { ret...
[no replies]
help passing arguments
 
¡Hola amigos! i receive an error in the code: #include <iostream> #include <pthread.h> using namespace std; struct arg_struct { int arg1; ...
[2 replies] Last: Hi , Have you tried struct arg_struct *args = (arg_struct*)&argume... (by bluecoder)
November 2011 Pages: 1... 2425262728... 47
  Archived months: [oct2011] [dec2011]

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