General C++ Programming - September 2013 (Page 34)

Update container value on element modify
 
Hello, I need "little" help. I'm trying to make dynamic status bar. How? I will create class, where will be function add(const string text, T value) Ho...
[7 replies] Last: Yes, you mention that what I need! I need vector to store pointers. ... (by glararan)
by zanzi
missing number
 
I'm trying to create this program but i have some problems if some one can help i need to find mission phone number,so it should work on this system 1- en...
[2 replies] Last: You need some kind of rule that all phone numbers follow in order to g... (by Mats)
by andrix
heap sort
 
hi i'm trying to implement a version of heap sort, the compiling gives no problem; however the vector doesn't get sorted. can somebody help me see where i ...
[no replies]
Segmentation Fault in an input/output array
 
when I try to run the code, I get a segmentation fault core dumped it returns 139 (0x8B) the file it is pulling from is a list of numbers, but without the strin...
[1 reply] : That's pretty much unreadable as presented. Can you: 1. Format your c... (by kbw)
by Ceset
SDL_GetKeyboardState(NULL);
 
this is the example they gave at sdl 1.2 Uint8 *keystate = SDL_GetKeyState(NULL); if(keystate ) printf("Return Key Pressed.\n"); if(keystate && keystate...
[6 replies] Last: ty @computerquip (by Ceset)
Problem in SDL won't detect debugger
 
Current compiler doesn't have correctly defined debugger! ToDoList: Warning: No to-do types or comment symbols selected to search for, nothing to do. ToDoList...
[4 replies] Last: [quote=Sharan123]can not find -lmingw32 -lSDLmain-lSDL this error... (by Ceset)
Optional parameter in stringstream.
 
Hey guys, I'm reading in a data set using an ifstream, then fetching line by line to a stringstream: std::ifstream sfile(filename); std::string test...
[7 replies] Last: Never heard of operator bool. Thanks for the info, both of you! (by Gaminic)
Help Me Please T T
 
1>------ Build started: Project: P5, Configuration: Debug Win32 ------ 1>Build started 9/3/2013 3:14:18 PM. 1>PrepareForBuild: 1> Creating directory "c:\users\...
[1 reply] : Line 146 of glut.h and line 353 of stdlib.h seem to declare same symbo... (by keskiverto)
Saving text stored in array to a txt file
 
Hi, i'm confused with how to save text stored in an array to a txt file. can sum1 help me how to save the text in an array to a file/txt file......
[7 replies] Last: this image converter might do you a favor! http://www.rasteredge.com/... (by jacaboo)
recursive permutation algorithm (numeric)
 
Hello everyone, I have a task to write recursive permutation algorithm for C++. Here is what I have got, but when I run it, in the middle of permutation it m...
[no replies]
number guessing game binary search
 
so i am still relatively new to c++ and trying to follow the book, i get the concept of binary search but i can't seem to put it in affect. can anybody help me ...
[2 replies] Last: ah how do you generate a random number? and for the infinite loop we u... (by azntrindo)
Beginner QT Programming question
 
I'm pretty new to QT ('bout two days of experience) and I'm just writing a simple program to kind of just figure out the way it works. The program has two radio...
[2 replies] Last: Ok awesome thanks! I'll keep that in mind about the Qt. (by mhaggard)
text marquee
 
I have the code to make the text roll. But the problem is that the application can't execute other instructions coz its busy in the infinite loop of the marquee...
[7 replies] Last: If you want to use threading, c++11 makes it easy with std::thread Jus... (by Superdude)
by zionet
1,000,000th Fibonacci Number
 
As finding the fibonaci 1000000? What is the code?
[5 replies] Last: Is this for Project Euler? The point is for you to practice writing co... (by Daleth)
Allocate memory in a function and call from main
 
So my assignment is to create a program that calls for a function in main that dynamically allocates an array and then have pointers with multiple levels of in...
[6 replies] Last: bump (by seansabour)
data structers mini project
 
hello everyone our class have been asked to make a small application using c++ through data structure it need not have visual effects plzzz help me out wid s...
[6 replies] Last: [quote=andywestken]Anything longer than a few lines is hard to read wh... (by Ceset)
string to int
 
Hi everyone, i am C++ newbie. I want to ask how can i convert string to int and split it? Like given string input is 00; I want it to become 2 int which ...
[3 replies] Last: char s = "012345"; int a[sizeof( s ) -1]; std::transform( std::begi... (by vlad from moscow)
DOS
 
Is DOS an operating system if Yes then why ? if no then why not give me the region ? as per as I know DOS is not an operating system bt my professor is sa...
[16 replies] Last: DOS is still an OS for special uses. For example, a HDD/SDD vendor ca... (by keskiverto)
How to write program in C++
 
Write your question here. I want to write the code which ask for five numbers to enter, and show the biggest number of five entert
[18 replies] Last: Dear All, Thank you very much for this exelent work you did,I told yo... (by zeosmani)
txt data into array
 
Hi, I need to read a text file, put its data into an array, process that data in the array, then write that out into a text file. I am having trouble read...
[no replies]
September 2013 Pages: 1... 3233343536
  Archived months: [aug2013] [oct2013]

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