Beginners - October 2014 (Page 59)

My First Program
 
it has been two days since i started learning c++ following from youtube, i have made a math exam asking questions and printing out the average, letter grade fo...
[4 replies] Last: thank you very much :) this helps (by martin74302)
implementation of zig zag
 
I am trying to implement the zig zag movement which and splay tree has. i am kinda having a hard time doing so, all my solutions seems a bit hardcoded, and kin...
[no replies]
by Reiv63
Assist in using array for word game
 
Hello, I'm a beginner and new to this forum. I'm really confused and stuck with a certain codes. I'm creating a memory word game and really confused on the arra...
[2 replies] Last: @Alyssa, thanks for the info. :) oh and im using visual studio right ... (by Reiv63)
Numerals >> Roman Numerals
 
I'm Having trouble with this program, this simple program supposedly converts any number from 1 - 9999 to roman numerals. I thought up the algorithm and made it...
[4 replies] Last: @taoden21 1. can string be used in arrays then? Yes. More help co... (by whitenite1)
destructors.
 
I verily know how to write classes and include some destructors, Copy constructors etc. What am not very sure about is whether all classes need a destructor ?...
[6 replies] Last: Ooh well now I see , lemmi check this links. Thanks. (by closed account SECMoG1T)
Print a box shaped with recursion?
 
I want to make a program that print a box shaped like this if i input 4 **** * * * * **** i know how to do it with for loops but not with recursion ...
[3 replies] Last: It is not supposed to "work". Mere food for thought. There is no "ne... (by keskiverto)
design pattern : adding new function to pre-written class in library
 
I have a library provided by the vendor. All i have is header files and library files. Library contains the class Shape and there is whole hierarchy tree (...
[1 reply] : Short answer: do not do that. If possible, use a freestanding functio... (by MiiNiPaa)
Why is this happening??
 
I am trying to code a splay tree, for which i try to map the path from node to tree root. the problem is though that the mapping sequence gets called multiple ...
[8 replies] Last: Even if I return it still does the same thing. You want me to return ... (by DrJones)
C++ Counting
 
Hi There Not sure if anyone has time to help me but I Am looking for a tutorial to wright a program that counts the time between a switch been pressed and then ...
[8 replies] Last: type identifier is another way to say type name volatile is a t... (by MiiNiPaa)
by brenP
Celsius temperatures into Farenheit
 
The prompt I was presented with is: Write a program that displays a table of the Celsius temperatures from 0 to 30 and their Fahrenheit equivalents. I was no...
[2 replies] Last: Thank you very much I realized what I was doing wrong on the original ... (by brenP)
by manjoo
Problem with de allocating dynamic memory in desrtuctor
 
my program runs well when I do not delete the double pointers(int **).When i try to delete , the program crashes. However in the debug session i found, it is du...
[1 reply] : Show declaration of your class and everything you do with std::string ... (by MiiNiPaa)
Question about parameters
 
I don't know if my English isn't good enough but I just don't get what this task is asking me to do: Create the C++ Function named multiples so that it has ...
[2 replies] Last: Yeah that's a bit clearer, but I still don't understand 100%. I don't... (by guirampani)
Average, Minimum and Maximum temperature using functions. (1,2)
 
So there comes the task: Write a program that takes a maximum and minimum temperature of the city from Monday to Sunday, and three functions that calculate ...
[31 replies] Last: Ahh I get it now, yeah done for maxTemp too... Thanks for your help me... (by guirampani)
Need some guidance
 
Hey guys, i have this basic assignment from my C++ class this week, and the text is as follows, " Write a program which reads n (e.g. n=10) numbers between 0 a...
[2 replies] Last: Thank you very much for the quick answer, the links provided are aweso... (by Dexterr)
Basic guide to terminal piping
 
I'm a total beginner at this, but I'm thinking it will be very useful to me. I'm not sure if this is supposed to be in the UNIX/Linux section or not, but I foun...
[9 replies] Last: See: http://beej.us/guide/bgipc/output/html/multipage/pipes.html (by JLBorges)
Calculate acceleration,velocity?
 
Dear Friends, I have received an assignment to calculate the velocity and position from acceleration formula (dx^2/dt^2=-g which is acceleration equation) by ...
[no replies]
formatting console output
 
I am trying to format my output data like this: Basic Item 45 Basic Item Mk2 67 Fun Toy 20 I want my first item to be aligned ...
[12 replies] Last: setw() works only on next output. All outputs after that would be ou... (by MiiNiPaa)
Handling sprite animation with switch
 
I'm currently handling sprite animation with a switch that changes the animation based on the directional arrow pressed. I'm using an SDL_Event switch to do so....
[3 replies] Last: I came up with a solution and it looks like this: if (keyState ) ... (by turtlesavage)
converting base pointer to derived class pointer not working?
 
Hey guys I have a small cmd game I'm working on, in the game I have an Item base class and derived classes of Item include Weapon class and Defensive class. ...
[7 replies] Last: yessir :D (by bryan177mcsc)
Array Spacing to make a table (help me)
 
hello :) I am trying to create a table based on prices entered. In the other part of the program (not shown) it deals with actually inputing the prices. This p...
[2 replies] Last: wow thankyou so much, that did it! i shoulda though of that. @islpil (by woodbecker18)
October 2014 Pages: 1... 5758596061... 70
  Archived months: [sep2014] [nov2014]

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