Beginners - June 2008 (Page 12)

SOS! Problem with co-ordinates
 
Hello mates. I need to create a table with co-ordinates such as in chess table : horizontaly with numbers 1,2,3... and vertically with letters - A,B,C,D. Ther...
[2 replies] Last: Don't use char . A co-ordinate is a number. Just write a pair of i... (by Duthomhas)
problem with Enums
 
I'm trying to make a program that takes a word the user inputs and turns it into corrisponding number s of the alphabet ie. a =1 b=2 a.s.o. I think I have a ...
[3 replies] Last: It is equivalent to: if (isalpha(s )) { (toupper( s[ i ] ) ... (by bnbertha)
Libraries
 
hello, i am fairly new to C++ and dont have alot of experence using this language. I dont know if this is correct but people told me that you use differe...
[1 reply] : You might want to walk through the C++ tutorial on this site. It is re... (by Duthomhas)
by bashi
classes
 
what is the importence of implementing the class seperately as a heder file & the methods seperately & the main programme seperately how can i compile them in t...
[3 replies] Last: thankx people it was really helping you know understanding the purpose... (by bashi)
by G05
Repeating...going back
 
Hello, I am very new to C++ and I need some help. My problem is probably simple for you, but for me...it's quite a challenge and I can't seem to find a solutio...
[6 replies] Last: XD Duoas! @G05 FYI, gotos are considered bad practice and should be a... (by firedraco)
Changing text in file
 
Hey guys, Ok, I have a text file containing these elements... <Create Character> <Create Character> <Create Character> <Create Character> now I promp...
[5 replies] Last: Thanks again!! (by hartmannr76)
Writing a very basic graphing program
 
I can't quite seem to figure out exactly why this won't work... #include <iostream> using namespace std; int getx(int y, int m, int b) { int x; ...
[1 reply] : Line 14 should read: for(int cy=(yscale*8);cy!=0;cy--) { and ... (by guestgulkan)
fstream doesn't creat file
 
hello im using dev cpp 4.9 on win xp sp3 here's the problem : let's say i want to create a file named "h1.vhdd" in "c:\vhdd" i tried this cod #include...
[8 replies] Last: How about this one? http://www.cplusplus.com/reference/iostream/istre... (by Duthomhas)
by ebbo
how to permanently store data in a vector?
 
Hi, first of all, i think this is a great forum for people who are just starting out, thanks to all the people who come here and give advice. Yesterday i sta...
[5 replies] Last: Yes, it works fine as is, but when interfacing with the user you can a... (by Duthomhas)
converting to Function
 
Hi i wrote this program but i want to tranfer to a function and i have no idea how to do it //declare headerfiles #include<iostream> #include...
[2 replies] Last: What is it you want to transfer to a function? You already have getDa... (by Faldrax)
by bashi
A ncurses problem
 
now that my problem is i want to print a shape like below but all my coding is invain coz its not hapenning so can any one correct my coding the shape i want...
[2 replies] Last: There are a few other 'gotcha's in NCurses for those brain-damaged by ... (by Duthomhas)
Variable in a class
 
hello All, I just tried with the following code & got some error in both Turbo & Visual studio class ABC{ int a=10; ABC(){} } 1) why cant we declare &...
[5 replies] Last: Ok i got it thanks for every bodys help (by vivekphlp)
by sacred
Very basic problem, starting use of functions.
 
Hi all Be easy on me. I'm new to this. Just started using functions. Working from the book "Absolute C++" I've written the code how I've been told to but...
[2 replies] Last: Thanks man. Sorted it out. (by sacred)
Problem with fractionally increasing numbers
 
Hello all. I am trying to write a program that would allow me to find the highest interest rate I could afford based off of length of the loan, amount borrowed...
[1 reply] : One option for getting an increment of 0.001 is to have code such as ... (by Faldrax)
Object as a variable?
 
I'm aa guy from C and just began to learn C++ few months ago, specifically about the OOP. So my question here is more about general OOP than about C++. If so...
[5 replies] Last: No it's a different relationship. A variable can only have one value,... (by bnbertha)
Confused on how to do this.
 
I am trying to make a math library and confused on how to do this. A function that calculates the distance between two(2D) points A function that calculates...
[1 reply] : First you need to figure out what you do know about solving the proble... (by Faldrax)
by bashi
a problem with OOP
 
now that this program is based on employee entity & we are calculating employee details but it gives a hell of errors plase correct this code i cant understand ...
[2 replies] Last: I've reproduced your code with the tags to use the line numbers #i... (by bnbertha)
Specific Class
 
Hello. I need to declare a class which must not allow making objects of it. I should not use virtual functions. Thank you in advance !
[6 replies] Last: :) Yeah, it was a homework, but when it was gaven to us, we hadn't ... (by MrProfit)
can this be condensed?
 
Hello all, I'm new to this site and to C++ and I have a question... Instead of having three while loops, is it possible to condense this code into something...
[3 replies] Last: Ah, "without using anything more advanced than structures and loops"... (by Duthomhas)
by abcd
MaxMin
 
Write a program that inputs three floating point numbers. The program then calls a function MaxMin that determines the smallest and largest of these numbers. Th...
[2 replies] Last: Also, your logic short circuits before testing all possibilities. (by Duthomhas)
June 2008 Pages: 1... 10111213
  Archived months: [may2008] [jul2008]

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