General C++ Programming - January 2013

write a program using one dimensional array that determines the highest value among the five values ...
[no replies]
help to find error
please help to fint where the error is in this code i want the function to display the bigger number...
[7 replies] Last: Well. how do you determine that a is equal to b? You will use the expr... (by vlad from moscow)
std::out_of_range getting thrown
So after compiling my program with no errors, I try to run a query and the terminal tells me: te...
[1 reply] : What output do you get for the following? #include <iostream> #inclu... (by cire)
HTTP Server and Client
Ok, i am not asking for help in my assignment, i only want reference to read from. My Assignment ...
[1 reply] : Here's one to start with, just posted this on a similar thread: http:/... (by randisking)
Filling a Vector with Structs
I am doing a homework assignment and am totally lost right now on how to fill a vector with structs ...
[2 replies] Last: Yes. I'm trying to figure out if I was headed in the right direction o... (by gamer541)
converting an array of integers to string
Hello Friends, I used to work as research assistant to my professor. I was doing a problem on facil...
[no replies]
How can I convert a sequence of PNGs to an MOV/AVI (has to work on Mac)
I have a game, which records the game. I have it currently just making a sequence of png's, but how ...
[no replies]
Pointer to pointer?
Not sure if I'm doing this right. Do I really need to create a separate pointer to point to dynamic ...
[7 replies] Last: And why the cast there? operator new() is essentially malloc and re... (by closed account o1vk4iN6)
by cppgm
[PR] C++ Grandmaster Certification (
We're pleased to announce the C++ Grandmaster Certification, a free online course in which you buil...
[2 replies] Last: But it is probably a scam. (by Oria)
Searching algorithm
my program generates an array of random numbers. I want to then search a specific number within the...
[2 replies] Last: 1) In C, indices for an array of size N go from 0 to N-1. All your loo... (by toum)
by Skynet
Help extracting nodes from binary search tree
I was wondering if you could assist me with my binary search tree. I have this code so far and I wan...
[no replies]
map.find() efficiency
If I have a map: map myMap<string,vector<int>> What would the best,average, and worst case tim...
[2 replies] Last: It will be come O( log n ) + O( m ) ( map.find ) + ( search trough ... (by rmxhaha)
by Huck
Multiple condition for loop efficiency
Hi all, Beginner question here. I was wondering if a loop like this (adding i + j to the sum): ...
[5 replies] Last: As you gain experience, you will learn that simple, transparent, easi... (by Disch)
destructor failure
on return from main the destructor for this class fails ~25% of the time with inputted command line ...
[8 replies] Last: There are only a few ways I can imagine delete failing. 1) You are ... (by Disch)
alternative line
can someone tell me what can i use altenatively to prevent from using lines like this " std::to_stri...
[2 replies] Last: Maybe you searching info about this: (by MiiNiPaa)
by LB
How do C++ streams behave polymorphically?
How is it that I can pass any stringstream, fstream, cout/cin, etc. as a std::iostream/std::istream/...
[14 replies] Last: This is a good beginner's tutorial: (by JLBorges)
by Hucaru
Collision detection
I have recently started to learn SFML and decided to make a brick breaker game to practice with. I h...
[13 replies] Last: I have solved the issue fun2code you are right in the blocks draw func... (by Hucaru)
2dimensional array
I need to make a program that will input for the salary per 7days in a week.. the output must be lik...
[1 reply] : /Sigh Please, tell the name of courses you have this assigment for. An... (by MiiNiPaa)
by arms4
function and array!?
Well i not really sure how to use function so here is my question. I got and array and i declared ...
[3 replies] Last: thx! i got it now (by arms4)
Guys a little help here please
i want to write a function which take an intiger and return the number of the of digits in it i.e ...
[9 replies] Last: give me a example of code please (by Sarmadas)
January 2013 Pages: 123... 36
  Archived months: [dec2012] [feb2013]

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