Beginners - August 2011 (Page 3)

by nand
file doesn't parse all the way if file1.tellg() isn't called
 
Hello, I wrote a program to learn a thing or two about files. I don't understand why I need to call tellg() or tellp() in every loop. I have noticed that thes...
[1 reply] : Hello, I haven' found any solution to this problem, so I left the work... (by nand)
My first C++ class
 
Hello everyone! I just started my first C++ class and have ran into a small but annoying problem with my first program. I have the logic down fine but I can...
[5 replies] Last: It is strOngly suggested to return a value but is not required for yo... (by Moschops)
A little help please...
 
Hello, I am trying to write my own random number generator using OOP techniques. However, I am getting an error that I am unfamiliar with and was wondering ...
[3 replies] Last: Thank you for you help Andy. I really appreciate it! Regards, ~Sound... (by soundstone)
by shank8
Using modulus with printf as just text
 
I would like to print an equation to the screen of a simple console Win32 app, but when I use it in the printf the modulus operator is invoked and the function ...
[1 reply] : I don't use normal C, but with Perl's and Java's printf and String.for... (by Mathhead200)
by newby
friends of template classes
 
I'm stuck trying to call a function which is a friend of a template class. I get a compilation error (in visual studio 2010 express: unresolved external symbol ...
[4 replies] Last: However the behaviour is not the same. template <class U> friend void... (by ne555)
Most basic program possible
 
Using gcc mingw32 on windows, how could I make the most basic program possible? I want something with even less then std::cout << "Hello World"; , I don't even...
[1 reply] : Probably this: int __main() {} Compiling with parameters -s -mwin... (by Athar)
Need help in doing these. Please :)
 
if n=5 the output is * *** ***** ******* ********* if a user enters number, the program will display its factors eg. n=4, output: ...
[7 replies] Last: it still wont form christmas tree bro. ----*---- ---**--- --***-- -**... (by eldan328)
by shank8
Weird Problem with Declarations
 
Even though my code is in C not C++, the error is universal I would think, but for some reason I wrote this code in CodeBlocks but am not moving it into VB 2008...
[3 replies] Last: Thanks a lot, I will try that out. Sorry, I am used to coding in C++ b... (by shank8)
by i514x
how to run a console and store its output?
 
Like in the title, i need a function which will run a specific program (In this case its a console) and i will be able to store its output in a variable. I'm lo...
[6 replies] Last: ??? _popen is the command to run a program and get the output! (by andywestken)
C++ Senior Programmer
 
•Mastery of C++ •Unity 3D experience •Implement vital gameplay features such as AI behaviors, player control, navigation, steering, camera movement, vis...
[3 replies] Last: lol :) (by TheMassiveChipmunk)
getline() problem
 
/plzz tell me why the string p is not being asked when the program is executed ? #include <iostream> #include <string> using namespace std; int main()...
[5 replies] Last: You could use cin.get() if you can guarantee that there's only one c... (by shacktar)
Python in Code Blocks?
 
I am using linux Mint. i have been programming with C++ in Code Blocks for awhile. I am currently taking a OOP class that wants us to use Python. How can i get ...
[2 replies] Last: If you're willing to take a bit of a risk? http://wiki.codeblocks.org... (by andywestken)
What is SDL capable of?
 
I've been following Lazy Foos tutorials on SDL, and I managed to get an image on the screen. Most of the examples of SDL I've seen on youtube are something...ar...
[5 replies] Last: Things SDL is good at: * Wrapping 2D and OpenGL screen refreshes. * 2D... (by helios)
Linking libraries
 
I'm trying to find a way to compile a program that I have with a few external libraries. After some searching, I found an example in O'Reilly's C++ Cookbook. ...
[6 replies] Last: Thanks so much!! After giving it the -I file path, it worked fine! Tha... (by littlemissinuka)
by lufee
lotto revenue simulator
 
this is our project. please help me how to start. the bool operator and the n draws are the parts i cannot understand. thank you. lotto.h #ifndef LOTTO_H ...
[2 replies] Last: First: capitalize your sentences. Second: format your code in code bra... (by Mathhead200)
Can images be displayed in console?
 
I need to figure that out now. Or I might just have to start learning GUI
[12 replies] Last: You could always convert the image to ascii art and then display that ... (by andywestken)
getline
 
Hi I'm trying to read data from a file: Graham, 21, Male, 24606038, a1, yellow, The data is in different formats, I could write it each on a new line. ...
[14 replies] Last: I never said it was a good idea :) I was lazy and just wanted to avoi... (by shacktar)
by Chathu
About Char Arrays
 
This Is My Question. Method Rate a 56.66 t 43.66 c 32.33 u 54.22 The User Must Enter a,t,c,u Then It Will ...
[3 replies] Last: A char is an int since it it can hold a value from 0 - 255. Each of... (by ascii)
Can someone tell me why this simple cose doesn't run right?
 
It runs just not correctly for some reason if ( Sum == 180 ) {cout << "This is a triangle!" << endl; cout << " " << endl; } ...
[3 replies] Last: How close do you want the numbers to be before you consider them to be... (by Moschops)
Class contents
 
When going through lines of c++ code, I constantly find code that just doesn't seem to be effecient to me. Is there any advantage to using this code: class...
[2 replies] Last: Ahhh that makes sense. It is just for contingency in error checking. ... (by Stewbond)
August 2011 Pages: 12345... 39
  Archived months: [jul2011] [sep2011]

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