Beginners - December 2008 (Page 6)

Structures Unions and classes
 
Hello, I am a student in first year of engineering and I have this topic in my semester I would just want to know the basic difference between the three and w...
[7 replies] Last: A good use of a union is in connection with structs and bit fields (at... (by Corpus)
cant get program to work
 
HELP I am using Bloodshed's dev c++ and need help with this program before 7:30 tomorrow! this is my code and i am trying to make a program that can check if a...
[6 replies] Last: thanks i will ry and i will get ack 2 u on how i did any more help wo... (by sherb38607)
overloading *=
 
Sorry to bombard you guys with questions. I'm getting an error that seems to stem from overloading *= and I am stumped. Here is the function: void times...
[5 replies] Last: Man, I totally screwed up the meaning in my previous post. (by helios)
Recursion
 
Hi I am new to cpp i am enrolled in a high school cpp course, I have only been in it for half a semester and I really can't get the grasp of recursion I mean I ...
[3 replies] Last: well i get that function but well I don't understand why I can't compr... (by polarisdrivr)
Namespace collision?
 
Okay, I'm getting errors when I try to compile my program. I think I know what the problem is, but I'm not sure what is the best way to fix it. The program is...
[4 replies] Last: OK, that makes sense. I think I understand your solution now too. I'... (by Fluffy Bunny)
by OGNNEC
Bizarre memory sequence of array elements
 
This is the output from a simple program I wrote to dump memory. The purpose of the program is to help me understand what C++ is doing for (to) me with respect...
[3 replies] Last: No. You assigned 0x7172737A to the int. You assigned it through the... (by helios)
Taking from a file and storing it in two seperate places?
 
Is there a way to take input from a file, and if each line begins with $ it gets stored in one set of data, and if it begins with @ it gets stored in another? ...
[14 replies] Last: I already have most of the basics implemented, but thanks for the thro... (by demosthenes2k8)
by uans
Binary files
 
Greetings, I am new to writing programs. I used examples form this web site to try to learn how to write in/out of files. Program: #include <iostream>...
[no replies]
Lil he*p with associativity and precedence here...
 
int x=4,y=9,z; z=(++x)+(--x)+(x++)+(--y)+(y++)+(--y); cout<<z; Why is the output of this 35 ? Please tell me... when I evaluate like this, i get 37. where...
[7 replies] Last: Ok, I thought that there was something that only I didn't know about ... (by rockinruler)
by elpis
"typeid" counterpart
 
#include <iostream> #include <typeinfo> using namespace std; class CBaseClass { }; class CDerivedClass : public CBaseClass { }; int main() { ...
[6 replies] Last: Got it. We have to enable the RTTI option by including the /GR switc... (by elpis)
reading strings from a file
 
HELP! This program is due on Monday. I've been at it for a week now. Can seem to get it running correctly. Tne program reads text from a file and uses functions...
[2 replies] Last: It's supposed to print the original string on one line with the length... (by tyky9808)
What is a yellow blinker along the mouse pointer
 
I am using turbo c++ and I want to ask what is a yellow cursor blinker. How to turn it green. With this when i edit my code then tyhe succeding alphabet gets ...
[1 reply] : Perhaps you have the INSERT key on your keyboard toggled to ON? Try hi... (by CheesyBeefy)
by sari
error in the for loop
 
I am attempting to write a program that searches through an array for names but the loop appears to not even be executing here is the code: #include "stdafx...
[5 replies] Last: Ok thanks (by sari)
Assigning values from another class
 
Hello all, first time forum user so this is all abit intimidating and been learning C++ for a few weeks now. Been trying to create a small console program ...
[1 reply] : I don't really know why you have another class to basically "join" the... (by firedraco)
by wachtn
how do I use special characters
 
I am working on a blackjack game where I want to show the cards like this: A♣ for the ace of spades. Ive tryed copy/paste and "/U2660". neither worked. How ca...
[9 replies] Last: Yeah, the first 16 or so are special characters, they do beeps, newlin... (by firedraco)
by wachtn
How do I use images
 
I am a beginner programmer. Until I learn to make graphical programs, is there a way to use small images/sprikes in my text programs? I am using Dev C++ to ...
[3 replies] Last: Thank you G0dwyn, Those look like what I need. At first glance SFML lo... (by wachtn)
by g0dwyn
[SOLVED] Iterator nonsense (pretty basic question)
 
Hi everyone, I can't seem to declare iterators with custom data types. Whenever I have a line such as vector<C1>::iterator it; I always get an error...
[4 replies] Last: jsmith wins! Apologies, should've mentioned that beforehand. Thanks ... (by g0dwyn)
by gAaRa
How to display date ?
 
How can i just display the current Date WITHOUT displaying the time ? Thank You.
[16 replies] Last: Oops. (by helios)
[SOLVED] Copying (and downsizing) dynamic data structures
 
Hello everyone, Here is an issue I can't quite see a cleaner solution of than a tedious one. I'm working on a networking library. At times I need to send ...
[10 replies] Last: Weird - I'd think it was dependent on the class implementation. Oh wel... (by Fire Button)
Turbo C++ 2006 Explorer
 
Has anyone here used Turbo C++ 2006 Explorer? If so, how does it compare against some of the other free compilers (ie: Dev-C++, Visual C++ 2008 Express edition...
[2 replies] Last: Thank you for your input. I found several reasons why I won't use it.... (by Fredbenz)
December 2008 Pages: 1... 45678... 17
  Archived months: [nov2008] [jan2009]

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