49,761 Topics

Member Avatar for
Member Avatar for Hawkpath

Hello, I'm currently in High School and looking for a career in programming, and my dilemma is this: Game programming or Software Engineering? I have heard the horror stories of terrible hours and bad job security in game programming. But I haven't heard much about software engineering. Please enlighten me. …

Member Avatar for geoffy0404
0
453
Member Avatar for yakovm

[CODE]#include<iostream> using namespace std; struct Base{ virtual void print(){cout << "Base"<< endl;} }; struct Derrived : Base{ void print(){cout << "Derrived"<< endl;} }; template< Base* arr,int size = 10> class Template{ public: void print(){arr->print();} };[/CODE] [CODE]#include "template.h" int main(){ Base *b = new Base(); Derrived *d = new Derrived(); Template<b> …

Member Avatar for mrnutty
0
115
Member Avatar for BlackPhoenix

I'm working on a project. It involves networked code, so I wanted to send it to a friend to test it with. I sent him only the .exe in my Debug folder, and it had an error on opening. It said something similar to "can not open because side-by-side config …

Member Avatar for BlackPhoenix
0
101
Member Avatar for Talguy

is there a short hand way of passing just a row in a 2d array into a function that accepts only 1d arrays. for example something like this even though I know that this doesn't work. I don't want to have to use loops to copy a row from the …

Member Avatar for Talguy
0
97
Member Avatar for renzo2k3
Member Avatar for meanace

Hi. Im making a program which uses an array from the main function and passes it to a function which displays a table. However i am having a problem with calling the function in the main. When i compile my program it shows error LNK2001 (unresolved external symbol). Thanks for …

Member Avatar for meanace
0
98
Member Avatar for khanalone1

Dear All, I have been stuck and confused while bringing changes in this program which i got from [url]http://www.dreamincode.net/code/snippet76.htm[/url] This program uses a simple 0xFACA character and adds and subtracts for doing encryption and decryption. Now what i want to use is asymmetric encryption technique or we can say part …

Member Avatar for khanalone1
0
521
Member Avatar for yakovm

Hello Can define template<int n> class myClass{...........} can I define template <Base *b> class myTemp{ ............. } while class Base is defined properly. Thank you.

Member Avatar for mrnutty
0
67
Member Avatar for bil050

Hi, How can I define template formal parameter as T*? I read in some textbook that if I define template with formal parameter T* then actual parameter can be of the type T1*,provided that T1 is derived from T Thank you in advance

Member Avatar for mrnutty
0
99
Member Avatar for dgr231

Hey guys, I am still pretty new to C++ and am completely self-taught up to this point. I am currently learning about try, throw, and catch statements for exceptions and am trying to incorporate this into my programs. I know that normally when you allocate new dynamic memory, if the …

Member Avatar for gotorightway123
0
1K
Member Avatar for picass0

i have problem trying to extracting the string from the text file. i knows how to read from the file but unable to extract the string which i want. i wanted to extract only the id out, how can i do it? my text file format is below: [CODE]user:password,id,office[/CODE]

Member Avatar for anupa
0
1K
Member Avatar for yonghc

After a brief and rocky relation, I have had jilted Borland 5.02 and found new love for CODE::BLOCK only to discover a while ago that Borland could compile a code snippet which CODE::BLOCK couldn't. In the working program produced below, CODE::BLOCK gave out an error message and failed to compile …

Member Avatar for yonghc
0
431
Member Avatar for Alexar93

Hi! I've started to write my kernel in assembly but I think its far too complicated! Instead I would like to try to write it in C/C++. I'm new to these languages but i've written alot in VB and C# so I don't think it's going to be too hard …

Member Avatar for Salem
0
202
Member Avatar for redserpent7

[B][COLOR="Red"]Important:[/COLOR] [COLOR="Green"]Please read the whole question before answering.[/COLOR][/B] I would appreciate it if someone can guide me to the new MS APIs necessary for modifying/controlling the Windows 7 Action Center. What I need to do is integrate the Backup notification messages in my application which is a backup application in …

0
144
Member Avatar for anthony1990

[QUOTE=tatumkay;313662]just started c++ class.... we use the absolute c++ book after starting to read this book i decided to buy c++ for dummies and borrowed a book titled object oriented programming with c++ (book is from india written in english) i still have no idea where to start on these …

Member Avatar for Sky Diploma
-1
158
Member Avatar for pinsickle

I am writing to a file the ios fixed and show point works fine through out the loop but ios left only works on my file from the second set of data on. The first set of data still stays shifted right. Here is the code, thanks in advance. [CODE]void …

Member Avatar for kvprajapati
0
94
Member Avatar for SeanBlack0000
Member Avatar for D.JOHN

To all the c++ experts, I have some doubt on how does the convertion works. If for instance, I want to convert a hexadecimal eg. 199 to to decimal, I use printf("%d",199); but what if I want the hexadecimal 199 to be displayed in binary? What must is use?

Member Avatar for D.JOHN
0
208
Member Avatar for F2guy

I am having a problem compiling my code. The following error is displayed: make mpixlcxx -c -O3 potentialqueue_local.cpp mpixlcxx -c -O3 eventqueue.cpp "eventqueue_remote.h", line 20.36: 1540-0063 (S) The text "eventqueue_t" is unexpected. make: *** [eventqueue.o] Error 1 I am fairly new to C++ and not sure if the problem is …

Member Avatar for F2guy
0
572
Member Avatar for kernel>panic

I am trying to add a user password protection to my program but it does not work it will quit if password is right or wrong. The file name "setpCS4.dll" is the file the password will be stored in. Thanks for your help.

Member Avatar for VernonDozier
0
676
Member Avatar for mrnutty

I haven't ever used CLA so I had to ask. For simplicity sake, Say I have a program that takes in at most 5 arguments. The arguments from args[1] - args[4] has to be some numbers. These number will be used for something, say to calculate its average. How could …

Member Avatar for mrnutty
0
171
Member Avatar for jBat

Hi, I don't know why the member variable of my class is getting a wrong value. I just want to copy a char array to member variable that is also a char array. What is wrong? Thanks! [CODE]// constructor filewatcher::filewatcher(char filename[]) { // filename to watch strcpy(this->_filename, filename); }[/CODE]

Member Avatar for jBat
0
74
Member Avatar for thenewbie

so here the thing im practicing c++ just started all this is in cmd :P and im making combat simulator as of a project on another forum that i guesed good practice so im doing it but i decided to make 3 classes :archer , mage , barb and i …

Member Avatar for DarthPJB
0
148
Member Avatar for kz07

Is there any way to convert String s = "1234" to int s[4] = {1,2,3,4}? and how can i check if it does not contain any non-numeric characters? thanks=)

Member Avatar for kz07
0
5K
Member Avatar for foraswim

. . . . . . . Hi, I am as they say a beginner I need to create a pointer to a linked list as a member variable. I have to tried todo this a number of ways but i dont think i understand the terminology. i have a …

Member Avatar for VernonDozier
0
121
Member Avatar for pinsickle

Hello, To start thanks in advance for any help. Now I will note this question is about homework so I just want help to get started not everything laid out for me. Ok here is the deal. I have a class called StudentArrayV4, it is a dynamic array of pointers. …

Member Avatar for pinsickle
0
155
Member Avatar for smco9

This is suppose to be a simple selection sort but I think I'm missing something because my output isn't completed sorted right. [CODE]void SelectionSort(data list[], int length) { int index; int smallestIndex; int minIndex; data temp; for( index = 0; index < length; index++) { smallestIndex = index; for(minIndex = …

Member Avatar for vincent2085
0
187
Member Avatar for lone_4

Hi there... Can anyone please help me by explaining me the Gauss Elimination code and how each of them function? I really have no idea how to do it...

Member Avatar for Salem
0
37
Member Avatar for Robes

Hello. I have been working on a program that deals with array of structures. In this function, category report, i'm taking my structure and reading it through the a loop. Specifically, i'm reading category and price. In that loop there's a loop for the five categories. Basically, when it finds …

Member Avatar for VernonDozier
0
91
Member Avatar for ANNICO

Hello, I am new the the C++ scene and to this website. Can someone assist in Pseudocode for take-home pay? Thank you.

Member Avatar for vmanes
0
24

The End.