Beginners - August 2013 (Page 32)

Good C++ Compiler [Ubuntu]
 
i heard linux is best OS for programmers plus i wanted to get a little expierienced with another OS but the thing is i dont know what c++ compiler or IDE i shou...
[4 replies] Last: I just wanted to point out to the OP just in case there is some confus... (by closed account 3qX21hU5)
Using objects in different classes
 
I have a question. I have been learning SFML and know C++ pretty well, But one thing I have never understood too well was using objects in different classes. I...
[2 replies] Last: Are you trying to basically make a base Game class that handles the wi... (by closed account 3qX21hU5)
Trouble with loops
 
Im new to programming and is trying to make a program that makes triangles and ask for input several times and ends with when 0 is input. i have made the code ...
[3 replies] Last: thank you so much that fixed it i was almost staring myself blind at s... (by xelan1990)
I need better code examples
 
I give you my current source on a simple Rogue style game. It's a very basic design but I want further input on the systems used before I begin and get's too...
[2 replies] Last: Hi LowestOne, thanks for the reply. Late last night I was converting ... (by closed account G30oGNh0)
BankAccount pointer, virtual and abstract
 
Problem Statement: Banks offer various types of accounts, such as savings, checking, certificate of deposits, and money market, to attract customers as well ...
[1 reply] : hahaha obviously you're enrolled on CS128 >:)) (by jveekulit)
by elfeck
Safe cast to derived class
 
Hi, I want to cast a base-class-pointer to a derived-class-pointer in the following fashion: void myfunction(Base* base) { if(typeid(base) == typeid(Deri...
[1 reply] : When used with a pointer, dynamic_cast<> returns a null pointer if the... (by andywestken)
operator overloading
 
can we use only one argument in operation overloading function as a parameter! here is error of this code 1.‘com com::operator+(com, com)’ must take eith...
[7 replies] Last: At this case ,It's not the + operator overloading you're looking for,I... (by closed account 28poGNh0)
Help with solution to Taylor series
 
My lecturer complains that there is many error inefficiencies with this code. Any help would be greatly apprciated #include <stdio.h> #include <stdlib.h...
[2 replies] Last: Usually it is a requirement for using Taylor series to approximate the... (by Chervil)
can i use a[-1] to refer to the last member?
 
can i use a[-1] to refer to the last member? i am just used to this .. however..i got something odd.. int t=432; int a ; printf("%d",a[-1]);// I got 432...
[4 replies] Last: int& operator (int index){ return v[ (index%size+size)%size ]; } ... (by ne555)
Unable to start Program?
 
I want to get started on C++ programming at a basic level on my Windows 7 laptop, I have VB Express 2010 downloaded, but whenever I create a project and run it,...
[2 replies] Last: I too had same problem when i started like you ... do these two thing... (by closed account 4jzvC542)
by jkevin
Operations with 2D arrays
 
I got a little problem. Its not a school assignment I am trying to wrap up an online tutorial assignment on 2D arrays. Every time when I compile my code it just...
[5 replies] Last: If you defined the array as int A , then the following function dec... (by vlad from moscow)
how protect against char array input out of bounds
 
Im trying to write a chess program. its supposed to take 4 characters as input from the console. so for example a2a3 to move the pawn from the bottom left up on...
[7 replies] Last: The c style getline has a length argument: http://www.cplusplus.com/re... (by Lowest0ne)
Classs in C++
 
I have created these classes and used code::block to compile them but there is a "undefined reference Rectangle::setWid()" "undefined reference Rectangle::setLe...
[2 replies] Last: Your other thread is here: http://www.cplusplus.com/forum/general/1084... (by LB)
by aggsyb
Question about ctime for date as a string?
 
I have never used ctime but I would like to able to first of all take the date as a string and use it as a pathname. For example in my program I open all files ...
[4 replies] Last: Thanks worked great :) , quick question though with strftime (buffe... (by aggsyb)
by jkevin
Clean the screen
 
Can someone tell me the function to clean the screen in ANSI C++??
[1 reply] : I think article would be a good read for you: http://www.cplusplus.com... (by Zhuge)
by wawawa
command prompt doesn't hold
 
Hello, Anytime i write my code and it is to bring out an output, the command prompt just flashes and it doesn't hold for me to view what is on the command prom...
[1 reply] : Read the sticky: http://www.cplusplus.com/forum/beginner/1988/ (by xismn)
by stp777
Dynamically allocated names?
 
Hi, I'm using the new keyword to allocate variables but I want the name to be dynamically allocated as well. Is there any way to code that or will the compiler ...
[3 replies] Last: Andy - 'AND' combinations of size, shape, and color. Possible sizes ar... (by stp777)
What is the difference between if and else if
 
Hi there I was just wondering if some one could answer this question What is the difference between if and else if
[4 replies] Last: Thanks i got it now. Thanks Dich and congrats on the 10000 thats like ... (by closed account EwCjE3v7)
How to play a sound through specified playback device?
 
The topic pretty much says what I want. I would like to create an executable file which plays a sound from the playback device I want. For example, I want my mu...
[3 replies] Last: Is there some kind of guide how to do this? Here's an outline for ... (by Disch)
by Codeez
Best way for looping a menu?
 
Hi folks, as a simple project I was doing a (wait for it...) calculator. I use a do-while to function the menu and 'true' to infinite loop the process. User can...
[9 replies] Last: I have it setup so the switch calls a void function, when that finishe... (by Codeez)
August 2013 Pages: 1... 3031323334... 51
  Archived months: [jul2013] [sep2013]

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