Beginners - October 2013 (Page 71)

Adjacency list using map
 
can we implement Adjacency list using map ?please help me out to implement that! basic doubt is that can we map a element more than one item like adjacency lis...
[4 replies] Last: > for unweighted graph and for learning purpose? Same as above, but ... (by JLBorges)
Iterator
 
i am using iterator over a map and i have found something like ""it->second"" what does it mean?
[1 reply] : The value_type of a map is a pair, and the elements of a pair are "fir... (by keskiverto)
Need help making a program
 
well, first of all hello guys This is my first post and i really didn't want to do this but i'm desperate and i really need help with this feel free to i...
[2 replies] Last: If I were you I'd look up loops, arrays, multidimentional arrays and s... (by Exempt)
overloading operators
 
Hello I have simple question i have base class (Payment) and a derived class ( CreditCardPayment) . In derived class there is an implantation of overloading ...
[10 replies] Last: I don't know, I would need to know why the OP thinks they need to use ... (by LB)
by aggsyb
Easy question regarding parameters of functions!
 
I have a ton of int vectors in my main function that I pass to another function. void function(std::vector<int> &vec1, std::vector<int> &vec2, std::vector<i...
[8 replies] Last: For example if you need to process Students with first and second name... (by MiiNiPaa)
range of int
 
range of int is 0 to 32768 but my function is working for greater value ? i mean if i give value>32768 to int x it is not giving any error WHY? #include...
[3 replies] Last: There is also short int or just short . The table on this page give... (by Chervil)
by Sandz
Getting Values from a baseclass into the method of a derived class
 
Please help thank you. Work is the baseclass Work::Work(void) { } void Work::setWork(int num, double hour, double rates) { worknum = num; workhou...
[14 replies] Last: You do not need an operator for that. Operator< should compare two dif... (by MiiNiPaa)
Stuck Finding Hottest & Coldest Temp
 
Hoping someone can help me find the solution to an assignment. Done pretty well up to this point. Code compiles but the output data is incorrect and there is no...
[1 reply] : You could define some extra variables, such as double minTemp and d... (by Chervil)
further help with my final project program
 
Further help regarding this code, im trying to make a program that compute radius and the output will be diameter and area and vice versa for the others but fir...
[4 replies] Last: tried the suggestions in that specific link, its very informative but ... (by pejahmein)
Need Help Debugging Soon
 
The problem with my program is that it is supposed to not accept negative integers. Though it says it will not accept them, the negative integers are still set ...
[3 replies] Last: Thank you for the help. My program works fine now and I've made it a l... (by playitpro)
help me ..convert char to in
 
how to convert char to int like .. /////////Hrs/mins 00:00 = 0.0 01:00 = 1.0 08:00 = 8.0 08:01 = 8.1 17:00 = 17.0 17:30 = 17.0 can you say to me the formula of...
[3 replies] Last: http://www.cplusplus.com/forum/beginner/111756/ (by Chervil)
by San007
c++programming (functional decomposition)
 
Using functional decomposition, write program in C++ that arranged a list of songs in the order in which you want to play them. However, you would like to maxim...
[2 replies] Last: Thanks! Thats helps alot. (by San007)
by Zexd
Fibonacci
 
Trying to do a problem from http://projecteuler.net/problem=2 All my program does is sitting there... No output. What did I do wrong? Thanks /** Descript...
[2 replies] Last: You misread or misinterpreted the question. This, thanks.... (by Zexd)
static cast
 
How can we use static cast below ? U32 is unsigned integer ClientInfo *clientInfo = new ClientInfo(*this); clientInfo->msgId = *((U32*) (&msgBuf...
[2 replies] Last: clientInfo->msgId = *(reinterpret_cast<U32*>(&msgBuff )); ... (by irfan2266)
by GCXIII
Loop
 
I've been trying to put a loop inside this code but whenever I try to there seems to be an error. Whenever a whitespace is used it produces an Infinite loop of ...
[3 replies] Last: Is this what you mean: something like: int main () { string wor... (by nvrmnd)
by Argus
Implementing an interpolation search for a linked list, need help
 
Write your question here. void List::interpolationSearch(int id){ Node* low = head; Node* mid = low; Node* high = tail; int lowest = 0; int...
[1 reply] : Write your question here. Perhaps you should start with a question.... (by kbw)
op= thumb rules' question
 
Hello everyone, I was reading my OOP lectures, getting ready for the course test and I came through the implementation of op= and I have a question. There th...
[2 replies] Last: Or simply class A{ int a ; double b ; }; no need to code destru... (by ne555)
Need help with a small fraction of code!
 
hi i dont know how to make the stars go to the left instead of the right of the 0 line! please help my assignment is due in the next hour! to the left of the...
[4 replies] Last: its in the link in the first post. its alrite if you dont want to show... (by luv2program)
Better way to remove random duplicates?
 
I was wondering if my way of removing duplicates is bad in any way.. If there's a better way of doing it please explain thanks! I can also use this for a Word J...
[6 replies] Last: create array of elements 1-10 and apply random_shuffle to it. http://w... (by MiiNiPaa)
pointer vs refrences
 
Q->what is the basic difference between pointer and refrence variable....? if there is any difference then show it with the help of example.... if no then...
[3 replies] Last: @Jai A reference must refer to a variable, although this becomes fals... (by TheIdeasMan)
October 2013 Pages: 1... 6970717273... 86
  Archived months: [sep2013] [nov2013]

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