Beginners - August 2011 (Page 17)

by mzd72
This
 
I can't the usage if this in c++ actually when we write return *this at the end of a function please explain it for me
[10 replies] Last: Thanks I got it (by mzd72)
creating a "note pad" document at run time
 
Is there a c++ library that can be used to create a "notepad" document at run time? I've notice that this was possible for bitmaps when I looked at my lecture's...
[3 replies] Last: thanks (by Blessman11)
class member function's object not in scope?
 
how do you call a member function from a member function? What am i missing? it could just be that it is 6AM lol im trying to call medkit.stat() from store::st...
[3 replies] Last: [quote=Turbine] new Item("Pie", "Yummy", 100); (sic) Who owns this ... (by closed account zb0S216C)
Class-Return Function
 
I'm having some problems with a class and it's members, I don't know how to return the values. class CLASS { public: void MEMBER(std::string, int); } voi...
[6 replies] Last: Thanks? I guess =P. No really, though, thanks for the help ^_^ (by Shay9999)
How would I write this program?
 
The program is supposed to take a first, middle, and last name and put it in the following format: <last name>, <first name> <middle initial>. The thing I...
[2 replies] Last: Thanks hamsterman. I ended up using a different method than what you s... (by bool maybe)
C++ Grid Error
 
Hello, i'm new to C++, I'm just learning basic C++ and am working on an exercise in which I'm involved in making a simple grid. And although I have a good knowl...
[3 replies] Last: Thank you very much I finally realized what I was doing wrong :S, as I... (by Sortiarius Ducere)
Operator Overloading for Smart Pointers
 
Hi there, I'm trying to write a smart pointer class for an int variable but I've gotten a little stuck. Firstly, to declare a smart pointer to an int, I MUST...
[6 replies] Last: Why not templatize the class? This would be almost as simple as a fixe... (by ModShop)
virtual baseball game
 
I'm trying to create a baseball game in C++ and I need help I know I need to use an array for the bases and a if statement for the runner. am I missing any oth...
[2 replies] Last: Even I - a Brit - know enough about baseball to know it involves rathe... (by andywestken)
by blobb
filestream failbit
 
So, I have a problem with my ifstream, it would seem: even though the file path is legit, ifstream throws a failbit. Does anyone have a clue what may be the ...
[4 replies] Last: Fffffffffffffffff! Forgot 'bout that!! thank you guys! (by blobb)
#include "main.h" ???
 
I have a whatever.cpp file that contains several functions that are called from main. One of the functions in whatever.cpp calls another function that is ...
[4 replies] Last: That does help, I was too quick to reply to Disch. Including a main.... (by Doug Krause)
The file rezultati.txt just have the "Konecni rezultati po predmetot Osnovi na programiranje" why? help
 
#include <fstream> #include <iostream> using namespace std; class Student { public: int index; int kolokvium1; int kolokvium2; int vkupn...
[1 reply] : [co de] "Please use code tags" [/co de] int count = 0; for( int i... (by ne555)
Visual Studio 2010 Debug not stopping at return 0;
 
Hello, I am beginning to learn C++ from books and in doing so preparing for college courses on the subject. Right now I am trying to get familiar with Visual St...
[4 replies] Last: Thanks a lot for that. I was tweaking hard because it seemed like VS08... (by jjmounes)
Vector modified under recursion.
 
Hi all, The code below is my attempt to solve the following problem: Given a vector v of strings find all combinations of them such that their lengths sum...
[1 reply] : I compiled it and got an assertion failure. That's because std::copy d... (by hamsterman)
Best way to create a map where the cells have individual properties
 
Hi! I and a couple of my friends are quite green but we have decided to expand our knowledge in the C++ language. So we have started a game project. Howev...
[2 replies] Last: Thank you, Never really used arrays that much. Guess I'll be using t... (by Jonas Wingren)
can't solve the problem
 
#include<iostream.h> #include<conio.h> main() { clrscr(); double a=3.9; double b=2.3; int x; x=floor(a); cout<<endl<<"The floor value of a is :...
[6 replies] Last: i personal think that if your learning the language it dosent matter ... (by Moschops)
by stage0
why wont this compile help!
 
hey im learning c++ and for some reason this wont compile and i dont know why can you explain why and how i can fix it? #include "stdafx.h" #include <iost...
[3 replies] Last: You should try learning how to read compiler error messages instead of... (by vince1027)
Easiest program to code in?
 
In my first college C++ class I used Microsoft Visual Studio but in the second class I just used Notepad++ (on Windows) then used g++ to compile and Gedit (on m...
[5 replies] Last: Well, Notepad++ is not exactly an IDE per se. Unless it is modified, I... (by vince1027)
classes member functions question? make it a class or not?
 
if i was trying to make a game store, with items at the store selling 10 plus different items. 1) i have a display showing the amount of money available 2) i s...
[1 reply] : 3) i have functions for each item at the store ... i have hundreds of... (by Disch)
by paupau
Somethings Wrong
 
any body help me for one dimentional using for loop statement..? like this #include<conio.h> #include<iostreamh.h> main() { clrscr(); int i; int x ; f...
[6 replies] Last: @packetpirate I'm use to other programming languages. So, to me, when... (by whitenite1)
Class inherits a class but can't use/recognize any of base class constructors?
 
I have a class that inherits another class from a different library in a header file. I have one header and three sources. My only error when compiling is that ...
[4 replies] Last: they said something about classes not inheriting constructors? They... (by shacktar)
August 2011 Pages: 1... 1516171819... 39
  Archived months: [jul2011] [sep2011]

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