49,761 Topics
| |
Hello! I write this program form "Robert w.Lafore" 's book(Object Oriented Programming in C++/"functions" chapter/(about "struct circle"))but the "c++builder5" 's compiler message that "UNABLE TO OPEN INCLUDE FILE "BORLACON.H"!!!!! my question is the "borlacon.h" dosen't exists??!!! ;) *1*->How I can fix this program? #include"borlacon.h" #include<conio.h> struct circle { int xCo,yCo; … | |
Hi all. I hope this it not taking up your reading time. I'm new and stuck up at the configuration of Dev-C++ compiler. Before posting, I did search throughout the threads, how to fix/configure the error. I have the snapshot of the error. Please give some steps on how I … | |
Hi everyone. I'm new, but I'll be here for a while I think :cheesy: . Here is my code so far. The delays are because I wanted to simulate typing =). [code]// #include <cstdio> #include <cstdlib> #include <iostream> using namespace std; int main(int nNumberofArgs, char* pszArgs[]) { int i = … | |
Hello everyone! I am new to C++ and downloaded Dev-C++ a few hours ago. Is this the right C++ to use? Sometimes I get it to work but sometimes it doesn't. After I typed in the "Hello World" code I compiled it with no errors then when I click run … | |
The following code finds the square root of a number, it runs fine unless you compile with MinGW gcc: [code] #include<stdio.h> #include<stdlib.h> int main(void) { double x0,x1,a; int i; x1 = 1; x0 = 0; printf("\nFind square root of: "); scanf("%lf",&a); for(i = 0; x0 != x1; ++i) { x0 … | |
hello i need help, i have to input 10 integers and find the maxinum of the numbers. [code] #include <iostream> using namespace std; int main() { const int MAX_NUM_INTEGERS = 10; int integers[0]; int largest = integers[0]; cout << "Enter 10 intergers: "; cin >> integers[i] for (int i=0; i … | |
Consider a line of simple C code: fopen("C:\\project\\test1.dat","r"); it "directs" the program to the directory where it can find the file from which it will read. My question is under what circumstances, I may write fopen("test1.dat","r") instead? Does the program need to be in the same folder / directory as … | |
I'm coding in VC++.NET 2003. For a static array of 20 elements, the code below works fine. But, I needed a dynamic array. I decided to use an ArrayList, but came to a compiler error when it couldn't convert from bool to System::Object __gc*. Anyone know how to convert this? … | |
Is there any way to make an .exe file with VS C++ 6.0, that runs on any machine that has/does not have MS VS?:sad: Just want to make a single .cpp file for computer graphics using GLUT into an executable where anyone, especially my examiners to run it by double … | |
hello, how do i remove elements which are repeated in a list .I cant seem to do it . in this program i am first putting elements into the list ,then searching for a particular element seeing how many times it occurs in the list(count) .i need to display the … | |
Hello all, this is my first post and I feel a little bad about asking for help (instead of offering help), but I've reached writer's block. If I formatted this post incorrectly, I apologise... Okay here's what I need to get/have/do... I need to write a c++ program that will … | |
Hello. I need help in detecting USB Ports in Borland C++ Builder and listing the name of the device connected to each port in a listbox. Your assitance in this regard will be utmost appreciated. Treasure | |
Hi, I am thinking about learning a new language for game development. Which one would you advise me to learn? Visual Basic or C++??? Please give pros and cons. THanks | |
Can someone help me with the following quesitons? char m[6]; int *rip[10]; struct george *c[6]; struct mike BigDeal(char *); How to describe in English??? Thanks. | |
I have the question about this codec. I know sizeof(struct baseball) = 16. what's the sizeof(Yankees)? Also, What will these cout s yield? cout <<Yankees[2].player; cout <<Yankees[2].Bbp->player; cout <<BigPointer+1); [PHP] #include <iostream> using namespace std; int main() { struct baseball { char *Player; int Hrs; float average; struct baseball *Bbp; … | |
i am getting this error "[COLOR="Red"]error C2664: 'bool __thiscall BST::insert(class BST_Node *& ,struct Key)' : cannot convert parameter 1 from 'class BST_Node *' to 'class BST_Node *& ' A reference that is not to 'const' cannot be bound to a non-lvalue[/COLOR]" and i have no ideal why everything looks fine … | |
could you please tell me what is wrong with this code it is compiling but a execution error occured i am unable to find that am using devc++ compiler [code] #include<stdio.h> #include<conio.h> #include<stdlib.h> typedef struct link { int value; struct link * lchild; struct link *rchild; }node; node *head =NULL; … | |
need help in findin the minimum of these 5 inputs its keeps showin 2 instead of 1... [code] #include <iostream> using namespace std; int findMin(int [], int); int main() { const int MAXELS= 5; int nums[MAXELS] = {2, 18, 1, 27, 16}; cout << "The minimum value is " << … | |
| Hullo, I need help here I can't get this to work. I'm not sure if the code is correct. Any help would be most appreciated. I basically wanna convert a std::string to a const char array. [CODE]#include <string> #include <iostream> void bull(char[]); int main() { std::string Yo_momma = "iz fat"; … |
I need some help to do the following Count all spaces written to the output file Count all alphabetic characters in the output file [code]include "stdafx.h" #include <iostream> #include <fstream> #include <string> using namespace std; int main () { string line; ifstream myfile ("checkIn.dat"); if (myfile.is_open()) { while (! myfile.eof() … | |
hello guys, i have latest version of dev c++ compiler ..is there any best compiler that is specifically made for c language i need it badly and required ur comment plz give me if anybody knows ..... | |
[code]#include <iostream> #include <fstream> #include <string> #include <stdio.h> #include <stdlib.h> #include <conio.h> using namespace std; #define MAXLENGTH 20 #define WORDLENGTH 20 enum dir { LEFT=0,UPLEFT,UP,UPRIGHT,RIGHT,BOTTOMRIGHT,BOTTOM,BOTTOMLEFT}; enum menu { LOAD=0,SOLVE,CREATE,QUIT }; struct WORD { char word[WORDLENGTH]; int length; int row; int col; dir d; }; typedef struct WORD word; word wordlist[100]; … | |
hi there im having some problems, im trying to write a simple software sequencer in visual C++ under windows. I have a few problems my first two menus open up fine but the third wont open it just loops on the title menu. The second probelm i have is that … | |
hello, am doing a project for my school . am asked to , 1. open a file 2. tokensise the contents and then change the case of all the letters to lower case 3. search for all the words in tat file with another file so there are 2 files … | |
Ive been learning C++- for a bout a month and I want to start making simple button press GUI windws that i can use for informating people about things. (I'm in 8th grade so i'm not a math genius yet.:rolleyes:) The problem is that I don't know what I should … | |
guys, please help me... how do i make clrscr() work? my friend told me to include conio.c, but i think that my version of dev-c++ doesn't have that...so i tried downloading conio.c...but the problem is, clrscr() still doesn't work in my pc but it works in my friend's pc...we're both … | |
HI I NEED TO WRITE A C++ CODE[DEFINTION & DECLARATION] FOR THE NECESSARY COPY CONSTRUCTORS & ASSIGNMENT OPERATORS TO ENSURE THAT A DEEP COPY TAKES PLACE. [code]class CShop { public: CShop(); ~CShop(); private: CEmployeeContainer* m_pEmployees; char* m_strShopName; }; class CEmployeeContainer { public: CEmployeeContainer(); ~CEmployeeContainer(); private: CBoss* m_pBoss; list<string> m_listEmployeeNames; }; … | |
I have been trying to use the freeware (dll) version of Qcard32 in visual c++6 on a single document program. I cannot get the functions to work or complie properly. I have been reading about using the __declspec (dllexport) and __declspec(dllimport) keywords I feel that if I can get the … | |
I want to do the following things in a single program 1) Read a name in the form of string from user 2) Convert it into uppercase if the name is in lower case 3) Now i need to open a file which is already exisiting in some other path … | |
Hi everybody I have a problem with exception handling. I have a form which includes a TDBGrid and a TDBNavigator. I also have a Paradox 7 format table (attached with TTable object). I want to catch if someone tries to add a tuple with some existing key value. But I … |
The End.