Beginners - July 2014 (Page 27)

delete in the global namespace a syntax error
 
Hello there everyone! This is something that I don´t seem to understand: why can´t I use operator delete in the global namespace. Please bear with me as I am ...
[2 replies] Last: Sorted! Yep that made sense... thanks a lot. (by ch4k3r82)
Problem with reading from a file
 
I need to read a set of data from a file into a vector.First column contains the names of the student and other two contain their grades. Then from a vector I n...
[1 reply] : Please post a small sample of your input file. (by jlb)
Sorting help, PLEASE (sorting a struct array)
 
I am trying to sort a vector from an array. Right now, I am having difficulty saving the vector from the struct array (numArr). I have commented out portions th...
[7 replies] Last: I did not know you can use a struct in angle brackets to declare what ... (by carpalTunnel)
Index of an integer number
 
For example if a user input 123. I want to able to c=first_number_of(123). I want to break the number down to translate it to words (one hundred twenty three)....
[1 reply] : Take your input as a string then you can reference each digit by index... (by admkrk)
A good learning book/Online resource for an already programmer
 
Hi there, I already know C#, I already have a programmer mind. I already know what methods, variables/data(ints,strings etc) are. I already know enough OOP, I k...
[2 replies] Last: @ HellzHere: the way I see it, you are a beginner in C++. For examp... (by Catfish666)
main code help?
 
i've filled in all the parameters the right way i think. but now i have to do some work in the main code area. i wanted to start off by just seeing if the array...
[1 reply] : There's no creation of a Matrix object in the main function, so it won... (by wildblue)
Order messed up - Pointers
 
Hello, I posted this earlier today andddd I am now left with one issue: the original sequence is still ordered. No clue how to fix it, please help if you can :)...
[2 replies] Last: I don't know what the heck I was on when I posted that, a reminder t... (by NookLines)
Variable not declared?
 
Just trying to write something to sum and average three numbers but it says "expected unqualified-id before '<<' token (line 13)" and 'a' was not declared in th...
[3 replies] Last: Thank you both! (by SomeCodingNoob)
What is the best, Free IDE/Compiler for beginners?
 
I realize this question has been asked before, but the most recent version seems outdated and I am hoping for some up-to-date advice. I am starting C++, and...
[1 reply] : I think you may be able to use Eclipse for c++ but I am not positive. ... (by giblit)
trouble declaring matrix arrays
 
hey guys. im working on a project an array, be able to access them, and manipulate them at any time. my issue is i cant get anything to declare right at this po...
[5 replies] Last: thank you so much. i see exactly where i was messing up now. just smal... (by beedog1221)
Turn-based battle
 
UPDATE. I have fixed some of these problems, but others still remain. I apologize for such a long post... Hello. I am VERY new to C++ (and programming in ...
[6 replies] Last: AbstractionAnon, how could I fix that? I see how that was my problem. ... (by madelinelise)
size of structure
 
I was going through random reading and i hit a page which says that the size of a structure in C can be "greater than" or equal to sum of sizes of its member. P...
[4 replies] Last: Thanks catfish666 for those links. (by Pter0dactyl)
Quadratic solver
 
So I'm trying to write a simple quadratic solver but it only seems to work some of the time. If I put a as 1, b as -1 and c as -12 I get the two roots -3 and 4...
[4 replies] Last: Thanks for the advice, received with great appreciation! (by SomeCodingNoob)
by Tamce
What is the difference between...
 
Hey guys,I wonder what's the difference between "cin.ignore(numeric_limits<std::streamsize>::max()" and "cin.sync()"
[1 reply] : "As with readsome(), it is implementation-defined whether this functio... (by Yay295)
by h4ever
Why I cannot open tiff
 
I am trying libtiff library (I downloaded the source codes as part of SDL2, but I test it separately). There is a test file named ascii_tag.c. There is a line ...
[2 replies] Last: I tried it. But I don't believe there is problem with path. The progra... (by h4ever)
Array Bubble Sorting
 
Hi, I am having trouble setting an array of int values from low to high. The program does kind of work but it changes the highest value to a random value. I b...
[1 reply] : If index = 9, what number is at myArray[index+1]? (by Yay295)
Code always gives same answer.
 
I'm making a grading program but whatever score I put I always says "Your grade is A." I've checked it over and over again but can't find a problem. Probably a ...
[6 replies] Last: aw :( my idol NT3 got beaten :(( (by xenovia12)
simulation
 
i have nothing to do,i just scanning every tutorials i learnt but i just notice i find it confusing about the simulation of this code why this code the function...
[9 replies] Last: haha sorry sorryy. im just so dizzy right now because its about 9 hour... (by xenovia12)
by psot2
Power function
 
Firstly I'd like to thank the creators of this website, it has the best tutorials I could find anywhere! I just started learning C++ as my first programming l...
[8 replies] Last: Good point regarding negative values of y. I'd make x and the return v... (by Chervil)
Error undefined refference to WinMain@16
 
Hey everyone.. when i try build and run this program the compiler gives me this error messege fatal error : classes.h no such file or directory OR undefined...
[6 replies] Last: try search classes.h or classes in the windows start button (by xenovia12)
July 2014 Pages: 1... 2526272829... 43
  Archived months: [jun2014] [aug2014]

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