Beginners - February 2010 (Page 28)

Counter/loop question
 
My program is not stopping after the number of maximum loops I have established. Any suggestions? I just need for it to stop looping after a certain num...
[10 replies] Last: I'm sorry. I was wrong in the previous quote. It was actually (((w... (by littlemissb)
displaying an image in Visual Studio
 
I have an image that I need to display and I am looking for an easy way to do this in Visual Studio, can anyone point me in the right direction? thanks.
[1 reply] : You'll probably want to start by looking into graphics libraries. (by Zhuge)
ifstream getting chars
 
I am writing a program to generate random numbers, output them to files based on if they are odd, even, or negative.I am then supposed to use an ifstream to get...
[1 reply] : Use int main . eve2.open("H:\\Files\\EVENS.DAT"); odd2.open("H:\... (by firedraco)
malloc
 
I'm having trouble with malloc. I copied this from a tutorial and tried to run it but it didn't work. It is supposed to insert a new element in a linked list (w...
[8 replies] Last: Thank you everyone. I'm using a C++ compiler. Not sure why the malloc ... (by karine44)
I got a problem with this simple program
 
Hello I am studying C++ from a book ,and now i am the end of the chapter where are the exercises .This one requires me to make a simple calculator that accepts...
[7 replies] Last: I checked about maps in the textbook - maps are covered in a later cha... (by hunter86bg)
by Soko
linked lists problem (T/F verification)
 
Hello. Not sure if this belongs in the beginner's forum or not, but thought I would put it here to start. So, I made a linked list to represent a polynomial...
[no replies]
Defining a que with exacly 5 elements
 
I went through the library <queue> standard library. When we want to initialize a queue using that we use the follwing code segmant. queue<string> q; But...
[2 replies] Last: You cannot force the queue container to have a maximum of 5 elements. ... (by jsmith)
by Regine
URGENT!!!this program runs but it has a problem
 
program no.1 ==this program should accept both string and a single character from the user. The program should determine how many times the character is contain...
[3 replies] Last: @ankushnandan @Denis thanks to your help guys! it's a success! :) (by Regine)
FOR Loop 2 variables, printing ascending/descending order
 
Use two variables inside the parantheses of a for() loop. Write a program with minimal lines that outputs two columns of integers. The first column prints int...
[3 replies] Last: Hi, Thanks so much...I spent about an hour and now its done...I app... (by rapduty)
How should I continue learning-- the libraries
 
Hi, I've finished a beginners book, c++ without fear, on c++ a while ago. I am going to start to get more hands on. I want to start reading the libraries and re...
[2 replies] Last: Thanks, that was very informative. (by brokenbot)
getting run time error while usuing dynamic_cast
 
Hi, #include <iostream> using namespace std; class shape{public:virtual void f1(){} };//~ shape ends class rectangle : public virtual shape { ...
[2 replies] Last: Thanks Disch!! I got it.. (by ankushnandan)
by cpp123
Could not figure out problem with this code
 
class GradedActivity { protected: char letter; virtual void func(); public: char getLetter() { return letter; } }; ...
[7 replies] Last: Yes it works ! The mistake I was doing was that , I was not creatin... (by cpp123)
class, main, and main function
 
class Cexample{ public: virtual int example(); int xyLoc ; private: i, j; }; int Cexample::example() { for(i = 34; i<4...
[4 replies] Last: Thanks Duoas! I already tried this method before you posted it :) ... (by olredixsis)
First C++ programming assignment, divide for answer with remainder
 
My assignment is to write a program that will divide two numbers and give an answer with a remainder. I was given a faulty code that I need to fix. Things that ...
[10 replies] Last: Oh, well thank you for the compliment, and thank you all so much for t... (by WahooMan)
by Asyran
hello, im new to c++
 
hello, i am a newbie to c++, therefor i do not know what to use to do my coding. do i use a notpad? or do i download somthing to type all my coding in? sorry i...
[2 replies] Last: http://www.cprogramming.com/code_blocks/ http://cplusplus.com/doc/tut... (by blackcoder41)
what the hell!!!
 
I put in my code and the compiler keeps saying '<' : operator has no effect; expected operator with side-effect heres the code #include <iostream> u...
[4 replies] Last: thanks fellas I understand now deeply apreciated!!! (by jason007thomas)
Sorry, another question about loop and "While"
 
I tried making a program where it tells the user to input the "secret password". If you write any number that is not "0", it will just repeat itself and keep a...
[1 reply] : use code tags and proper indentation, because you incorrect braces whi... (by gcampton)
.h and .cpp- as well as classes
 
I have been writing quite a bit now in the past few days. I just have two main questions.. first a brief rundown..I keep all my main code in main.cpp..that's ...
[2 replies] Last: to include a .cpp file you create an object file of that class, eg in ... (by gcampton)
Tomorrow its due and i just hit a road block
 
So my name is Abel and i have a pretty simple problem.....hopefully. I am running visual basic for a c++ class that i am taking in college. The assignment is th...
[1 reply] : don't use 2 seperate streams to read the same file, you can do this bu... (by gcampton)
how to loop properly
 
I'm new to this, so i'm still learning! I'm trying to get the user to guess the number the computer is thinking and give the appropriate response and loop. ...
[3 replies] Last: Finally, i got it to work! thanks dude! #include <iostream> usi... (by sunwooz)
February 2010 Pages: 1... 2627282930... 32
  Archived months: [jan2010] [mar2010]

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