Beginners - January 2011 (Page 27)

easy question related to reading and scanning
 
hi i am not an expert in c++ nor do i know how to use windows forms application in c++. the thing is that i was able to produce in the windows forms applic...
[1 reply] : because you're saving the entire page (from what i understand) to a te... (by closed account 4Gb4jE8b)
Console Program just stops
 
Hey all! So basically what happens is I run the program and when it gets to the line with all the stars, it just stops. It doesn't exit or crash, it just sit...
[6 replies] Last: Wow, yeah, infinite loop was the problem. What a fail. I had everythin... (by auroraborealis)
cout not working
 
I'm making a program to print out dates between 10/8/10 and 1/14/11 because I'm lazy. This code compiles but when I run it, it does noting. #include <iostream...
[2 replies] Last: SHIT! haha I thought I had that as 13. Thanks! (by tehrealbinglebob)
by Qsirk
What would this do?
 
I came across this code could someone tell me what would it do? #include "hudda.h" using namespace std; int main() { cout << "including Vec...
[2 replies] Last: there is no standard huda.h . So what the code does depends on what's ... (by nimitzhunter)
A question about values in member variables
 
In my program, I have a class with two subclasses. The superclass has a function that adds the value of its two private member variables and assigns it to a pro...
[9 replies] Last: yes (by hamsterman)
About Vector Elements.
 
When a new element is added to a vector, does it create the element on the stack or on the heap?
[2 replies] Last: Thanks filipe! (by closed account zb0S216C)
by Kyon
Binary
 
I'm being really stupid, can't get the code to print the binary equivalent. This is what I have ( I get a segfault ): void ToBinary(unsigned u) { std::v...
[8 replies] Last: Weird. I've got better performance with: void ToBinary(unsigned u)... (by ne555)
by Crutoy
Encryption
 
Hi another exercise which im having problems with. In this challenge im given a four digit integer and encrypt each digit as follows. Replace each digit by the...
[5 replies] Last: I dont know why i over complicate things. Thanks its just that this ch... (by Crutoy)
simple class
 
hello, i'm still beigner for classes in c++ now i'm trying to write a simple university system which is to create student,subject...etc now i want to c...
[9 replies] Last: on modified code above, you will have data packed in an array , look t... (by hasula)
10 book challenge
 
I just started something called the 10 book challenge. I'm going to attempt to read 10 c++ books to really refine my knowledge on the language. While reading, ...
[11 replies] Last: I would exercise caution when reading other people's code. A vast maj... (by jsmith)
Type-Casting.
 
I have read about type-casting with these operators: reinterpret_cast< TYPE-ID >( EXPRESSION ); dynamic_cast< TYPE-ID >( EXPRESSION ); static_cast< TYPE-I...
[5 replies] Last: The difference is that static_cast does not check whether the output i... (by Kyon)
by wasabi
Inaccessible conversion?
 
I'm running into a compile error that I'm pretty sure I know the solution to, but I'd like to have it cleared up first: error C2243: 'type cast' : conversio...
[2 replies] Last: Yep, that was it. I accidentally forgot to put the public modifier b... (by wasabi)
Beginner programmers (1,2)
 
hello i was just wondering if anyone would like to join Lithium Designs. There are currently only two of us and were beginner programmers but we are writing a t...
[28 replies] Last: Sounds great! I'd love to be part of a game development team, if you'd... (by Davitosan)
by luke12
command prompt + gnuplot
 
I just got dev++ which is easy to compile and run, but how do I run from the windows command prompt in windows xp. I also need to plot some functions like basi...
[1 reply] : First, if you chose "Console Window Application", the compiler might h... (by closed account N85iE3v7)
Listing contents of a directory.
 
What i want to be able to do is to search the contents of a directory and then display only those contents that end in .txt. I know that the common header for d...
[6 replies] Last: To all of you, thanks for the help. I was able to do it as so: voi... (by closed account 4Gb4jE8b)
Design questions - return pointer or not?
 
I've written a resource management class for SFML so that I can avoid worrying about handling my images/sounds/etc and dump responsibility on it. Right now, ...
[5 replies] Last: np When I get home from work (and if I remember) I'll show you the ... (by Disch)
by Tyyrus
Some Game Programming Questions
 
Hey all, I'm going to start out by saying that I know I'm just a very beginner at this. I'm trying to develop my skills by working on a console-based text ga...
[9 replies] Last: Disch: I partly agree with you - but only partly. I think there's some... (by Metallon)
Data table entry
 
Hi there I'm completely new to programming but I need to compile so data for my research. I've been gong through some of the tutorials but it would be easier if...
[no replies]
ifstream with VC++ 2010
 
Hi, Really obvious question I hope. Had a look around but I guess it's such an obvious thing nobody else in the world could get this wrong! I did a fair b...
[5 replies] Last: how are you making the file? unless something is wrong with other p... (by Seraphimsan)
Separate settings file?
 
I've been working on a means to load and save to a settings file. Here's what i've come up with so far generally speaking... in int main() with headers correct...
[18 replies] Last: The file was opened correctly, and i don't know why it made a differe... (by closed account 4Gb4jE8b)
January 2011 Pages: 1... 2526272829... 42
  Archived months: [dec2010] [feb2011]

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