Beginners - November 2011 (Page 8)

by Cecill
I need an advice for a problem
 
Hello there! I encountered a little problem that I cannot explain. If someone help me with solving it I will be highly appreciated. Here's the source code: ...
[5 replies] Last: If you create new objects you throw away any old objects (which are no... (by Peter87)
sorting member funcions based on member variables
 
Is there a way to sort a list of member functions based on a member variable of an object that the function belongs to?
[3 replies] Last: Okay, I would overload the > operator to compare two objects var. The... (by ascii)
by willem
how to store text from file
 
I am trying to write a program that reads text from a file and then stores that text. The file consists of lines that have information in this order NAME JOB ...
[2 replies] Last: Thanks a lot. I will read both and give it a try. Thanks again. (by willem)
question about visual studio 2010
 
hey all im having a small issue.....after having upgraded to visual studio 2010, with useing using namespace std;, im getting the following 2 errors: Error 4...
[3 replies] Last: Error 4 error C2143 Contrary to popular belief, that doesn't tell u... (by Catfish)
Converting Binary to decimal
 
I've been on this homework problem for about 2 hours and I just can't wrap my mind around it. It is driving me frickin' crazy..... So here's the question: Wr...
[9 replies] Last: It was in 2008. <<+ ??? Is that a typo for <<=? If it is, then: I wa... (by helios)
arrays problem
 
Hello guys First of all I don't want any one to do my assignment for me, all I want is hints and ideas and any help is very much appreciated. I'm not sure...
[1 reply] : help please mates (by yaser altamimi)
[HELP] Program shutting down
 
So this is my code (some of the text is in Dutch, just ignore that): #include <iostream> #include <stdio.h> #include <stdlib.h> #include <time.h> usi...
[9 replies] Last: oh... I get it now, silly me. Hey, thanks a lot EDIT: Do you have a s... (by TheDudiful)
Help needed
 
Hi! Appreciate some help in this... Does anyone know what's wrong? I'm trying to get the program to read a text file I have on my desktop and do a word count. H...
[1 reply] : The return type of main should be int. You are trying to use getInput... (by Peter87)
Overload these operators..
 
Figured it out
[2 replies] Last: You're right about that. (by skatingrocker17)
questions about header files and classes
 
i have a couple of stupid questions as a beginner. im taking a c++ class, and am working on classes right now. im having a big issue on figuring out how to prop...
[8 replies] Last: ok so far so good. thank you very much! (by seawolfmoose)
3 dimensional interpolation in C++
 
Hi, I was wondering if anyone could help me with three dimensional interpolation(spline cubic) in C++? I always use MATLAB but just recently had to switch to...
[no replies]
by s10jam
Send array to a function that prints the array
 
I'm working on a project for school, and I think my code needs rearranged. My problem is that I have a 2 dimensional array set up in my Main.cpp and code to dis...
[no replies]
More input problems DX
 
Its been a while since I went to my program, but before a few days ago, I had a problem concerning a residual newline making my program do something it wasnt su...
[no replies]
Question on dynamic_cast??
 
Hi evereyone, I have a txt file with different shapes, I read the file and I store the different shapes on an array of a base class CBase* bptr After I...
[13 replies] Last: Thanks everyone for the help, I figured it out, using the dynamic c... (by detroit)
Which is faster?
 
My friend's friend made a function for inputing unsigned integers. It's faster than scanf and much faster than cin. But I made a small change and I think it's a...
[no replies]
Help with double
 
Hello, I'm trying to do a exercise from a book im learning from but getting stuck with the syntax. the question goes as follows 'Read the age into doub...
[4 replies] Last: thanks for the help i was under the impression that i needed to have a... (by whateverything)
by moot1
tic tac toe help
 
C:\Documents and Settings\Matt\My Documents\tictactoe.c|1|error: iostream: No such file or directory| C:\Documents and Settings\Matt\My Documents\tictactoe.c|2|...
[9 replies] Last: What can I use instead of system ("pause")? http://www.cplusplus.com/... (by TheMassiveChipmunk)
crash on std vector assignment
 
I keep getting a crash on assignment of a vector of a class to a vector of a class(they are the same type of course). call stack: std::basic_string<char, ...
[3 replies] Last: It just says it crash inside the string destructor. These kind of erro... (by Peter87)
by saru s
Need Help in converting decimal to binary and vice versa using class.What is wrong in this code?
 
#include<iostream> using namespace std; class Numberconversion{ int x,y; public: void set_bin(int m); int get_bin(); void set_dec(...
[1 reply] : I don't think using a class here really makes sense, but if you have t... (by ascii)
Change Project Directory In VS2010
 
I make a project in folder A (assuming) But now I want to move all of its files to folder B... I did move the .sln file and all of the .h and .cpp to B... Bu...
[2 replies] Last: Nice. (by hentaiw)
November 2011 Pages: 1... 678910... 65
  Archived months: [oct2011] [dec2011]

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