49,761 Topics

Member Avatar for
Member Avatar for sleevetrick

hey every1, can any one tell me how to draw a ball or a circle in an console application vc++ and make it move around various coordinates.. basically the ball shud move arnd 4 directions. i tried printin chars but dont quite know how to go about paintin the ball …

Member Avatar for sleevetrick
0
274
Member Avatar for khan_069

Hi i have a programming problem ;) I have a set of number(there is no limit must be dynamic) and i want to find out the unique numbers from the set i.e numbers which are not repeated. Observation: 1) No. of element in set should not be limited 2) Algorithm …

Member Avatar for Lerner
0
120
Member Avatar for Drowzee

I'm making a program (using MFC) that opens a file using the c-style FILE* format rather than C++ style streams. I'm doing this because I'm lazy, and so I can use as much pre-existing code as I can. When I close the program, a destructor is called. [code] CGrid1Doc::~CGrid1Doc() { …

Member Avatar for Stoned_coder
0
305
Member Avatar for nisim777

I did a search of the forums here and found that there are a number of unanswered questions on this subject and a few that are ambigious. My problem is a bit unique however. I need to know if it is impossible to connect to a database with C++ using …

0
55
Member Avatar for JoBe

Hello ladies and gents, Have a few questions about the following example that is given: [code] #include <iostream> #include <fstream> using namespace std; int main() { char ch; int n=0; ifstream ff("aa"); if (!ff) { cout << "Can't open file aa for input.\n"; return 1; } ofstream gg("bb"); if (!gg) …

Member Avatar for Dave Sinkula
0
446
Member Avatar for Mike182

How to i get cubic numbers into a program? Ive tried ^3, but in this line: x = creat^3; y = lines*20; z = x+y; cout<<"Your zenii for this post is " << z << ".\a" << endl; If i change the cout to call out x it calls it …

Member Avatar for Mike182
0
332
Member Avatar for Acidburn

Hello, I'm at work and wanting to install Microsft VC++ V6 on me box. However I've left the CD at home and was wondering if I could download the demo / trial version?

Member Avatar for Dante Shamest
0
105
Member Avatar for hkiani

Hi every one Please help me: How can i found, if there is any disk in a removable drive (floppy drive or cd drive). I am programming with C++Builder. If there is any Win API function for this. Thank you very much.

Member Avatar for hkiani
0
210
Member Avatar for Pmaster

Hi all. I imagine there is a key word like there is asm for asembly but I don't know what it is. Never tried it in visual basic 6. Using net now and learning c++ whould like to know. Any help greatly appreciated. TIA. :confused:

Member Avatar for Paladine
0
86
Member Avatar for AlanC

Hi I am from a Visual Basic background, and if you're still reading this after that admission I could use your help.. I'm trying to learn VC++ and MFC and I'm just trying to work this out. In VB, you could have either a Winsock ActiveX control or use the …

Member Avatar for Drowzee
0
218
Member Avatar for evilsilver

hey guys, have a challenge for you guys, i am making a rpg game in c++ and need some help figurin out the creatures, and items the player will have, i know i won't get many replys to this so don't expect to get all of what i am looking …

Member Avatar for Drowzee
0
393
Member Avatar for sleevetrick

hi, i have created a game using TC++.. a very basic game.. and i want to use the same in VC++ could anyone please help me with this. i shall be grateful to you guys.. i think that there may be a problem with using the various header files in …

Member Avatar for Dante Shamest
0
156
Member Avatar for Raven11

Hello, I'm working on a authentication project which I don't want to run through a compiled .exe (to easy to hex edit or crack). So I was thinking about having the user enter the password in a compiled MFC App. When user clicks, "Authenticate" the entered information will be sent …

Member Avatar for Paul.Esson
0
126
Member Avatar for altheastronut

I've been working on this code which generates random numbers, however I need it to generate random numbers between [B]5.15053396E-5[/B] and [B]0.013365[/B]. Is there a way to define rand() to only generate random numbers within this range? What I tried to do was to generate a number between 110607 - …

Member Avatar for Narue
0
80
Member Avatar for Sef

I'm using a program called Dev C++. Sometimes I am able to solve the syntax erros and sometimes I am not able to do so cause I do not understand it although it's logical. There is an error message which displays "warning: assignment to 'int' from 'double'". I had to …

Member Avatar for Narue
0
177
Member Avatar for JoBe

Hello ladies and gents, In my book, I'm currently reading about the use of creating your own operators << and >> for in- &output. There's been given a small example that goes like this: [code] #include <iostream> using namespace std; class vec { public: vec(float x1=0, float y1=0) {x = …

Member Avatar for Stoned_coder
0
280
Member Avatar for F1uT3

[QUOTE]:cry: Please help me,I'm a bigginner programmer. I have to send a project after tomorrow . My project is "Student Library". Programmed : -->Shor menu for user to select : a)add : student id,name,score(mid,final) b)delete c)modify d)list by id like this -- ***and in add menu user must not insert …

Member Avatar for F1uT3
0
108
Member Avatar for wu7jian

[code] #include<algorithm> #include<string> #include<vector> #include<functional> #include<iostream> using namespace std; class WordCompare:binary_function<string,string,bool> { public: bool operator()(const string&a ,const string& b) { if(a.at(0)==b.at(0)) return true; else return false; } }; int main() { vector<string>MainText; vector<string>TempString; vector<string>::iterator i; MainText.push_back("All"); MainText.push_back("art"); MainText.push_back("is"); MainText.push_back("quite"); MainText.push_back("useless"); TempString.push_back("quite"); TempString.push_back("unique"); i=search (MainText.begin(),MainText.end(),TempString.begin(), TempString.end(),WordCompare()); if(i==MainText.end()) cout<<"The substring is not …

Member Avatar for Stoned_coder
0
115
Member Avatar for wu7jian

for example double t[]={0.12,0.3,7.0,4,4}; or int t[]={1,2,3,4} i wanna ask what "t+1"stand for respectively.if t is the first adress of a array,then t+1 will get to another physical adress right?a back to back address?thanks.

Member Avatar for wu7jian
0
184
Member Avatar for server_crash

If you don't mind helping me a little, I have a few questions for you: 1) Why is it possible different data types(which should be different sizes) be the same size in memory? Take the sizeOf() function. I read where it's possible that you can pass it a long and …

Member Avatar for server_crash
0
160
Member Avatar for jhdobbins

Here is my entire code. I am getting a segmentation fault ( I love pointers for this reason!!!!) off of one of my head pointers i believe. Can anyone help me find/ fix this? please, and thank you. [CODE]/* The purpose of the program is to simulate a queued line …

Member Avatar for jhdobbins
0
121
Member Avatar for winbatch

Is there a (builtin) way to compare the contents of two stl maps? (Assuming of course that the maps have the same data types). I thought of writing this myself, but iterating through each map and seeing if the contents are found in the other map (and then doing the …

Member Avatar for winbatch
0
493
Member Avatar for Acidburn

Hello, in the past i've used MS VC++ v6, however since uni this year are going to teach us .NET i thought it would be a good idea to grab a copy of visual studio.net , however when opening my old *.cpp files they dont wanna run. the blue run …

Member Avatar for shortLived
0
207
Member Avatar for angel22

HI: Maybe some of you read my thread about how to sort a file that contained 17 students data: ID LASTNAME FIRSTNAME 10 SCORES My program had to read this file, sort the names alphabetically, then calculate average score and letter grades. Finally send all data to a new file …

Member Avatar for Rashakil Fol
0
97
Member Avatar for snuegliffer

First I get an error for not declaring the variable, then my { is somehow causing this mishap. I am in need of serious help of this program. Can someone provide me with a head start? I'm using visual studio.net. First I get an error for not declaring the variable, …

Member Avatar for snuegliffer
0
89
Member Avatar for Jon182

Hey guys, I was just wondering if you know any websites that have good tutorials on classes? Thanks.

Member Avatar for Jon182
0
141
Member Avatar for deadoh

my group has made two versions of the game pong for c++ the first version uses a two dimensional character array to represent the playing field and the second uses 966 individual characters to represent the 14x69 playing field both versions work fine, but the array style one's source code …

Member Avatar for freemind
0
325
Member Avatar for rks01

ok well im making a mock atm machine (maybe i got the same book as that other guy?) but im getting an error code " E2294 structure required on left side of . or .* in function main() " this is puzzling me . can anyone help please? heres my …

Member Avatar for rks01
0
192
Member Avatar for 3265002918
Member Avatar for 3265002918
0
786
Member Avatar for indianscorpion2

a little boy's picture is displayed beside dave sinkula's id. is that dave sinkula?

Member Avatar for freemind
0
124

The End.