General C++ Programming - October 2013 (Page 35)

using the erase ()
 
Evening everyone I am currently having a problem with using the erase function. I am trying to iterate through a list, find the element I want to remove and ...
[4 replies] Last: So what would you suggest I do so I am able to follow the syntax for e... (by Boltftw)
building a binary tree out of postfix notation and printing prefix
 
There are a couple problems so far I mostly don't understand why I cant make a new node by poping my node stack and trying to put the values into a new node in ...
[no replies]
Having a problem comparing three numbers
 
My display is producing: Enter the first number:234 Enter the second number:2 Enter the Third number:3 The largest number is 3 #include <iostr...
[1 reply] : Line 23 should be max = larger(num1, num2, num3); (by fafner)
by Borneq
LLVM config files
 
I try compile parts LLVM sources by GCC. IS problem with include\llvm\Config\ directory where are files llvm-config.h.cmake and llvm-config.h.in instead llvm-co...
[4 replies] Last: In case it helps, I've found some more succinct instructions. As CodeL... (by andywestken)
by Yoda
Looking for help on a C++ primer 4th ed question.
 
Very simple question involving really nothing to do with c++ at all. I won't link the site because I don't know the forums rules, but I have obtained a pdf thr...
[1 reply] : Marking as solved PM me if you can answer this or help. Until then I g... (by Yoda)
Question on maps: Invalid operands to binary...
 
Hello programmers, I stumbled upon a problem I cannot solve regarding maps. As we know, maps require the two type of variables it is gonna handle i.e. map<in...
[3 replies] Last: EDIT: wow nice, you did it the right way before I could even tell you ... (by LB)
chat program
 
hi i need help with a programming language um just learning now.iv been asked to program chat program that uses c++ syntax and semantics.in this program,a clien...
[4 replies] Last: il try research more to understand the language before i begin..i dd a... (by dotiset)
Storing the different digits of a number into an array of int.
 
Hello :) The aim is : If i have a natural number [max 5 digits] (say) n=13579. Then a =1, a =3, a =5. a =7. a =9. I start with a = n/10000 .. then n= n - a ...
[2 replies] Last: the pow function returns a double not an integer http://www.cplusplus.... (by Yanson)
{Code} Need help figuring out this For LOOP
 
Hi guys trying to slove this For Loop assignment: The loop will start at 1 and increment by 1 until the counter exceeds 100. The loop will then stop at that po...
[no replies]
compare std::maps
 
I have a map like this Map<std::pair<double, double>, double>. I need to compare two maps of this kind. I have used a const_iterator as suggested and have som...
[4 replies] Last: http://en.cppreference.com/w/cpp/container/map/operator_cmp[quote=cppr... (by LB)
by CroCo
ternary operator?
 
I would like to know what do the following lines mean? glVertex3d((aLines & (1 << 0)) ? minPt : maxPt , (aLines & (1 << 1)) ? minP...
[6 replies] Last: @keskiverto, Thanks. I solved the problem. (by CroCo)
Using STL sort with custom classes?
 
Hello, everyone. I've written a doubly linked list per my assignment instructions. I've implemented begin() and end() iterators for it, and they work with no pr...
[8 replies] Last: I know (by kbw)
by Borneq
Where is LLVM user's forum/group?
 
I search by Google and only found developer forums as http://llvm.1065342.n5.nabble.com/. I am not LLVM developer, though I have problems compile LLVM examples.
[1 reply] : I think that unfortunately everything in the compilation world operate... (by LB)
by Zunock
BMI prog. help!!!!
 
So- I'm trying to successfully run a program that calculates your BMI but, although it runs, it is not giving the the correct math. Instead, it gives me the num...
[5 replies] Last: Aaaaah thank you, doug4! Worked flawlessly. (by Zunock)
Car Class
 
I know I posted the same problem earlier but I tried a different method and I'm still getting errors. Thanks for your help! ERRORS: warning C4091: 'auto ' :...
[4 replies] Last: The error describes the problem fairly well. Your 'Car' class has a c... (by Disch)
8 queens 1d array backtracking infinite solutions? (1,2)
 
hi in this hw problem im supposed to get 92 solutions but i keep getting infinity amount of solutions i have checked my logic and i believe its correct can anyo...
[20 replies] Last: lol...The guy asking for help who copy/pasted code word for word says ... (by giblit)
Errors While writing Car Class program please help!!
 
Hi everyone, Ive been writing this code all day and these errors have been killing. Please if you can help me I can't seem to fix it. Your help is greatly appr...
[2 replies] Last: I think "stringm" was supposed to be "string m" (by LB)
by W DR
cin.ignore(); cin.clear();
 
When doing a cin >> operation with a char variable like this. char controlChar; cout << "Would you like to make another choice?"; cout << "Enter 'y', or...
[4 replies] Last: I've used this before, I guess I was thinking that I needed to get (in... (by W DR)
threading problem
 
i'm working on a chat massenger, in my program i've written two threads as follows. i'm facing problem with there working. here is the main function of the prog...
[1 reply] : is there any problem regarding Operating system? I don't know which o... (by kbw)
Usage of Boost?
 
I've been looking into using boost to manage files in one of my projects, but when it comes to licensing and requirements I'm not very knowledeable. I was ho...
[2 replies] Last: boost license is nothing like GPL. Just use it in your closed-source p... (by Cubbi)
October 2013 Pages: 1... 3334353637... 46
  Archived months: [sep2013] [nov2013]

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