49,761 Topics

Member Avatar for
Member Avatar for vbx_wx
Member Avatar for mrnutty
0
99
Member Avatar for gallantlex

Firstly, Here's my code running in VS 2010 [CODE=c] #include <iostream> #include <fstream> #include <string> #include <list> using namespace std; class Student { friend ostream& operator<<(ostream&, Student); friend istream& operator>> (istream&, Student&); private: int stuId; string name; int gpa; public: Student(int, string, int); int getStudId(); }; ostream& operator<<(ostream& out, Student …

Member Avatar for gallantlex
0
962
Member Avatar for y2kshane

what is marco in c++ i have no idea about this plz give simple answer (im new to c++) thanx :)

Member Avatar for NathanOliver
0
60
Member Avatar for apple621

Write a function whose prototype is string NumberToName(int x); that returns the string of english name of each digit of number x. Using this function, write a main program that reads a positive integer number and prints the english name of each digit of that number in a single line …

Member Avatar for programing
0
128
Member Avatar for calamaris

Hi every one . in default cursor move from left to right how can i change direction of cursor in my program int main() { char tile[NO_OF_COLS][NO_OF_ROWS]; char ch1,ch2; int counter = 0; system("MODE CON:COLS=80 LINES=50"); gotoxy(35,25); do { cout <<"#"; Sleep(200); ++counter; }while(counter <=100);

Member Avatar for Ancient Dragon
0
38
Member Avatar for nocloud

I currently have two C++ programs. Program1 takes some input and prints to screen a float. I can get Program2 to call Program1 using something like: system("./program1 input"); Currently, Program1's output goes to screen. Is it possible for Program2 to read Program1's output and use it? The only way I …

Member Avatar for Ancient Dragon
0
90
Member Avatar for Duki

For whatever reason, I can't figure this out. I'm getting this error: [quote]error C2082: redefinition of formal parameter 'user' [/quote] In this code: [code=c++] #pragma once #include "Standard Libs.h" #include "Ability.h" #include "Spell.h" #include "Item.h" class Adventurer { private: string name; int level; int xp; int gold; int attack; int …

Member Avatar for Duki
0
98
Member Avatar for frogboy77

Hi, total beginner here, trying to learn at home. Just thought i'd get that in. if i have a number eg 123 trying to figure out a way of calculating all the possible cominations 123 132 213 231 312 321 can do it with pencil and paper but don't know …

Member Avatar for frogboy77
0
80
Member Avatar for ramesh.goli

Hi, Can cany one explain me virtual table architecture & functionality internally?

Member Avatar for Frederick2
0
44
Member Avatar for cgcgames

I am Working on Conecting to a database in windos forms C++. I use MVC++. here is a link to my DB file so people can see what i have tried to do in the DB. [URL="http://www.mediafire.com/?yfr52oqcknakk9g"]http://www.mediafire.com/?yfr52oqcknakk9g[/URL] you need access to see this. i have finaly figured out how to …

Member Avatar for cgcgames
0
197
Member Avatar for ftl25

Hi folks, I am writing an application in C, but I have the OOP functionality that C++ provides. (i.e., I can only use C library functions). I have a function as follows in TSL1.cpp: [CODE] void TSL1_ExecuteTest (char *sCmdInt[]) /******************************************************************************* Name: TSL1_ExecuteTest Description: This function executes tests from current TSL1 …

Member Avatar for ftl25
0
183
Member Avatar for mahsa.ehsani

i want code of diomand program..you know a code that give us this: 1 123 12345 123 1

Member Avatar for Nick Evan
0
29
Member Avatar for tehmarto

Hello, I wanna write an anticheat for a game. So it seems that the cheat itself is editing the memory (for example movement speed). So what I'm gonna do is make my anticheat tool to scan the memory offset and compare the value in the memory to the normal value …

Member Avatar for tehmarto
0
237
Member Avatar for DBlue

Hi there. I am just learning vc++ and it's all new to me, so I need a bit of help. This could be a daft question, but where do i put my user code to initialize a USB port? I can see where the button click functions are, but where …

Member Avatar for mike_2000_17
0
122
Member Avatar for Haxifix

My friend and I were making a pac man console game in C++, and we can't seem to get the AI we wrote for our ghosts to work properly [code] #include <iostream> #include <Windows.h> using namespace std; struct Player { int x, y; Player() { x = -1; y = …

Member Avatar for Haxifix
0
930
Member Avatar for dadam88

if (map[xPos][yPos] == map[xTPos][yTPos]) this works and does what I want it to do. But when I increase the traps. Multiple traps "5" display on the grid but only the last one (assuming) that is created will trigger my if statement. I was trying to add map(i)[xTPos][yTPos] but I'm having …

Member Avatar for Fbody
0
269
Member Avatar for pdk123

Hello All, I have the following doubt: Currently both the ipv4/ipv6 headers are such that they donot result in any padding. So it allows us to typecast the input stream to the ipv4/ipv6 header c structures. But don't you feel that this code is error prone ? [CODE]int Comp::getfield(uint8* pInPktStream) …

Member Avatar for mike_2000_17
0
159
Member Avatar for freeeasycoupons

Please suggest me from where I can get the links and free tutorials for c++ .

Member Avatar for joshalb
-1
90
Member Avatar for denguru4

Hi, i just finished my program but i am having problems on how i will create a setup that will install my program to another system. i use both microsoft visual studio 2008, and 2005. i will appreciate it if any one can help me. thanks

Member Avatar for joshalb
0
97
Member Avatar for dflatt

I seem to be having a few problems with pointers at the moment. At the moment I have a char pointer as a parameter in one class. The function is being used in another class and is being used to get an input file. [CODE] ClassA* CAptr = new ClassA; …

Member Avatar for dflatt
0
120
Member Avatar for mrsahil30

I need a source code of the following program in object oriented programming language.. (turbo c) write program that will demand password for three time. after that user can access the data of student of a class by entering name or roll number of the student Suppose a class has …

Member Avatar for Nick Evan
-4
196
Member Avatar for sana_moi

hellow!! i mworking in c++ managed on vsual studio c++ 2010 express edition but when i get the text from a text zone and use it in an other traitement it's gve me tis error: de 'System::String ^' en 'System::String ^[256]' nd there is my code: private: System::Void BGENER_Click(System::Object^ sender, …

Member Avatar for sana_moi
0
170
Member Avatar for Stefano Mtangoo

Hi, Please help me spot where I go wrong. I cannot understand why the error. The Code with error and full error are below. Thanks Error:[COLOR="Red"] loaddll.cpp:6: error: invalid conversion from 'void*' to 'void (*)(wxString)'[/COLOR] lines 5, 6 and 7 [CODE=C++]typedef void (*helloSteve)(wxString);//takes string and Shows it! helloSteve myFunc = …

Member Avatar for Stefano Mtangoo
0
1K
Member Avatar for unexpert

Hello. I'm having a bit of trouble with my programming. I'm giving a signal to my board and it will detect and display the maximum and minimum point of the signal wave. However, I'm not really sure if I wrote my codes correctly. Also, I'm getting this error : "operator …

Member Avatar for unexpert
0
160
Member Avatar for michdd

I have a question about how to clean up certain thing, or if it's even necessary at all. Say I have a vector of objects. These objects have members that are pointers. When I remove one of these objects from the vector will everything be cleaned up automatically? Or do …

Member Avatar for mrnutty
0
80
Member Avatar for dadam88

If I use classes, will this reduce my lines of code? Is this a good way? Should I use a header for certain functions? Thanks ( Just wondering, thanks [CODE]/* Ask how many sides a shape has, go to that shape, ask for values to do questions about the shape …

Member Avatar for dadam88
0
95
Member Avatar for darkangel07

a1x1 + b1x2 + c1x3 = d1 a2x1 + b2x2 + c2x3 = d2 a3x1 + b3x2 + c3x3 = d3 create a c++ program that will accept the values for a,b,c,d and determine the values for x1, x2, x3. Display the values for x1, x2, x3... need help now!!!! …

Member Avatar for tesuji
0
144
Member Avatar for rowley4

In my code, I need to enhance the List class to throw an exception whenever an error occurs. I need to use exception specifications for all functions. I know it would be something like if .... throw (OutOfRangeException) I am just not sure where and how to incorporate this. Please …

Member Avatar for mrnutty
0
93
Member Avatar for AdventGamer

I've been working with linked list and i'm currently trying to make my copyList template function work. It should return the head of the new list. Could someone give me some advice on how to fix it, currently i get no output when i try to print the copied list. …

Member Avatar for mrnutty
0
1K
Member Avatar for mrkaran

if i have two strings say: string str1,str2; then how can i compare them by using strcmp function?

Member Avatar for NathanOliver
0
100

The End.