Beginners - September 2012 (Page 21)

string from .txt file to int array
 
I have a difficult assignment and one of the parts requires me to take a .txt file full of numbers (1 number per line) and put it into an int array. With the f...
[2 replies] Last: I have made the modifications you suggested and the output is now noth... (by blitzko)
by MW130
Images in c++ really need help
 
Hello, I am a self-taught beginner, and I have learned to do some simple programs in c++. I have looked all over the internet and nowhere can I find tutorials f...
[14 replies] Last: yes plz (by MW130)
youtube Channel: Advanced C++
 
I am creating a series of video sessions to demonstrate medium-to-advanced C++ programming techniques that I've learned over the years. Lot's of the ideas came ...
[10 replies] Last: Nice catch, cire. I'll update it in my next version of the video. (by boqian2000)
This declaration has no storage class or type specifier?
 
At first everything was just plain cout and I had using namespace std;, but then when I added more code in, it all said cout is ambiguous so I took off using na...
[1 reply] : Missing semicolon after int damage = 10 (by Chervil)
Problems debugging in CodeLite
 
Hey everyone. I just recently started a class in C++ earlier this semester. I downloaded CodeLite so I could compile and run my programs. It downloaded and in...
[3 replies] Last: no one? Well that blows. (by abarreto93)
Reading in a file to array.. Splitting the info
 
Be easy one me... I am very new to C++ and having a tough time! Here is my problem: I am attempting to read in a file that has a persons last name and 8 gra...
[1 reply] : I have been able to figure out to this point now. I am using stringst... (by Exhorter)
how come i can't print out the code in code::blocks the second time i open up the project.
 
at first i wrote some codes for example cout<<"hello."; after i complied it and run it, everything works fine. however, if i close the program and reopen it, an...
[no replies]
Problem with Class scope resolution
 
I have a List class and I am to now add a stack class and use some of the functions from the list class. I put everything together, but I am getting an error t...
[2 replies] Last: The instructions were to create a Stack class to go along with the lis... (by apeachaday)
Adding numbers between 1 and some parameter.
 
What I want this program to do is have the user input a number. After the user inputs a number, the program then it adds all the numbers between 1 and the inp...
[3 replies] Last: Heh, here is another more optimized version #include <iostream> usi... (by strongdrink)
How to create a library in Code::Blocks
 
Hello! I want to create a library. I searched on google, but nothing appropriate came out. I don't want to make something complex, just some math - functions...
[14 replies] Last: MinGW uses ar archives for static libraries on Windows as well. This i... (by Athar)
how come i use iostream.h doesn't work but iostream does?
 
i am been reading a book and code in this book is always #include<iostream.h>, i tried to use that and it gives the error message. also in this book they use vo...
[2 replies] Last: thanx (by Yangfizz)
by Tate
One Last Question Regarding "Switch Statements"
 
My code is nearly perfect with exception of two issues: 1) When 1, 2, or 3 is selected in the second switch statement, the correct doctor's name displays (i....
[10 replies] Last: After a good night's rest my eyeballs have retracted back into their s... (by Tate)
For Loop Problems?
 
I'm working on a class project and I almost have it completed. The very first loop is a For loop and for some reason it doesn't seem to be doing what I'd like i...
[2 replies] Last: Figured it out! Silly mistake! Forgot to make sure that the number tha... (by LadyDustBunny)
Function Declaration Syntax help
 
Hi, I have been reading some c++ code and there is something that I haven't been able to understand... class LexerCPP : public ILexer { public: LexerCPP(b...
[3 replies] Last: @Vlad That was one awesome explanation my friend, it is perfectly cle... (by RaptorX)
g++ Compiler Problems?
 
According to the order of precedence, I would expect the expression: 20.0 -2.0/6.0 +3.0 To evaluate to be 22.6667. However, I am using the g++ compiler and e...
[1 reply] : You didn't type the first equation the same as the second. (by Lowest0ne)
Need Help!
 
Hi guys im having trouble figuring out how to complete this assignment Use Notepad to create an input file with the following input data for this program: .0...
[4 replies] Last: Well, stop looking at the problem as a whole. Break it up into managea... (by ResidentBiscuit)
by Jhuyt
SFML 2.0 RC problems
 
Hi I'm following these http://www.youtube.com/watch?v=xuhkHOAhXZ0 guides to learn SFML 2.0, but I've run into a problem. It seems that there are some grea...
[4 replies] Last: Thank you, it worked. I did look through the documentation and it sol... (by Jhuyt)
A Question Regarding "this"
 
We all know that " this " is always passed an address, and cannot be assigned to null. Based on the rules imposed on the declaration of the " this " parameter, ...
[5 replies] Last: @ Moschops : That makes sense. @ pogrady : I'm aware how " this " wor... (by closed account zb0S216C)
Dynamically Loading the Address of an ifstream(using pointers)
 
Hello, I just made a program to count the lines of a text document, the address of which is in the actual code. Now its my goal to have the user input the ad...
[2 replies] Last: Thank you so much! Worked like a charm. :) (by Goldensilence333)
update array size dynamically
 
Hy guys , We can update our vector array if new element is added . We are do int dynamic arrays ? in which we do't know arrray size . and if any element i...
[2 replies] Last: If you're using e.g. int* parray = new int ; , then the only way to r... (by andywestken)
September 2012 Pages: 1... 1920212223... 62
  Archived months: [aug2012] [oct2012]

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