Beginners - December 2013 (Page 2)

file input (1,2)
 
This was my attempt to read data in from a file. The file is stored in the same folder (directory) a...
[27 replies] Last: Hey, one last note. Want to know where else .eof() returns true and th... (by S G H)
by qmzh85
header file "cctype" not required?
 
Hi all: I tested a simple program from C++ Primer, 5th edition, Chapter 3. The example asks to co...
[2 replies] Last: Thanks for the explanation. I believe it's still a good habit to inclu... (by qmzh85)
Define and #ifdef
 
I see a lot of c++ codes that has in the first lines anything like #ifndef anything_h ...
[1 reply] : http://www.cplusplus.com/forum/articles/10627/#msg49679 (by ne555)
Question about the copy constructor
 
Hello, recently I've been doing some exercises in an attempt to remember how to overload operators. ...
[15 replies] Last: The above was in reference to Microsoft Visual Studios 2008. msvs is... (by closed account Dy7SLyTq)
Need help with tic tac toe program
 
I made a tic tac toe game program. Whenever a player makes a move it tells the new field statistics ...
[1 reply] : You can't. Once it has been printed to the console you can't change it... (by closed account 3qX21hU5)
Visual Studio 2012 Issue
 
I am working on a small project and I keep coming up on this same issue with Visual Studio. I am not...
[13 replies] Last: Thank you very much for putting so much effort in to explaining! Very... (by Hambone)
How does this "christmas tree" program work
 
Hello, I recently saw a a program that takes an integer, and prints a christmas tree (made of '*' s ...
[5 replies] Last: Wouldn't this effectively do the same thing using a while loop with tw... (by CplusplusAcolyte)
Problem with output(vectors)
 
Okay so when i give this program the input of "5+5", it gives me the output of 106, its supposed to ...
[4 replies] Last: Thanks Zereo. Great help thanks (by closed account EwCjE3v7)
Struct and Typedef
 
I want to understand the greate difference between a struct and a typedef struct . For example...
[1 reply] : In C, struct declarations did not introduce type names, a C program th... (by Cubbi)
by ZotIc
HashMap Implementation - 0x0000005 Error
 
Hi, This is my first post on this forum! :) I have been trying to implement a HashMap in C++, but I ...
[3 replies] Last: Thank you for your replies! I fixed the constructor of Link class and ... (by ZotIc)
Need Help Understanding Pointers
 
Ladies and Gentlemen of Cplusplus.com, maybe you can help me with understanding pointers. I understa...
[3 replies] Last: Thank you, sirs, that makes me understand now. (by closed account 91qLy60M)
Insert a struct into an array in another class
 
Hello again, i can't add a struct to an array that reside on another class How can i do? Assu...
[5 replies] Last: @nt3 Hello, i sent you a PM (by Amiplus)
how to get input fromtext file to c++source progarm
 
Write your question here. #include<iostream.h> #include<conio.h> #include<stdlib.h> #include<s...
[1 reply] : scores.txt format James J Jones 80 Mike M Martin 95 File input exam... (by mobotus)
Borland C++ help for project!
 
# include <iostream.h> # include <conio.h> # include <stdlib.h> # include <stdio.h> # include <...
[1 reply] : First I would suggest moving this to the beginners section since you w... (by closed account 3qX21hU5)
Exceptions
 
This is an extract from a note that i'm learning from. I don't understand the try block and the firs...
[1 reply] : try { //Try doing something } catch(//Error name) //If an error ... (by Stormboy)
stoi and c++ 11
 
Hi. I would like to use the function stoi, so I could convert a string to an int more easily. The...
[19 replies] Last: > I would like to use the function stoi, so I could convert a string t... (by JLBorges)
ifstream problem
 
Ok so here is my function to see if file exists and if it does not exist have it create the file. I ...
[4 replies] Last: Glandy That fixed it. works like a charm now! I'm sure ill hit some ot... (by ultratoke)
help please
 
Write your question here. my teacher gave us this assignment and refuse to help... the class has to...
[6 replies] Last: Implement like you would anything else: //Constructors //Finish up d... (by mobotus)
Time Script
 
I'm currently having trouble finding out a way to run simulations automatically every 3 seconds. I'v...
[9 replies] Last: For GCC, you'll also need to enable C++11 features using either -std=... (by long double main)
Derive function acess
 
Why cant it access derive class function isn't pointer pointer pointing at adreess of derived class ...
[1 reply] : First off, prt is of type Base. Base * ptr; You assigned it the a... (by closed account j3Rz8vqX)
December 2013 Pages: 1234... 69
  Archived months: [nov2013] [jan2014]

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