49,761 Topics
| |
ok this will not work what im trying to do is create a game where you are a miner and need to put mines in 5 different spots im about 1/3 done but i cant get the money to come in after i build the mine i have gone through … | |
I'm coding in VC++.NET 2003. I have a tabcontrol with 6 tabpages. In Form_Load, I dynamically create buttons on each of the tabpages, but make them invisible. Inside a static function, I would make buttons visible according to the parameters. My program would get stuck in a loop when I … | |
Hello.. I am trying to do image processing using C. However, I am a complete novice at this. Can anyone please tell me about a C library(or a similar program etc) to read JPEG (or other) image files and store the data thus obtained. Please help me in any way … | |
Dumb question #18: How can I, in C++ (Borland) sound a musical note or a series of notes? Jim Taylor | |
I have '1' and I want to convert to integer 1 I think I must use atoi but I don't know how to use this function.. int i1 = atoi(item[i]); // item[i] is char then it show ERROR in member fuction how to use atoi???? how can I declare it??:sad: | |
Hello, I wonder if someone wan´t to learn C++ with me on msn or here. I started with a tutorial in C++ but I got stuck, so I thougt it would be better if I learned it with someone else who also want´s to learn C++. So if you are … | |
Hello everybody, I'm totally newbie with c++ language. I'm using Visual C++ 2005 Express Edition. I like to make a working GUI with my first c++ code. My question is: How to insert this code to Windows Forms (GUI) that contain: 1. Press "Button" to randomly generate the number from … | |
I am working out a function that merges two lists and returns a pointer to a third list which contains the merged lists. Can anyone help? Here is what I have thus far: [code]/STLList - use the list container of std library #include <list> #include <string> #include <cstdio> #include <iostream> … | |
Hello All,Iam Obi fronm Nigeria and has been studying c++ for some time now .I recently took on a challenge to design a kind of airtime service for the mobile communication industry but can only say that I have not really delivered on that.Below is the code and I would … | |
everything seems to go fine except when i get to the search. either the program runs with a runtime error or it'll just return "NO MATCH". by the way, when i put the if/else statement in the loop, it works but it also returns NO MATCH until it finds the … | |
hi pls help me with the pythogorean triplets code for numbers between 1 and 1000 | |
c++ is in many games and processes are handled with C++... IF you want to learn C++ You will need 2 things... 1. compiler 2.patience you can find a great compiler called devc++ link: [URL="http://ftp1.sourceforge.net/dev-cpp/devcpp4.zip"]http://ftp1.sourceforge.net/dev-cpp/devcpp4.zip[/URL] and inner patience... or a good tutorial links: [URL="http://www.cprogramming.com/tutorial.html#c++tutorial"]http://www.cprogramming.com/tutorial.html#c++tutorial[/URL] [URL="http://www.cplusplus.com/doc/tutorial/"]http://www.cplusplus.com/doc/tutorial/[/URL] i can explain enough to … | |
if some one knows of a great tutorial for c++ i would be very happy.. | |
hi this is subham from india i wana help i am trying a program to operate pc through mobile but in doing so i am getting one prob in accessing inbox of mobile phones which will be connected to pc through a data cable i want that messages present in … | |
i've been at this for an hour, feeling stupid by now, getting sick of these segmentation faults.. [code] // board.cpp #include <iostream> using namespace::std; const int NUM_ROWS = 10, // Board dimensions NUM_COLS = 20; // Function prototypes void fillRectangle ( char board[NUM_ROWS] [NUM_COLS] , int row, int col, int … | |
Sir, I want to make connectivity in c with database oracle so plz tell me the code for that.thanx in advance. | |
I am extremely new to C++ and I've been trying to do a few things. I want to read a file and get all the numeric values. This information is going to be used in writing a binary file. I also want to count how many numeric values where found. … | |
Hi... I am trying to write a string class...this part is supposed to concatenate two strings, but I am having trouble with constructors/destructors.:rolleyes: Please explain the exact sequence of calls and the correct way to code.:?: [code] #include <iostream> #include <cstring> #include <conio.h> using namespace std; class STRING { char … | |
I don't know if I should post all the code to start, but if you need to see all the code just ask. Trying to post the relevant stuff: [code] void findHoliday (const DayData holidayList[],int listLength, int month,int day, char holidayCopy[]) .... holidayCopy = holidayList[i].holiday; [/code] now it's puzzling since … | |
In a c++ tutorial this was one way to define a string [CODE] #include <string> using namespace std; string name; name="mark"; [/CODE] But it dosent work i get errors.Why is this? | |
| |
How can one manipulate the vdu. Like to creae a class which can be used to create objects like windows depending on wdth like [COLOR=red]_o/s_window(120,20,0xddff,0);[/COLOR] [COLOR=#ff0000][/COLOR] 120-height 20-width hexadecimal-base color 0-border stylethe window will look like this with a color gradient and can run other programs. | |
Hi all. I can't get this to compile; [code] #include <iostream> #include <string> using namespace std; int main () { int number; string response; for (number=5; response!='Y';) { cout <<number <<endl; cout <<"Had Enough (Y/N)?"; cin>>response; } cin.get (); cin.get (); return 0; } [/code] when i try to compile … | |
Hi all Any help would be much appreciated. Im following the about.com tutorial, and one of the exercises says i should make this program; [code] #include <iostream> #include <string> using namespace std; int main () { string name; int ID; cout<<"enter your name\n"; cin>> name; cout<<"enter your id\n"; cin>> ID; … | |
I am a basic c++ programer :sad: that wants to understand graphics but all the online guides confuse me i understand BASIC c++ code like... :-| [code] #include <iostream> using namespace std; int main() { int forever; int HIGH = 15; int LOW = 1; int HIGH1 = 50; int … | |
Hi I used an variable int i; in a faunction block as it is in a code below. [code] #includes.... int i; int function() { while(charbuff[i]!=' ') { ofstream stream("file.lng", ios::app) stream << charbuff[i]; i++; stream.close(); } return 0; } main() { ........... some code function(); /*call function */ cout … | |
hi! i hav a code that was compiled using Microsoft VC++1.52. now i need to compile it on VC 6. but the compiler is generating the errors in statements containing use of FAR pointer. can any one guide me how to remove these errors or where can i find this … | |
This is what I have to do [COLOR=black][COLOR=black][COLOR=black]We will initialize the tree by hard coding the values illustrated below. You will need to write, test and execute a driver program that will use the complete binary tree implementation. [/COLOR][/COLOR][/COLOR] [COLOR=black][COLOR=black][COLOR=black]// this will initialize the tree node values treenodes[0]=5; treenodes[1]=10; treenodes[2]=2; … | |
I'm trying to return a struct array from two functions. I don't know what to say. Here is my code: [code] #include <iostream> #include <iomanip> using namespace std; struct worker { int idNumber; int hoursWorked; double hourlyRate; double earned; }; [B]???[/B] input(); [B]???[/B] calculateEarned(worker []); void outputWorkers(worker []); int overtimeWorkers(worker … | |
Please take a look at my function call. I don't know if I'm handling the return values right. It works for an employee with less than or equal to 40 hours worked, but the over time is paying 2.5 times instead of 1.5 times. Should I be using some kind … |
The End.