Beginners - February 2011 (Page 15)

Problem calling sort function
 
I am having trouble calling the sort function in the main block. Can you guys give me some feedback? I recieve a " no matching function for call to `payroll...
[13 replies] Last: So this is wrong? void sortdata(char ,double ,double ,double ); ... (by cplusplusrookie)
class templates in header files
 
Do class templates only work in c.pp files? My VC++2010, underlines header files declared in header files, this is just strange.
[7 replies] Last: Before your compiler gets a look in, the preprocessor takes the conten... (by Moschops)
by moe93
how can i return to main?
 
Ok, The thing is I dont really know how to make a header file, so I gave it a shot and "tried" to make my own header for this big project am planing to make..=P...
[6 replies] Last: This should help: http://www.learncpp.com/cpp-tutorial/19-header-files... (by closed account zb0S216C)
Comparing Arrays
 
I've read the FAQs to this site and understand that we are not supposed to ask for answers to homework. This is a homework question, but I just want a hint, not...
[4 replies] Last: I'm only a month into my C++ class, so I admit I'm still confused over... (by programming beginner)
how many elements can i add ?
 
i've got this struct: struct something { double x,y; double a,b; ...
[5 replies] Last: If you have 32-bit Windows, you can usually not allocate more than 1.3... (by Athar)
CanĀ“t print string
 
Hello, I`ve tryed evrything! This is my code void genera_datos(multimap<equipo,jugador> liga){ equipo equipa; for (int i=0;i<3;i++) { int randomC...
[2 replies] Last: Thanks a lot for your answer! Dam what easy it was...stupid me..it s... (by horance89)
file handling
 
i want to pick up all the files from a directory one by one having a certain string in the name. thnx advnc...
[3 replies] Last: Well, you just need to make some kind of store of all the file names y... (by Moschops)
= overloading
 
I have a complex no class. I am trying to overload =. I have pasted some code below Q1. usually an = returns true or false if the assignment was successful ...
[8 replies] Last: Do it the way the standard streams do it: class Fooey { pu... (by Duthomhas)
Class prototype
 
Hello, I am having some trouble with class prototypes. #include <iostream> using namespace std; int main() { class Game; //Prototype decl...
[no replies]
cin.getline skips a line, how to fix?
 
cin.getline skip a line when it reaches the age cin.I don't know how to fix it yet.I'd be thankful for any help! #include <iostream> #include <string> u...
[2 replies] Last: ok found an answer in one of the post's here so don't bother with this... (by evertangel)
by Crippy
Input from File
 
A question: I have a file containing sequences of numbers, looking something like this: 34.45 55.0 24.5 78.6 28.55 98.8 etc. I need to be able to...
[1 reply] : You can use >> operator to get data from file: fstream file("f... (by Null)
by ijg213
return object member best practice
 
Java programmer overwhelmed with vast array of choices in C++ I have 3 classes: Surface Vector3D Triangle The Triangle class will include a getNormal ...
[7 replies] Last: There's no difference except that you can "reuse" the object in the sa... (by Athar)
Reading and writing to a Binary file
 
I've recently decided to learn c++ and things have been going along well, but I've hit a snag in the program I'm trying to write. I've spent the last three d...
[2 replies] Last: Well it took another hour of random trial and error playing the "guess... (by KoDeNich)
Pointer
 
assign pointer pointing to the first (index 0) element and pointer pointing to the last element how would i write this into my program.
[2 replies] Last: The first thing you should probably do is research pointers if you hav... (by Targen)
Mathematics
 
Anybody have any idea as to how I can write an application that can factor a quadratic equation? Also, is there some algorithm to salve multi variable equation...
[1 reply] : For quadratic equations in one variable there is the quadratic formula... (by jsmith)
by eyeck
infinite loop...
 
Hey everyone, complete beginner at c++ here, so go easy on me please :) Any time I write a program which includes a while loop, I get an error like this: ht...
[4 replies] Last: Thanks, that article's definitely gonna come in handy. Anyway I starte... (by eyeck)
Unusual Error Message
 
Hey all! I keep getting an usual error message whenever trying to run this piece of code. It appears whenever I run it (not a compiling error). The error ...
[3 replies] Last: I solved the problem! Basically I hadn't handled the fact that str.fi... (by jis2507)
Getting fatal error C1190 pt2
 
pragma endregion private: System::Void lblseatNumber_Click(System::Object^ sender, System::EventArgs^ e) { } private: System::Void lblflightCl...
[no replies]
getting fatal error C1190 pt 1
 
I cant place the entire code due to the character limit so I have to break it up. #pragma once #include <fstream> #include <string> #include <vcclr.h> usi...
[no replies]
Problem with classes...
 
I am creating a text adventure game. Although I've written several of these (in c++ of course), I am upgrading my libraries to handle Object-Oriented Programmi...
[3 replies] Last: Oops... Thanks, I've finished the finishing touches on my (now fini... (by appnerd)
February 2011 Pages: 1... 1314151617... 43
  Archived months: [jan2011] [mar2011]

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