Beginners - December 2013 (Page 3)

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)
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)
by Garion
I recently started playing around with stringstream. From my understanding (which could be wrong) it...
[5 replies] Last: cool, that will be incredibly useful. (by Garion)
scientific notation problem
Hello everyone! I was messing around with code a bit and found out there is something strange happen...
[4 replies] Last: I get the output of 6.626e-34 with gcc, clang, intel, sun, and ibm... (by Cubbi)
Cannot Interpret Compiler Error
Hello. I am creating a program to read the data from a file, remove the quotations from the words an...
[2 replies] Last: Ha, thanks. I tend to mix up my variables sometimes. edit: wish it w... (by heyyouyesyouiloveyou)
Exception doesn't work
This is exact copy from tutorial, Why exception isn't thrown / displayed ? I don't see it in console...
[3 replies] Last: @JLBorges: Thank You. It was all explained in the tutorial I just did... (by mario0001)
array !!
I set 2 places in array called a . despite i put for loop exceeds than my array, it works correctly...
[2 replies] Last: thank you so much :) (by MGeorge)
Passing pointer to function
Is there a different rule when we are passing a pointer to a function we sometimes write ampersand w...
[5 replies] Last: in case 1 ampersand was required for calling and in case 2 we didn't... (by Cubbi)
by Loxo
do {} while ( x && y) exits for x or y
Hello, I'm just starting to get my head around cpp. My second do {} while () is exiting the loop wh...
[5 replies] Last: #include <iostream> #include <string> #include <cstdlib> #include <c... (by Loxo)
closeing outside of visual studio
[1 reply] : ---- (by ProgramMaster)
microsfot visual studio express 2012
Yes I was currently running my program and I was trying to ceate a finished product on my desktop bu...
[3 replies] Last: Alright thank you for your input but the thing is it debugs fine insid... (by ProgramMaster)
Calculator Not Working Right
Hey, so i tried the calculator problem from "Jumping Into C++" chapter 6 problem 2. it asks you to c...
[4 replies] Last: alright thanks guys. yeah i dont know why i put string and cstdlib, i ... (by josepho16)
Constructor inheritance.
I googled this topic but everything I came across wasn't what I wanted. I am trying out the example ...
[1 reply] : When derived objects are created the base constructor is called first ... (by James2250)
by alsade
question about array of class objects
what do i need to change in the class so that ill be able to declare an array without gettin error n...
[3 replies] Last: No I wouldn't say it's null terminated, it is just because C++ uses ze... (by James2250)
December 2013 Pages: 12345... 68
  Archived months: [nov2013] [jan2014]

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