Beginners - April 2009 (Page 21)

Simple Quadratic Equation Solver - C++ - What Do You Think?
 
Please tell me what do you think of the written code below, is it easy to follow? Does the code tells you what it does, or you have struggled realizing whats go...
[5 replies] Last: jsmith your reply is helpful. It will be taken into consideration when... (by f ben isaac)
pointers
 
How do I find out the hexadecimal addresses I can use and can't use? How do I find out which address values are commands, alpha numerics, graphics, sound value...
[1 reply] : In HLL programming, you generally don't access the memory map directly... (by Disch)
by murva
Randomize using class
 
I am trying to make a loop and get a diferent number every time from a class.But, I am getting always the same number. What is the problem? #include <iostrea...
[5 replies] Last: Ah, yeah, that would work, and would probably work better. (by firedraco)
by MatieA
Not sure I'm understanding the proper use of functions
 
I'm not sure I understand how to use functions. If someone could take a look at this and tell me if I wrote it correctly, and offer some quick help if I didn't ...
[6 replies] Last: fyi MatieA, you should take your name and info off the top of your pro... (by satchmo05)
by luki
comparing and deleting derived classes
 
Hi, I am creating a program that stores cities with their geographical points so that I can measure the distance between them. these cities will be stored in...
[5 replies] Last: you guys are right, there is no need of derived class since each city ... (by luki)
by murva
Create object inside class
 
I am trying to create an object of class Car inside class Auto.Car has a constructor that receives an int parameter.When I declare the object, I am not able to ...
[3 replies] Last: I found the error!! Thanks, you really helped me!! (by murva)
by luki
understanding overloaded operators
 
I've seen these lines of codes before on the internet, they seem to be related to overloaded operators and objects of the library iostream but what do they actu...
[1 reply] : 1) looks as a class method, it's not related to operator overloading ... (by Bazzy)
input and sub-strings
 
i am writin a program that accepts a string of characters, maximum size 30, with a % signifying the end of the input string. Ask the user to designate the numbe...
[4 replies] Last: How about the suggestions I gave you? Do that a couple times and wh... (by Duthomhas)
Errors
 
I am compiling the program and it is saying sucess ful but when i am running the program it is showing an error which says the following: " error LNK2028: un...
[4 replies] Last: post your code please (by kaidranzer)
Is the correct for these C operators
 
I need to write 4 C functions, whhich emulate the C operators |, ^, ~, and !=. I am not sure what what I am doing wrong. I can not use loops or conditionals. ...
[3 replies] Last: Say you have two number you want to perform bitwise OR on (I'll use by... (by helios)
How to import/read in data from file into a struct
 
Hi, will be very grateful if anyone can help me out with this, cant seem to figure out how to do it, pretty new to c++, have done the basics up to structures + ...
[3 replies] Last: for (int i = 0; i < Nmax, ++i) { in_file >> TheClass .Registra... (by Gumbercules)
problem with return
 
Hi my fuction is working fine except when the user input 0 as divisor I just want to cout "Error!" and not return anything... right now I cout "Error!" but t...
[13 replies] Last: They aren't (or at least should not be) if you are using a reasonable ... (by jsmith)
problem with user input monitor
 
My program is working fine except I must take into account that the user may type the value -1 as first input. In my idea, I should tell the program that if...
[3 replies] Last: even if (double i == -1) && (counter == 1) is wrong as double i is... (by Bazzy)
RANGE
 
i need assistance. please wat i need i my code if for when a number greater than 99 and less than 0 is inputted. it shhould give an error. and let me reenter th...
[5 replies] Last: thank you guys alot. it work. very grateful (by badboizEnt)
having problems troubleshooting this lnk error
 
This code has thrown me for a big loop I keep getting a lnk error but not sure why and also not sure how to go about finding to fix it either. can someone get m...
[5 replies] Last: You haven't provided the code for the constructor, or any other method... (by kbw)
by khms
Using fstream with switch-case statement
 
When I am using the ofstream to declare a variable in one case, there is error and the output says that "error C2360: initialization of 'in' is skipped by 'ca...
[2 replies] Last: Thanks a lot (by khms)
confused using classes
 
Hi everyone. I'm fairly new to programming. I have an assignment on classes and I am stuck on calling one particular function. For some reason the function...
[7 replies] Last: OMG I actually worked this one out too .. pls ignore.. :) (by wishing)
by now
Reference to class objects
 
Hi all. Is it possible with generic c++ code to return pointers to all current objects of a certain class within a program?
[3 replies] Last: A static member is shared by all instances of a class. Think of it lik... (by helios)
by Vector
Open file by path specification.
 
Hi, Im trying to open a file by its Path Specification, storing the character sequence in a character array. I can do this with strings, but i want to know t...
[2 replies] Last: omy, i'll never get this fixed now. lol. (by Vector)
Not sure if this is right
 
Hey everyone I'm having a problem with my code. The problem I'm having is in line 57-68. The problem is to have a value that is not equal to a Y or N and when y...
[7 replies] Last: Hey thanks for the help. Everything worked great. (by soccer629)
April 2009 Pages: 1... 1920212223... 28
  Archived months: [mar2009] [may2009]

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