49,761 Topics
| |
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 … | |
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 … | |
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() { … | |
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 … | |
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) … | |
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 … | |
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? | |
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. | |
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: | |
| 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 … |
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 … | |
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 … | |
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 … | |
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 - … | |
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 … | |
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 = … | |
[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 … | |
[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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
Hey guys, I was just wondering if you know any websites that have good tutorials on classes? Thanks. | |
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 … | |
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 … | |
:sad: how do i save a variable to a file on the hard drive of the computer running it | |
a little boy's picture is displayed beside dave sinkula's id. is that dave sinkula? |
The End.