Beginners - April 2014 (Page 10)

New variable or compound math statement
 
I'm writing a program to calculate the miles per gallon that a vehicle delivers. The user inputs the liters consumed and the miles that the car traveled, and t...
[1 reply] : It does not actually matters. Both are fine. I would use second probab... (by MiiNiPaa)
graphics, sierpinski carpet
 
hi! i have this project that i have to do... and i really dont know how to do it. it is using graphics, it is about sierpinski carpet #include <iost...
[8 replies] Last: Are you sure its not related to Turbo C, and not your code? Sorry I c... (by Codermik)
Set/Get Constructors, Pointers and Classes
 
I have an assignment to create a gradebook program using C++. I am not allowed to use vector or list and I'm suppose to be using new and delete to dynamically a...
[9 replies] Last: course_id shouldn't be the id of the students should it? course_id s... (by Codermik)
by blabla
Reading from a txt file
 
Hello! Does anyone know why this is not working? what did I wrote wrong? This is the txt file: ionesc.alex@ie.ase.ro,Ionescu Alexandru,01.10.2012,120 pop.mar...
[1 reply] : fscanf(f,"%s",&denC); First line of file way larger that 30 symbols:... (by MiiNiPaa)
Car Wash program. Any ideas?
 
I am creating a car wash program and so far this is what I have come up with. I think my program looks pretty neat and organized but it is lacking as far as con...
[1 reply] : You could add options specific to certain wash. Like extra drying or t... (by Annatar)
how to put back into fstream the last character read
 
I have been struggling with this for a while. I would like to put back the last character read by file.get() ( an fstream object ) because the next lines in the...
[7 replies] Last: I was using eclipse with same c++ plug in and when my program crashed ... (by tdeluce)
by ashash
computational physics
 
Write your question here. this is an incomplete code , what it should do is ask to input 2 .TXT files which are arrays, normalize them(take their norm) then in...
[3 replies] Last: First things first, after your include statements, put 'using namespa... (by closed account 3R5fjE8b)
by moeby
Dawn of Time
 
Hi all, I'm working with this mud codebase and I'm trying to change up the character customization part...I got devc++ to try and change the code but I am an ab...
[4 replies] Last: oh its http://www.dawnoftime.org/download/ and http://www.forums.dawno... (by moeby)
random friend to text using an array?
 
hi i need help figuring out how to find the a random friend to text, i must input a seed ex. 21, 42, 101. . . but i can only input a number of 5 friends. how ca...
[7 replies] Last: is this what you mean. i only added the new string. then idk what else... (by JulyZerg)
by Kazza
Moving sprite in all directions?
 
I've been following a tutorial on how to create a basic c++ game of pong, however I want to change the code so that the paddle can go anywhere rather than just ...
[4 replies] Last: Sorry, I just noticed an error in my example in my last post - I got t... (by TwilightSpectre)
by strife
constructors & default constructors
 
Hello all, I am trying to understand a little bit more about constructors and default constructors when making a class. If i make a class with a constructor...
[3 replies] Last: Hi strife, Here is a little improvement: class Employee { public: ... (by TheIdeasMan)
'defaultHealthCalc' is not a member of 'GameStuff'
 
Hello! Why I received this message: GameCharacter.h:13: error: 'defaultHealthCalc' is not a member of 'GameStuff' explicit GameCharacter( std::strin...
[4 replies] Last: Thanks! I just removed #include "GameCharacter.h" from functionsForHea... (by Observer)
Problems in do/while loop
 
I think I'm having problems with my do/while loop in my program. I am creating a car wash program. The program is almost done except for this one error. When...
[15 replies] Last: [quote=MaxDaniels]A break simply ends the current function prematurely... (by TheIdeasMan)
Is this correct?
 
I obviously don't want anyone to do my work for me here, but did I read this and do it correctly? The problem I had to do was: A liter is 0.264179 gallons. W...
[4 replies] Last: Undo what you just did, because you already had a globally defined con... (by closed account j3Rz8vqX)
by Mousus
From Mac to Unix
 
Hi everone, I am using Mac for writing my codes and I use the following to compile my code in terminal: clang++ -std=c++11 -stdlib=libc++ myFile.cpp However...
[3 replies] Last: I think it's a good idea to make sure your program is correct. (by Duthomhas)
by Aceix
Any replacements for getch(), kbhit(), ...?
 
I want to know if there is any standard function that can respond to instantaneous keyboard state. For example, I call a function, getKey(); , and this funct...
[2 replies] Last: Thanks, Aceix. (by Aceix)
Pointers to Class crashes, Bad Alloc
 
I've been writing a crude Text Based adventure for practice, but I've run into this problem and I can't figure out how to fix the crashing. I'm afraid this prob...
[3 replies] Last: I was able to fix the crashing problem by sending in the Locations fro... (by closed account SwMDizwU)
[Operator Overloading] Finding the product of two class objects
 
I have an assignment that requires me to overload the * operator to find the product of two objects of the same class type. The class has two int member member ...
[2 replies] Last: I see, that makes sense. Thank you for the insight! (by hinesro)
Overload function
 
hi i need to create to overload function i have the code done but do not know how to make them overload function. please help. your help would be much appreciat...
[1 reply] : You need to edit this post to show the source code format. (by AnonUser)
Creating a password...help needed
 
Hello fellas, Last thing you want to do is probably help me with some HW, but just in case there are some generous souls in an advising mood... Here's wha...
[5 replies] Last: Alternatively, because I advocate the STL and C++11: #include <iostr... (by xismn)
April 2014 Pages: 1... 89101112... 67
  Archived months: [mar2014] [may2014]

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