Beginners - November 2010 (Page 15)

How to write a generic selection sort?
 
Below is my code template<typename iterator> void selSort(iterator begin, iterator end) { iterator minIt = begin; iterator it2 = begin + 1; ...
[6 replies] Last: Thanks a lot I study C++ because I need some basis about it before I ... (by stereoMatching)
how can I avoid using map
 
Hi guys. In my code, I use a map to keep a certain class I created" map <vector<short>, Foo *> Foos; Where the vector short is three elements vector ...
[9 replies] Last: If you only need sequential access to the data, why not use a list? Yo... (by m4ster r0shi)
Whats wrong with my calculation??
 
Hi last night i posted a problem, and a few of you guys kindly helped out!! I now have got rid of all the errors and it runs!! However it will not work out ...
[1 reply] : The Manager class defines 'hours_worked' and 'hourly_rate' which are a... (by coder777)
Functions problem
 
Hey guys, i recently got this assignment and im just at a total loss where to start (too much work lately, my brain is dying). Here is is the problem: Write ...
[2 replies] Last: void findhighest (double ne, double se, double nw, double sw) { ... (by coder777)
Reference in class, defined when created?
 
I'm having abit of a problem having a reference to a parent classes data member, the trouble is passing the variable in the class definition. I'm really unsure ...
[2 replies] Last: Well this was a section rather than the entire code, so it does look s... (by Krisando)
Anybody know why this (source files acting odd) happens?
 
I was going to come here for help on a typical C++-related problem (here's a hint: it was about recursion), which I'll post later tonight. Guess I've got anoth...
[2 replies] Last: Thanks. I had an idea it might simply be a Dev-C++ problem. (by Erdrigard)
How to enable with the -std=c++0x when using code blocks?
 
When I trying to test the new feature of C++0X The code blocks always come out this message #error This file requires compiler and library support for th...
[2 replies] Last: Thank you very much (by stereoMatching)
Trouble with Friend Functions
 
I'm having some trouble with friend functions. I'm not sure where to put them in the program. Any help with be extremely appreciated. #include <iostream> ...
[4 replies] Last: How do I print the content of the Student object’s private member va... (by golfgirl32)
Another array question - checking for negative values
 
Maybe my brain is just done for the night, but I am having trouble with this simple concept: check the values in a specific column of an array - IF a negative v...
[12 replies] Last: Thanks so much! That did it. You were right, I did not need int ... (by zach2123)
Different functions for a salary program, problems.
 
This certain program is needed to calculate how many employees you entered and get their hours to figure out their salaries. The main function for basically get...
[no replies]
strings
 
structure will have memory equal to sum of the memory of the members variables in the structure. what will be the size of the structure if it has string as one ...
[2 replies] Last: Do you need to account for the heap memory allocated by the string? (by PanGalactic)
by fpie22
Need assistance in c++
 
j;;
[18 replies] Last: If you really did have a death in the family, then I genuinely apologi... (by Browni3141)
by mzdr
what wrong here
 
ok im trying to fill an array with numbers this part works but i need to numbers to be in a specific range (-15 - 130) if not in this range it needs to not acce...
[4 replies] Last: Get rid of line 20. Your're while statement currently saying that whil... (by Browni3141)
by Jean55
Searching for a Zip library
 
Hello everybody, I am searching for a easy-to-use library to zip files. My aim is only to zip 2 files (X.txt and Y.txt in Result.zip). I found some lib...
[3 replies] Last: Thanks. I'm going to try it. (by Jean55)
Arrays
 
I have missed the last week of my Computer Science class with a stomach bug, and as it turns out, i missed the entire introduction to Arrays and now I have a la...
[7 replies] Last: also without arrays you can't iterate through a bunch of variables (li... (by hamsterman)
linkedlist
 
hello, I am having a hard time understand the linkedlist (add,insert,delete) at first or at last. I attempted to search online and read books but I still don...
[6 replies] Last: std::list is a linked list. But a linked list, in general, is simply a... (by filipe)
Arrays of object types
 
in my program a series of classes one for data one for a table, the table class is trying to initialise an array of the data objects. in the header i have sp...
[3 replies] Last: Thanks i thought you had to make the manual call or the pointer would ... (by wash me socks)
Why is an adaptor neccesary?
 
Hi Guys ! I don't know why is it necessary to use an adaptor here in this case in order for the program to insert to the destination container... #includ...
[4 replies] Last: Thank you very much, firedraco's answer and the extended explanation b... (by joseplusplus)
i have to write a small program with coordinates, but i stuck.
 
I have to write a program, which asks for points (coordinates), a circle's centre (coordinates) and the circle's radius, and it counts the distance between a po...
[6 replies] Last: Thanks, it works now! Another question: i realized, that the first pa... (by sparkthesunoff)
by korbul
Pointer to pointer
 
Hello, I've been Google-ing this around but I couldn't find a straight answer. I have an intricate structure of classes and getting to a bottom member or ...
[3 replies] Last: You are violating the Principle of Least Knowledge with this sort of a... (by PanGalactic)
November 2010 Pages: 1... 1314151617... 42
  Archived months: [oct2010] [dec2010]

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