Beginners - June 2012 (Page 11)

DevC++ forcing terminate
 
On one of my functions, I have declared an object. I access it again towards the end of the function. When I try to compile the code, it tells me the object has...
[10 replies] Last: Don't start a new thread, keep it all in this one. If there are 2 thre... (by TheIdeasMan)
C++ Overview
 
Can someoen tell me what is the meaning of c++,is it fun, do we need any skills like math or something like that to understand it?
[7 replies] Last: C++ is very bad programming language. Well that's a huge statement ... (by TheIdeasMan)
How to fix this prime counting algorithm so it can handle larger integers
 
Possibly large long ints The goal is to count the number of prime numbers in between two integers. At first I used a self-made algorithm which worked perf...
[8 replies] Last: I want to point out that you are not deleting memory after allocating ... (by eklavya sharma 2)
by JAM96
openGL
 
Hey I am using Microsoft Visual Studio 2010 and I want to learn openGL I have openGL include files in C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\In...
[3 replies] Last: Linking libraries. Project->Settings. Select link tab. In the Object\l... (by SirSmilesaLot)
by sanu
looping problem
 
Hi all! I am having problem while looping as below: for (int openFile = 0; openFile < 31; openFile++) { ifstream readFile; ofstream copyFile; ...
[5 replies] Last: Actually the code was correct ... but what makes it difficult was the ... (by sanu)
Best way of learning C++?
 
At this moment, I'm reading a book "How to program C++". I was thinking about taking notes and using them on the exercises parts on the book. Anyways, what do ...
[4 replies] Last: I have found that I learn much better if I write some code myself. If ... (by Peter87)
Virtual Functions
 
Hey, I am writing a chess game, in which each type of piece is a dervied class of the base class Piece. Piece class has a virtual function virtual bool Ch...
[3 replies] Last: In class Piece, did you declare your virtual function as virtual boo... (by rollie)
Trouble Sorting a 2-D Array
 
So I am having trouble implementing a bubble sort for my 2-D matrix. I'll post the whole code below but before I do Ill tell you the general purpose of it. The ...
[7 replies] Last: do { ... for( int i=0; i<high; ++i ) { ... (by Phil123)
c++ function help
 
Can someone just help me get started with this. I believe I need to break this into two functions? one called x1 and another called x2? then have the calculatio...
[2 replies] Last: Well i was given this code and told to break it down into functions an... (by atown282)
Initializing a vector of strings
 
What am I missing here? I'm just trying to initialize a vector of strings. I get this error: error: expected constructor, destructor, or type conversion bef...
[2 replies] Last: Duh! Thanks. (by joatmon)
enum in class
 
Hi guys, Looking for a little help with enum. Here's the code: No matter where I put the decleratiron "compensation comp;", in the constructor for example...
[5 replies] Last: Well that did the trick. But I did not think it was possible to initi... (by Zhuge)
How to make the program look at each integer in a 3 digit number individually
 
I am trying to get the program to read the number that the user puts in (eg. user inputs 835, my program says "eight three five ". I can get it to say it if it...
[6 replies] Last: You are the best! Thank you! (by sepetoner)
Trouble with abstract base classes
 
EDIT: Thanks for the help guys! i've just got one more question, how would i use the constructor for the Obj? i want to declare its (x,y) position but i dont k...
[8 replies] Last: If you want to set the position of the circle, then you ought to provi... (by ne555)
Is there a way to erase the contents of a stringstream?
 
I think I need to replace the contents of a stringstream object, because when I run the program,the text which gets put on tothe screen flows off the screen wit...
[4 replies] Last: @knuth - clear() just clears the error flags. It doesn't affects the c... (by Peter87)
Creating Windows
 
where do i go for a tutorial on creating windows and butons for my programs? Thanks In Advance
[10 replies] Last: http://zetcode.com/gui/winapi/ comprehensive guide to programming win... (by ryanpeppers)
by omega1
XLW XLL
 
Hi, I'm trying to create an XLL using XLW http://xlw.sourceforge.net/ . Below is the VBA code that I need to convert to C++ so I can create the XLL using XL...
[no replies]
User inputs letter, I say if it is a vowel or consonant
 
#include <iostream> #include <string.h> using namespace std; char vowel ; //supposed to be a string that is all vowels int main() { cout << "Give me a...
[1 reply] : vowel is an array of char. When you compare it to something, you are... (by Moschops)
How to have "x" many cin based on user input
 
#include <iostream> using namespace std; int num_nums; //number of numbers that the user wants to average int num1; int num2; int num3; int main() { co...
[7 replies] Last: You are a great teacher! Thank you! (by sepetoner)
by XzqtN
Pass by reference help
 
Hello all, I am faced with a challenge right now, I have an assignment that must be completed and I cannot seem to figure it out. The assignment is as follows: ...
[8 replies] Last: You posting your 2nd code here helped me organize what I was doing. I ... (by irish77)
Pointers (1,2)
 
Hi, Before, I've tried to understand C++, yet I didn't get very far with the pointers... I've started a new try, and now I'm getting the hang of it better. ...
[25 replies] Last: Every compiler has its idiosyncrasies and variations from the standard... (by kbw)
June 2012 Pages: 1... 910111213... 51
  Archived months: [may2012] [jul2012]

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