51,593 Topics

Member Avatar for
Member Avatar for sTorM

hello, I have problem with plus. i couldnt get right total number! And also I ld to know how to store all list of total number. coz i ld to compare them wh is biggest and smallest. [code] int n = 0; cin>>n; //vector<int> v; //int scores[n]; for ( i …

Member Avatar for WaltP
0
83
Member Avatar for gamesnmore

Hi There, I am in the process of creating a game based around the board game Diplomacy. anyway, I keep getting the following errors, and I have no idea of how to solve it. AlliedConflict error LNK2022: metadata operation failed (80131187) : Inconsistent method declarations in duplicated types (types: frmGameScreen; …

Member Avatar for Xorn27
0
2K
Member Avatar for sTorM

Hi all, How can make the output not to repeat again for many players. here is part of code. [code] struct { int face; unsigned int value; } card[13] = { {'2', 2},{'2', 3},{'2', 4}, {'5', 5},{'6', 6},{'7', 7}, {'8', 8},{'9', 9},{'X', 10}, {'J', 13},{'Q', 12},{'K', 11}, {'A', 1} }; …

Member Avatar for Ravalon
0
111
Member Avatar for l36963

Hi, I am pretty new to C/C++, and would like some tips on writing the code fo my first 'try' I am trying to write a programme that marks exams and such and calculates grades. I am not looking for somebody to write it for me, well if you want …

Member Avatar for WaltP
0
231
Member Avatar for sTorM

hello, pls find out why code is not work for solitaire game... Thanks in advance.:rolleyes: code: [code=cplusplus] #include<iostream> using namespace std; /*****CLASS PLAYING CARD*****/ class PlayingCard { private: int rank;//integer 1-13 int suit;//integer0-3 char color;//red('r') or black('b') public: PlayingCard(int,int); PlayingCard(); void display(); ~PlayingCard(); const static int diamond; const static int …

Member Avatar for John A
0
225
Member Avatar for geek

Hello everybody, I have a program in c++ (console) that takes in numbers...I want to write another program to open this program and send numbers to it automatically...instead of me typing this numbers and pressing enter....how can I do this?? Thanks

Member Avatar for Ancient Dragon
-1
171
Member Avatar for vatsal17

I want to write various programs using ' Loops' in C language but new to C .please solve my query

Member Avatar for TylerSBreton
0
85
Member Avatar for Wreef

Hello Everyone, I was just wondering if people could tell me what they think is the best way to learn C++, and link to some tutorials maybe? Recomend a book, ect. Maybe I havn't found any good tutorials....But the ones I have seen aren't very good. Help Apreaciated. Brendan.

Member Avatar for WoBinator
0
647
Member Avatar for DynamitMsk

Hello, I'm working on a stock trading assignment. I have developed the algorithm for trading, and now I need a little help on getting the data from a server. There's a server that replies to the following request: servername stockcost <stockname> and I assume I can use it like: int …

Member Avatar for John A
-1
135
Member Avatar for catty50

hi, I am new to programming ! I am just writing match game ! I am trying to move the letter to concerning place .. so I created two dimen-array for it .. but I have problem with moving those to concerning place .. here is my some code of …

Member Avatar for Ancient Dragon
0
132
Member Avatar for anjutalks

Hello, i really need code for creating a binary search tree from pre-order and post order traversals.......and print its output in post order and level order traversals....pls help...

Member Avatar for iamthwee
0
63
Member Avatar for nuwan243

09)What is the purposes of register used in c++.in c++ help they are used more examples and they are used memory addresses……How can we find the specific functions of memory addresses used in programming?Ex int() and int86() functions….. [B]#include<stdio.h>[/B] [B]#include<iostream.h>[/B] [B]#include<conio.h>[/B] [B]#include<dos.h>[/B] [B]#define VIDEO 0x10[/B] [B]void movetoxy(int x, int y)[/B] …

Member Avatar for Ancient Dragon
0
154
Member Avatar for sTorM

Thank for most who helped me to find out random fun before.. I am new to programming .. I just writing simple twenty one game.. Now my random out is like that ... k 5 6 q j .. mix char and int together randomly.. it might be suck..! now …

Member Avatar for sTorM
0
104
Member Avatar for nuwan243

Hi everybody, How to crack a password of a simple C++ Programme? Please give me a simple code sample????????? heres to, Nuwan

Member Avatar for jwenting
0
317
Member Avatar for sTorM

Hi , I ld to print out characters and intergers together randomly? for example .. k 10 5 r 3 .. etc.. But I set 4 char and 10 int(frm 1-10) .. pls help me out thz in advance!:)

Member Avatar for sTorM
0
128
Member Avatar for D.Mark Phillips

Could someone please advise me on a reasonably priced simple graphics library that I could add to the standard C++ functions. I would also like to add a new compiler with a book containing all the latest functions as well as backward compatibility with the older styles. I need lots …

Member Avatar for John A
0
75
Member Avatar for nuwan243

10)Can we use C++ codes to change the voltages of mother boards? How can change this ? simple codes please? How can we check whether that changes are configured to the mother board or not? Is there softwares?

Member Avatar for John A
0
82
Member Avatar for nuwan243

05)What is the purposes of the Followings? These are located in device manager list………………Under [B]System devices[/B] [B]a) [/B][B]ACPI Fixed Feature Button[/B] [B]b) [/B][B]ACPI Sleep Button[/B] [B]c) [/B][B]Direct Memory Access Controller[/B] [B]d) [/B][B]ISAPNP[/B][B] Read Data Port[/B] [B]e) [/B][B]Microcode Update Device[/B] [B]f) [/B][B]Microsoft ACPI- Compliant System[/B] [B]g) [/B][B]Numeric data Processor[/B] [B]h) [/B][B]PCI …

Member Avatar for John A
0
137
Member Avatar for nuwan243

11)Please give me a code sample to eject cd rom and close it…..in c++…..???

Member Avatar for iamthwee
-1
81
Member Avatar for nuwan243

12) what are the I/O ranges?funcitons of it? is it useful to a programmer ? if How ? 13) can we use a C++ programme without windows? I mean can we use C++ programme in MS-DOS mode? Can we run a C++ programme before windows boots?if can how to do …

Member Avatar for Ancient Dragon
0
167
Member Avatar for smaran

hi all, hope you guys are doing fine. i need a help. can any of you tell me where I can download free ebooks. i am particularly looking for "data structures in c++ by tanenbaum". please help me. thanks

Member Avatar for Eko
0
160
Member Avatar for gabs

hi! I'm kind of new to this site, but I saw some of your guys posts, and man, you are brilliant. so I hope someone can help me as well. I am doing a vc++ program, and I'm using many comboboxs. how can I tell between them? I mean, I …

Member Avatar for gabs
0
104
Member Avatar for GreenDay2001

Well, I am writing a program in which i need these global variables. However when I compile, ile I get a message To Much Global Data in This File. I have no other option, i.e. use pointers and all, cause there are certain restrictions to as per my teacher said. …

Member Avatar for Dave Sinkula
0
178
Member Avatar for GreenDay2001

I have just started with Visual C++ 2005 Express Edition. I have also installed Platform SDK with it. I have few questions: 1. I couldn't see line numbers, or gutter on the editor. How could I toggle gutter/line numbers. 2. I saw the include directory of the VC. I saw …

Member Avatar for GreenDay2001
0
107
Member Avatar for Boldgamer

[COLOR=#000000]Hello everyone. I am interested in learning C++ and am looking for a good book to start out with. I read the topic in the sticky in this forum and have narrowed my choice of beginner books down to either [/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]A) [/COLOR][COLOR=#000000]C++ How to Program by [COLOR=black]Harvey …

Member Avatar for may4life
0
169
Member Avatar for l2u

Hello.. How do I get smart pointer from pointer address? For instance: [code]class someclass { public: char test; }; typedef boost::shared_ptr<someclass> someclass_p; //smart pointer int main() { someclass_p testp = someclass_p( new someclass() ); ULONG_PTR uptr = (ULONG_PTR)testp.get(); //so I have pointer address here //How do I get testp from …

Member Avatar for Ancient Dragon
0
96
Member Avatar for saqib

hello guys, the following code is taken from my senior. i am unable to under stand its logic . because i am new in graphics can u guys kindly explain its logics thanks. [code] #include<graphics.h> #include<conio.h> #define left 0 #define top 0 #define right 639 #define bottom 479 #define radius …

Member Avatar for saqib
0
144
Member Avatar for bento

hello friend, i am a new programmer, i have probem use gotoxy in visual c++, help me please :cheesy:

Member Avatar for Ene Uran
0
368
Member Avatar for Lynqu2

OK, I' m just starting C++, I've written a few really simple programs, like calculations and displaying stuff etc. I've used Borland's Turbo C++ 4.5 and DEV C++ to write and compile few of theses progams, I run a Windows XP home OS. The Question I have is: Why, whenever …

Member Avatar for ~s.o.s~
0
164
Member Avatar for tech291083

Hi, I have just opened the Kdevelop interface to make my first C++ program. I think all I need to do first of all is click on the Project menu and then select New Project. Then click on the All Projects tab. This shows two options C and C++. So …

Member Avatar for ~s.o.s~
0
710
Member Avatar for tech291083

Hi, I am using Fedora core 5 32 bit Linux. Just wrote this small C++ prgram and saved it as test.cpp on the [URL="http://forums.devshed.com/#"]desktop[/URL] and then tried to compile it using the terminal with the following command [B]gcc test.cpp - o test [/B] but it is showing the following message …

Member Avatar for tech291083
0
188
Member Avatar for dr.it

i new with programming or maybe i'm confused!! with many definations of microsoft : 1- explain these things plz and diffrences between them: C++/VC++/C#/COM/MFC/WIN32API 2- i want to learn a cross-platform language which is more low level what is the best choice 3- which one is more low level VC# …

Member Avatar for TylerSBreton
1
239
Member Avatar for cdwind

I'm trying write a program with a image shell(?),like a real software. this is my simple code and how can i do.. [code=c] #include <iostream> using namespace std; struct student{ char name[20]; int ID; int score; }; int main() { cout<<"How many students in the class?\nInput the number:"<<endl; int n; …

Member Avatar for iamthwee
0
118
Member Avatar for JRM

hello all. This program is just a collection of functions to demonstrate various programming principles. What I'm saying is that don't worry about the overall function-it ain't all that... One of the principles is using a 'non member' friend function to display the output. I added this to the public …

Member Avatar for JRM
0
4K
Member Avatar for cdwind

I'm learning C++ language now but i don't know which IDE should i use.Someone recommend DEC-C++ to me but it a little terrible debugging. I don't want use the bareGDB and how can i do. thanks.:sad:

Member Avatar for jwenting
0
144
Member Avatar for turnbui

Hello folks, I have a working CGI written in C. It uses the printf statement to build the outgoing HTML web page. I understand that printf is actually outoutting to the STDOUT device. I'd like to use the WriteFile statement to build the outgoing page and I've tried this:- WriteFile(GetStdHandle(STD_OUTPUT_HANDLE), …

Member Avatar for Ancient Dragon
0
193
Member Avatar for jan1024188

ok here`s the code [code]#include <iostream.h> void main() { int x = 0; cout << "Loliko si pa star ? >>>" ; cin >> x; if ((x >= 0 ) && ( x <= 4 )) { cout << "\n dojencek" <<endl; else //error here { if ( (x >= …

Member Avatar for jan1024188
0
115
Member Avatar for DynamitMsk

For my project I'm using an array of structs that I declared in the header file [code] struct City{ string name; int visits; }; City* map[200]; [/code] now when I'm trying to initialize it in a constructor, like [code] for (int ii=0; ii<200; ii++) map[ii].visits = 0; [/code] I get …

Member Avatar for ~s.o.s~
0
151
Member Avatar for kenshihimura

[QUOTE] 1. Write a program that read the data from a file name address.txt. Then, right justifies the text in new text file name add.txt. Given the width of the new text file is 70. 2. Write a program that counts and prints the numbers of line and word from …

Member Avatar for Lerner
0
153
Member Avatar for mytime19

[B]i need computer graphics programs written in c..[/B] [B]thanks a lot..:sad: [/B]

Member Avatar for John A
0
147
Member Avatar for tech291083

Hi, I am using the Kdevelop IDE on Fedora core 5 32 bit Linux to learn c++ programming, but the funny thing is I can't figure out as how to set up the IDE in such a way that it gives me the option of syntax highlighting and automatic code …

Member Avatar for tech291083
0
126
Member Avatar for road22

i have installed djgpp through a cd ( it also has some software called Knoppix... don't know what to do with that... does anyone know?) so here is my problem: i made a c++ program on notepad and saved it with .cpp extension... now how do i compile it? do …

Member Avatar for iamthwee
0
110
Member Avatar for mytime19

hi...can anyone give advice, tips, on how will i come up in developing the antivirus software coz i dont have any idea.. im know core level in assembly and i haven't tried using the it.. i have had a hard time learning it.. actually i want to create a project.. …

Member Avatar for jwenting
0
96
Member Avatar for senguptapallab
Member Avatar for jobra

I am tring to get the real time data [B][COLOR=#7f0055]for[/B][/COLOR] almost 200 subjects [B][COLOR=#7f0055]and[/B][/COLOR] store it in a file. But then I get the each subject data in four different subject codes in the sense four rows from the real time data which I want to store all of it …

Member Avatar for Ancient Dragon
0
121
Member Avatar for kararu

The differences are listed here [URL]http://www.geocities.com/karthika_79/diff.html[/URL] hope this helps, karthika

Member Avatar for John A
0
180
Member Avatar for Luckychap

Hi, I had almost completed my program of Analog clock with tC++. but i got stuck, when any arm of the clock is over another arm it erase the other arm when it passess by. I try to redraw that arm but it looks very bad as it start blinking …

Member Avatar for Luckychap
0
110
Member Avatar for spaceboy

I'm looking for a C++ certification course, but there seems to be about 1001 offerings on the net, and the last thing I want to do is spend my money on something that employers won't recognise as legitimate. Could anyone please recommend some of the courses/companies out there that I …

Member Avatar for spaceboy
0
120
Member Avatar for Walkers

hi, OVer the last few days, I've bee having serious issues trying to check input from the user and making sure its numeric, I recently found this function like many others but I cannot get it to work. [code] #include <cstdlib> #include <iostream> using namespace std; bool IsNumeric(const char *p) …

Member Avatar for iamthwee
0
152
Member Avatar for andrax

Hi, I was wondering if anyone knew of a good memory leak checker (like valgrind's memcheck) for c++ win32 apps.

Member Avatar for andrax
0
204

The End.