Beginners - October 2014 (Page 6)

Homework- Include Arithmetic and Trignometric Functions in a calculator- Please help!
 
Hello, I'm a beginner in an entry level C++ class. Currently, I have an assignment due tomorrow in which I must write code to use function, and switch state...
[5 replies] Last: You still haven't fixed a bunch of the things that I suggested. If you... (by TwilightSpectre)
Briefly explain this to me
 
So in my intro to c++ class, we've started searching and sort algorithms;mainly linear search, binary search, bubble sort and selection sort. For the most part,...
[5 replies] Last: btw, I always read your name as Death's lice. (by Esslercuffi)
need help C++ program
 
1) Produce a table for ax2 + bx + c = 0 where a= -1, 1 and 2; b = -2 thru 3 ; and c= -4 thru +2 Heading line a ...
[1 reply] : Break it down into pieces. As I start, try writing a function that ta... (by dhayden)
Character Movement
 
i was trying to figure out movement of my character in a game. well i got him moving! extremely slowly, but moving. and now i know how to do collision det...
[2 replies] Last: huh. i will repost it then. You can try it again now. (by Antone333)
Memory.
 
I am reading an e-book and i don't really understand what he means with the last 3 lines i wrote below in quotes. Can someone please help me understand this. ...
[7 replies] Last: Is the reason for the error that, dLocalVariable's function is not cal... (by srscode)
Swapping values in two-dimensional array
 
Hi I was asked to make a c++ program that prints two-dimensional array and turns it into matrix with rows and columns.I did it with that.But now I need to swap ...
[no replies]
block of code not working (not printing)
 
Hello, I just jumped into C++, like 2-4 months ago, I didn't made much progress because I was busy, well, I started working on simple console based combat simul...
[4 replies] Last: Hey there, sorry for late reply, well thank you very much you really h... (by Nicholas1010)
Help with vector::erase!!
 
Hi, can someone explain to me how the member function vector::erase( iter ) works? The tutorial says this function erases the entry to which iter points, and ...
[10 replies] Last: Okay. The picture is much clearer now! Thank you very much! (by Xuan Liu)
Assistance needed
 
I need help on how to go about this. Any tips? I'd appreciated. Thanks! Problem: http://tinypic.com/r/hvzdd1/8
[2 replies] Last: Thanks! I will try this and post the program once I'm done. (by JayJay007)
Initializing string array
 
Hey everyone. I'm writing this code for class and seem to have trouble initializing a string array. The program is supposed to ask a user if they'd like advice....
[3 replies] Last: YOu can initialize the global array as follows: string cliche = ... (by AbstractionAnon)
Function Overloading Problem
 
I am writing a program where I am suppoosed to write three functions named get_input() that read a value from the user. One gets an int value from the user, the...
[1 reply] : I assume that these functions should return value of the same type as ... (by rich1)
by bender
Reading Information to file
 
If I want to gather information from the user such as Name, score, and date, How would I put this into a file so I could pull it up later? I am new to files so ...
[1 reply] : learncpp.com > topic 13.6, 13.7 (by anup30)
Extracting info from a text file
 
Hello. I have a text file like this: Department B Billy 10 8 4 5 6 F1 Sally 9 2 3 9 10 F2 Joe 8 1 9 8 1 2 f4 These numbers indicate the weekly hours fo...
[no replies]
by drax
vectors
 
I am trying to put up some code that I mostly written with the precious help from forum users, and learn arrays with it. My qeustion is how would the code loo...
[2 replies] Last: Thank you for your reply! So, I guess, something like this would apply... (by drax)
Program won't run "cout" after the second function
 
1
[8 replies] Last: i got it, ty very much. (by imaghhc)
Recursion
 
Hey guys i have a question about recursion im trying to learn it and i got stuck in the point where it hits the base case . int factorial(int x) { if(x==1) ...
[2 replies] Last: im sorry i forgot to put { x* factorial(x-1) this is a factorial probl... (by theposibility)
Overloading operator<<, template classes, and Node lists
 
I've read that this is a very common problem in this kind of situation. I have Google'd, referred to class notes, and just done lots of research, but can't seem...
[1 reply] : static Node* head; or other.head (by Cody0023)
by lew13
Read In Whitespace from a file.
 
Hey guys, I have been searching the forums to no avail. I'm pretty sure that I am close to having it I just for some reason cannot find what's wrong and why thi...
[5 replies] Last: I figured it out, I had a null statement in my function declaration. T... (by lew13)
Getting the Value From a Pointer
 
I am attempting to get the value from another object, but I can't because it's a pointer. I keep getting : error C2440: 'initializing' : cannot convert from...
[1 reply] : Use dereference operator: Book newBook = *n; (by MiiNiPaa)
Quadratic Equation Program Assistance
 
For my next C++ class assignment, I need to write a program which can give the value of "x" in a quadratic equation when inputting the values of a, b, and c. I'...
[2 replies] Last: #include <iostream> #include <cmath> using namespace std; int main()... (by anup30)
October 2014 Pages: 1... 45678... 70
  Archived months: [sep2014] [nov2014]

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