Beginners - July 2013 (Page 23)

simple code -Need Help Please
 
Hey this is a simple code and all i have is one error, but I am not sure exactly how to fix it. // Listing 2.2 using std::cout #include <iostream> i...
[2 replies] Last: yes definitely, change line 11 to: std::cout<<(8+5)<<std::endl; the... (by Rechard3)
Book Suggestion
 
I'm going to be taking Advance Programming in C++ in the next 2 months. Can someone suggest a good book that can assist me and give me a head start on the topic...
[10 replies] Last: well, i know the basics, my modest experience extends a bit beyond the... (by Rechard3)
Unknown Runtime Error with Null Terminated Character Arrays
 
The purpose of this program as can be seen from the comments is to allow a user to input a name into a null terminated character array using a for loop where it...
[4 replies] Last: Alright I went back and initialized the array before the function call... (by LandoCal)
Typical Newbie Issue (Linker Error)
 
Hi everyone, My name is Anthony and I and currently studying C++ and OOP. I have an assignment for my midterm I am working on and am struggling greatly. I d...
[5 replies] Last: An unrelated issue is that you are unnecessarily passing what should b... (by Chervil)
flag controlled loop
 
input text looks like this A John Doe B Matt Marty i need to have a bool flag controlled loop if the grade is not an 'F' , it reads the name. the process ends...
[4 replies] Last: Read the line, then associate the string that holds the line with a st... (by pata)
by kuliii
Homework help. PLEASE!!!
 
You are given a file named "course_roster.txt" containing an ordered list of all students in the class. Each name is on its own line in the file and is listed i...
[5 replies] Last: yes, that helps a lot. Thank you so much for your help! (by kuliii)
Calling a header
 
I make a call to Orcs.h, and I put in dev-c++'s backward folder. It is a homemade header, and when I compile my program that includes and runs the header it say...
[3 replies] Last: Because your include is this: #include <SDL.h> and it should be ... (by pata)
Header issue
 
I am working on using c++ to make a 2d action game and I am using dev-c++. When I include this header I get the error [Linker error] undefined reference to `Wi...
[3 replies] Last: Well, you should tell us what line your getting that error. First, I b... (by pata)
by skace
How do you write a program that solves unknowns?
 
Hello, I would like to write a code that solves an expression with unknowns. How would I go about doing this? Any help would be appreciated. The puzzle is: x^n...
[1 reply] : http://en.wikipedia.org/wiki/Fermat's_Last_Theorem (by ResidentBiscuit)
Trouble understanding "char(tolower(ch))"
 
Hey guys. My friend sent me this code... Maybe it's because i'm tierd, or maybe because i'm newbie (probably the latter), but I've trouble understanding this c...
[2 replies] Last: Alright, I got it now. Thank you for the fast and clear explanation! :... (by coinage23)
by tdk93
file handling in C++
 
I've a text file of multiple lines like this : 12 12 236 124 13 547 25 36 14 15 12 36 36 347 etc How do i use file handling to "know" when the ente...
[4 replies] Last: Yes research sstream, you can read the line to a string, associate the... (by pata)
by pata
Infinite for loop deleting elements from list
 
I get a infinite loop when deleting elements that are odd in a list. At first I thought the list functions were returning new values from function end and begin...
[1 reply] : ok, solved it myself, I am making a out of range loop because the era... (by pata)
Assistance in setting up a sort program using a selection sort to sort an array
 
Hello everyone, i'm very new to programming and am currently taking my first programming class. I have been assigned a project that asks me to sort an array us...
[2 replies] Last: Thank you very much, I had already looked at this site before I wrote ... (by treefrog)
VS2012 Ultimate doesn't recognize saved word
 
Hi guys, I'm taking a OOP course in the university and we're studying CPP, so I'm quite new at OOP. I've tried to solve a small problem which was given to...
[7 replies] Last: Here is an easier way of understanding it. The libraries string and io... (by zreuille98)
What is the difference between int x = o and Int x{0}
 
What's the difference between int x= o and int x{0} Thanks :D Like this long double ld = 3.1415926536; int a{ld}, b = {ld}; // error: narrowing conversion r...
[1 reply] : {ld} is an initializer list. = ld is assignment and (ld) is a construc... (by closed account Dy7SLyTq)
Help with functions
 
I'm writing a program for class that requires the use of arrays and functions to write a test with multiple choice. I have put together this code base on separa...
[no replies]
SDL force print in file
 
when I try using printf(), the output is put into a file and not the console How would I force it to print into the console while using the SDL library??
[3 replies] Last: Thanks Peter87, Works perfectly! (by TexanMonkey)
by wfz
Which old book(s) should I buy for C++ learning?
 
My son has taken a workshop on C++ and would like to continue working on it. I happen to see a few old books but wondering if they're too old that it may be o...
[3 replies] Last: Thanks for the advice. (by wfz)
Bounds checking 2-D array
 
I'm having trouble bounds checking a 2-D array. I haven't learned pointers yet so want to do it without them. I'm making the Dungeon Crawl game as suggested her...
[5 replies] Last: Does it check if the column is 9 because the size of the array is 10, ... (by Dan7Gray)
Command translator.
 
hi, i was writing some sort of a game, it's a console application. every game needs input, i thought to implement the input as follows: the player writes a ...
[3 replies] Last: @ResidentBiscuit : later on in the project i made them const. @cire... (by Rechard3)
July 2013 Pages: 1... 2122232425... 53
  Archived months: [jun2013] [aug2013]

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