Beginners - March 2012 (Page 42)

two items not declarin when debuging
 
hello, i have a program its a struct struct new { string fname; string lname; int id; }; struct school { string nameofschool; string course;...
[2 replies] Last: ok i see thank you ad int classA (by BLACKHULK)
how does this work?
 
#include<iostream> using namespace std; int main() { int number; int highest = 0; int max_num; int num ; cout << "this program determine...
[5 replies] Last: I'm beginner in C++ Will you please help about my assignment? I don... (by fmbaby)
Graphical Programming in C++
 
Hello! I was wondering if can give me advice on graphical programming. What I mean by this is I want to be able to program with graphics, so I guess like a vide...
[10 replies] Last: I prefer using Visual studio, Visual Studio is allso a industry standa... (by Tordin)
Probably simple question about freeing dynamic variables
 
Hi, I have a struct... struct Vertex { short v ; }; struct VertexInfo { Vertex* vertex; int _vertexCount; }; I create an instance of Vertex info withi...
[5 replies] Last: Very clear now IceThatJaw, thank you. :) @Cubbi: I am restricted to d... (by bigsofty)
loops for best fit line calculation
 
I'm writing this program to calculate the best fit line. It's not finished. I'm doing it step to step to make sure it runs so I don't get lots of errors and tot...
[5 replies] Last: You code it pretty much just like your "avg" function, except instead ... (by long double main)
Reverse Stack
 
I'm trying to reverse this linked list stack but I don't really know how to go about. The question says that I should copy the elements of stack 1 into stack 2 ...
[9 replies] Last: thank you for helping. (by DocCeaser)
Class Object Question
 
When you pass an object that you've created into a class method, its passed in by reference, which means any changes you made will be passed out, right? i.e ...
[6 replies] Last: Yes, you are right. (by Zhuge)
Function not returning value.
 
I have an assignment for class to calculate my grade so far using functions. All of it works fine except for the function that calculates my quiz average. It ju...
[3 replies] Last: Thank you so much! (by EricaFH)
Class definitions
 
I'm having trouble with basic class definitions. I have to do this for an online worksheet (it is graded by the online software). The problem I am having issues...
[6 replies] Last: It is just asking you to define everything no need for any of the int ... (by damonawsgt)
Help with program structure
 
I haven't seen much about this in tutorials or in my books, so I'm pretty sure I'm doing it wrong (or at least, not the best way). I have my Main.cpp, then I...
[5 replies] Last: Usually one declares classes in separate files and just includes them ... (by IceThatJaw)
Undefined Reference to a Defined Function?
 
It seems the linker thinks that my member function isn't defined, when it actually is. The Problem: I have a non-template member function call Price( ) , w...
[8 replies] Last: virtual const char *&Name( ); This returns a constant reference but... (by IceThatJaw)
Conio Help, PLEASE!
 
Hi, everyone! New here. I am working on a C++ project and I am trying to add some color to my console. I also want to use the clear screen function. Even though...
[no replies]
Object oriented program problem
 
llll
[4 replies] Last: Really? I learned everything I know about OOP in C++ from an old ass b... (by IceThatJaw)
Problem with std::map find() method
 
Hi, Would you please help me find out what is wrong with my code? port* macro::get_port(char* myName) { printf ("Getting port %s\n",myName); port*...
[4 replies] Last: Wow, it works. Thank you guys, I really appreciate it. (by binhvanpham)
How do you clear the screen
 
So i'm new to C++, i took a class on it and now i'm taking another one so i can also learn to use GUI and such but this second class is in BASIC. I figured to c...
[2 replies] Last: http://www.cplusplus.com/articles/4z18T05o/ (by ne555)
How to compare file data to local variable
 
Hi, I recently learned about the ifstream and ofstream classes. Now, what I'd like to do is have a user input file to a text file, and the next time he or sh...
[1 reply] : Now, what I'd like to do is have a user input file to a text file, an... (by IceThatJaw)
using vectors with constructors and functions
 
I've declared a vector of Lists as a private field in my header file. I create the vector in my constructor and make it size 10. I want to call upon the vect...
[2 replies] Last: What you trying to do is not trivial so I would take care in designing... (by IceThatJaw)
Giving me only part of the output
 
This program is just allowing me to enter the income and not the expenses. I need a program that allows you to enter the income and expense amounts, which will...
[1 reply] : while (expenses >+ 0) What is this? Does this even compile?... (by ResidentBiscuit)
by mike87
Loan Program
 
Me and my friend are trying to solve a homework problem but we don’t have enough background knowledge to fully complete it. The problem is : -create a p...
[2 replies] Last: Yea problem would be nice. If it's just strictly formatting, then mess... (by ResidentBiscuit)
Getting an infinite loop, not sure why
 
[I am using Windows 7 and Visual Studio 2010. If this question should be posted in another topic, let me know :) Thank you.] The objective of the program is ...
[3 replies] Last: Thank you very much. (Also, I apologize for the y=6, that was someth... (by mmc5311)
March 2012 Pages: 1... 4041424344... 71
  Archived months: [feb2012] [apr2012]

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