Beginners - November 2013 (Page 54)

Simple time program with hours and minutes
 
Being asked to write a program that accept both hours and minutes. Example 2050 (24hrs format) 1) i only know how to code a program below but how to fool-...
[3 replies] Last: Seeing JLBorges' example, I agree that's the natural and easy thing to... (by Catfish5)
by Elix
Finding the GCD of Two integers
 
Hey, I'm new here, and because I've create this account, is to learn from others based on their opinions and suggestions. Now, I'm studying computer engineering...
[7 replies] Last: The format, well, sorry I forgot it xD There's nothing stopping yo... (by MikeyBoy)
Array declaration and allocation of memory inside class
 
Can I declare and allocate memory to an array in class as given below: class hci_test { public: unsigned char* host_hci_pkt_arr; ...
[5 replies] Last: > and there is need of constructor if we want to initialize some varia... (by JLBorges)
hypotenuse
 
can someone show me how to set this out, user inputs the angle and the opposite sin x=opposite/hyp =>hyp=opp/sin x
[6 replies] Last: thank you very much (by btickle1)
I am about to rip my hair out with the results im getting from this simple file I/O program
 
Hello everyone. I am incredibly, incredibly frustrated and confused. ALL i am trying to do is read in a list of names from a master.lst, which contains 3 lines ...
[5 replies] Last: @ line 47 & other relevant parts : inFile >> payRate; // using >> bef... (by nvrmnd)
Deleting number from array
 
Hello, I have this txt file: book name, number of books price of book Lorf Of The Rings, 5 10.00 Dracula, 6 15.99 Emma, 7 12.58 Romeo And Juliet, 9 50.00 ...
[10 replies] Last: This is the first time that you mention price. Your elements have nam... (by keskiverto)
Beep Music
 
How would i go about adding beep music to say a game i made like Tic Tac Toe where the music is being played while you are playing. Is that possible using the s...
[2 replies] Last: not sure why you put joke it seems like what i am looking for maybe l... (by tony1420)
by AdamV
Confusion with pointers
 
Hii. I'm semi- new to programming and I thought I was pretty comfortable with pointers, but I've come across a few examples in books (openGL red book, and some ...
[3 replies] Last: if you will look at the sdl documentation about SDL_SetVideoMode( ...... (by nvrmnd)
Multiple Choice Test Program
 
Having some problems with this program. This is the problem: You’ve been asked to write a program to grade a multiple choice exam. The exam has 20 question...
[14 replies] Last: Thank you guys for all your help i have it running perfectly now! (by Piratica)
need help
 
my professor sucks i need help with some kind of text thing write a function to read #s from a file and calculate their sum, output to screen input file n...
[3 replies] Last: even hello world ?? by the way you can look at the documentation on th... (by nvrmnd)
Help with Looping
 
Hello. I missed a couple days of work being sick and am completely lost on what to do for my assignment. I have read some tutorials and am still stuck on how to...
[3 replies] Last: for ( init-expression(int i=0); cond-expression(i<10) ; loop-express... (by wwwiii)
Problems using getline in various situations
 
I seem to have run into a problem using using the getline function. It works fine in my simple code shown here: #include <iostream> #include <cmath> #in...
[3 replies] Last: It basically tells cin to ignore (discard) as many characters from t... (by long double main)
setting up decimal places
 
I'm trying to get the output for this program into a specific format but i cant quite seem to get the decimal places to appear in one instance and in another it...
[2 replies] Last: I see, that works thanks! (by Tiawulf)
trouble with arrays and functions
 
Hello everyone I'm trying to write a program that uses switch statements with arrays and function calls. I've written the program but am getting an error sayin...
[3 replies] Last: okay so i changed the declaration and definition so they match up. tha... (by elMalifico)
char* arrays?
 
Hi guys. I'm still new to c++ so I kinda need some help here. I was wondering, when storing a series of words into an array, is there is any difference between ...
[2 replies] Last: Ahh okay I think I understand it a lot better now. Thanks man! (by wiireless)
Question
 
Hey im new to this forum and have a question. Im sure you see these posts everyday. Im just wondering how long will it take me to get advanced in c++. Im on the...
[3 replies] Last: good grasp on advanced c++. like i said very vague and general term... (by closed account Dy7SLyTq)
DNA strand compliments
 
Write your question here. Hello, I am trying to finish this problem I found on Rosalind, however my logic seems to be wrong on a particular part. The goal of t...
[2 replies] Last: Ahh...much better thanks a bunch friend. (by xx313xx)
Quick Question UPDATE 2! :)
 
Here is a program that I wrote to reverse any integer number enter into the program. It runs fine, but it keeps repeating. You type the integer in, it reverses ...
[7 replies] Last: Thank you everyone for your input. Here is the final product with comm... (by Baron94)
Newton's Method assignment-passing functions w/ pointer arguments (1,2)
 
I have an assignment to calculate Newton's method. In my loop it only goes to n=1 but I can't figure out why. I appreciate a quick response because my assignmen...
[20 replies] Last: Cool! (by Chervil)
by Garion
Stringstream
 
I've been trying to understand how stringstream works and when I search on the site here the stringstream page is way too much info for me to understand all at ...
[3 replies] Last: getline is for strings only: http://www.cplusplus.com/reference/stri... (by long double main)
November 2013 Pages: 1... 5253545556... 80
  Archived months: [oct2013] [dec2013]

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