General C++ Programming - October 2010 (Page 18)

by RC325
Template Issues.
 
I am trying to understand how to pass a class as a Type parameter to another class. I can't seem to figure out what the issue is .. I get the error c:...
[3 replies] Last: What is meant by the paramater list? A variable of a template class... (by guestgulkan)
output is blank :(
 
I switched from gotos to some voids. It was working before, I can't figure out what is wrong. Every time I debug it just displays "Press Any Key To Continue..."...
[5 replies] Last: Update: something is wrong with this code. It's supposed to find if ... (by LittleQuick)
Creating a Powerful AI (1,2,3,4,5,6)
 
I'm attempting to make the first AI that can actually think about sentences written to it. First of all, I want to make my AI some what like http://www.wolfra...
[102 replies] Last: i know, i know... i just couldn't help it... ok, but now seriously! NO... (by sargon94)
A *LOT* of trouble!!
 
I have had SOOOOO much trouble with this piece of code. It won't check the file and then take the text from the file: (take note this is only part of the progra...
[4 replies] Last: It's a project me and 3 other programmers have been working on for 5 y... (by D Technodude)
[] operator
 
Hi. I wrote a class like below: class MyClass { private: char Array ; . . . public: . . . }; How can I Access Array elements...
[6 replies] Last: Well it's like I said. There are ways, but you generally shouldn't. ... (by Disch)
by acDz
give me an idea please
 
i dont know already this king of topic beacause my instructor is always absent print a pyramid read a number and print a pyramid that has that size example ...
[11 replies] Last: ... Or just try that search box at the top of the page! (by moorecm)
it never gives wrong date of death or birth!!!!
 
#include<iostream> #include<conio.h> using namespace std; void main() { int monthb,dateb,yearb; cout<<"Jnab plz enter ur date of birth="<<endl; cin>>d...
[1 reply] : STOP double and cross posting please!!! (by cnoeval)
by hannes
Complex class problem
 
hi, I'm making my own base c++ classes to use in couple of applications. Now, i'm working on my own Complex class for managing complex numbers, but there is ...
[1 reply] : delete lines 21, 22, and 23. for that matter, delete the whole destru... (by jsmith)
by GaryJJ
pluggin for a game
 
I already posted this issue in the beginner forum. When the compiler output was required, I posted it. But since then there was no replies. So, maybe this is th...
[no replies]
Field 'data' has incomplete type.
 
I am trying to overload two operators in my class namely the reference operator and the pointer operator. Here is how I overload the two operators: refere...
[2 replies] Last: I don't think you need to put an IdNode inside your class because your... (by Galik)
by ChrisC
Having problems sorting an array
 
So, for some reason I tried posting this in the beginners forum, but it wouldn't let me. So I'll post it here. I am trying to sort a 2D array via selection s...
[1 reply] : The first thing I would recommend is getting rid of your global variab... (by PanGalactic)
unsigned
 
what is unsigned used for???
[2 replies] Last: As Albatross says, there are lots of values where negative numbers mak... (by PanGalactic)
Composite Class
 
Don't know why I keep getting error messages. This is first the error message: 5 F:\DPR226\Homework\Customer\Customer.h:3, from main.cpp In f...
[3 replies] Last: I figured it out : ) thanks coder777 (by yingkang)
Constructor overloading with optional arguments
 
I am working on a "Name" class in which a name is composed of 3 "String" objects. This builds upon a previous exercise in which we created our own "String" cla...
[2 replies] Last: Thanks Athar! I moved the constructors into Name.h and it works as ... (by mcelgiraffe)
Signal clustering in pixel detector
 
Hi all I am relitivly new to programming. I work with silicon sensors, made of many thousands of pixels. Background: The pixels are very small and ve...
[2 replies] Last: Sorry if my previous post wasn't very clear, but you are correct in yo... (by dforshaw)
AES column mixing
 
according to here http://www.angelfire.com/biz7/atleast/mix_columns.pdf in page 3, it is stated that Now, we can add them together. As they are in bina...
[5 replies] Last: Dunno. But XOR's used here too: http://en.wikipedia.org/wiki/Rijndael... (by kbw)
Template Constructor?
 
I don't really know how to put it into words, but this is what I would like to do. It may seem counter-intuitive to 'limit' a template in this any case, but ...
[9 replies] Last: That's the access time for one element. If you're doing a lineal sea... (by helios)
anybody know otl_stream well?
 
I'm just trying to do a simple PLSQL select from an oracle table and the examples on the otl site aren't very helpful. basically I want to do: select colu...
[no replies]
openGL problem
 
hey guys.. help me out.. im new to sfml.. im using codeblocks and i've already set up the sfml library with codeblocks, it works fine. but when i try the code ...
[2 replies] Last: Add -lGL to your linker options. (by Kyon)
C++ Standards (1,2)
 
Hi there, What coding standards are most important to you? I'm doing a review and would like to get some feedback. Naming conventions, is m_ used these da...
[22 replies] Last: +1 to jsmith's original comment. As far as style goes, I think you ... (by kbw)
October 2010 Pages: 1... 1617181920... 23
  Archived months: [sep2010] [nov2010]

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