49,761 Topics
| |
Hi, I tried to compile below program with Borland C++ 5.0 program but i received subject error. Below is not complete program as it is long program. I think "graphics.h" has some problem. Please help me. [COLOR=#000000]#include<iostream.h>[/COLOR] [COLOR=#000000]#include<graphics.h>[/COLOR] [COLOR=#000000]#include<stdio.h>[/COLOR] [COLOR=#000000]#include<conio.h>[/COLOR] [COLOR=#000000]#include<string.h>[/COLOR] [COLOR=#000000]#include<dos.h>[/COLOR] [COLOR=#000000]#include<iomanip.h>[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]struct date_rec[/COLOR] [COLOR=#000000]{[/COLOR] [COLOR=#000000]short int … | |
After compiling of below program , i received the "ms with error". Please help me. Thank you, [code=c] #include<iostream.h> void main() { int a[3][3],i,j,m,n,sum1=0,sum2=0,z; cout<<"\n Enter the order of the matrices"; cin>>m>>n; cout<<"\n Enter the elements of the matrices"; for(i=0;i<m;i++) for(j=0;j<n;j++) { if(i==j) sum1+=a[i][j]; } for(i=0,j=n-1;i<m;i++,j--) { sum2+=a[i][j]; } cout<<"\n … | |
Hi, Everybody. After compiling below program i am getting error" prg2(distance with error),Please help me to resolve. Thank you [code=c] #include<iostream.h> #include<conio.h> struct distance { int feet; int inches; }; distance length1,length2; void prnsum(int distance11,distance12); int main() { clrscr(); int distance,z; cout<<"Enter length1:"<<"\n"; cout<<"Feet:"; cin>>length1.feet; cout<<"\n"<<"Inches:"; cin>>length1.inches; cout<<"\n"<<"\n" <<"Enter length2:"<<"\n"; … | |
| I don't know how to declare the funtions before it reach the int main? [code=cplusplus] #include <iostream> #include <cstdlib> #include <fstream> using namespace std; //----------------------------------------------------------------------------- // //----------------------------------------------------------------------------- void closeFile() { input.close(); } //----------------------------------------------------------------------------- // //----------------------------------------------------------------------------- void PressAnyKeyToContinue(void) { system("pause"); //pauses the system until you press a key system("cls"); //clears the … |
I'm trying to add xml-rpc to an existing application using [url]http://xmlrpc-c.sourceforge.net/[/url] .I used the following code for testing. [code=c++] xmlrpc_c::clientSimple myClient; xmlrpc_c::value result; myClient.call(serverUrl, methodName, "ii", &result, 5, 7); int const sum((xmlrpc_c::value_int(result))); [/code] The code compiles correctly, but causes the program to throw an error. If I initialize them as … | |
Any of you here knows the corresponding structure of CRITICAL_SECTION in linux? thanks. | |
I am modifying the class CMimeMessage : public CMimeHeader, i need to modify the <pre> virtual inline BOOL MakeMimeHeader(CStringA& header, LPCSTR szBoundary, LPCTSTR szFileName){ATLENSURE(szBoundary != NULL);ATLASSERT(szFileName != NULL);ATLASSUME(m_pszEncodeString != NULL);char szBegin[256];if (*szBoundary){// this is not the only body partChecked::memcpy_s(szBegin, 256, ATLMIME_SEPARATOR, sizeof(ATLMIME_SEPARATOR));Checked::memcpy_s(szBegin+6, 250, szBoundary, ATL_MIME_BOUNDARYLEN);*(szBegin+(ATL_MIME_BOUNDARYLEN+6)) = '\0';}else{// this is the … | |
Hello, I'm looking to dowload a bunch of .csv files from different web address' using c++. I'm pretty new to c++ but not to computers or object oriented programming. What is the best way to go about developing this downloading functionality and what is a good guide for learning how … | |
Hello there. I just want to ask some simple explanation about multithreading in this situation. Suppose I have two CD/DVD drives and an applicaton that enables me to control these two drives. This application uses multithreading. How would this thread be implemented or what is the help that this multithreading … | |
Hi guys, I have an MFC application and I made a class called CCustomFilter.. it basically brings up a dialog with some edit boxes, etc.. the user is able to enter a mask and apply the filter.. Now, from the main dialog I am instantiating it as follows: [code=cplusplus] CCustomFilter … | |
Please tell me from the scratch how to compile and run a .C programme in Turbo C++ Explorer IDE. I'm finding it difficult. Whenever I try to compile and run the .C files , I find these commands as dimmed command in the project and run menus in the IDE. … | |
Is there any commands or registry keys that can be edited to standby/hibernate a computer and wake it up again autonomously. I know there are programs to do this so it is possible but anyone really know the exact way it's done? It going to be used for some testing … | |
Hello, I've just wrote a small program to calculate the factorial of a given number. When i give a small number everything is ok but when i want t calculate the factorial of a biger number, like 53!, I get a wrong answer. I thing that the problec is the … | |
I have this question. List Lg is a global variable and L1 is a local variable.I have not yet described my list/array. Am made to understand that Lg should have my initial length so that I can later compare with L1. My Q is how do I declare Lg and … | |
Hii.. I m using string vector my element set is L1 L2 L3 L4 L5 what i want now is to remove the whitespaces. so that my elements become L1L2L3L4L5. I tried using remove but it doesn't check as it can't find a whitespace separately means when it iterate over … | |
Hi, I have a txt file with some details as given in the below format: filename index file position file length ex: 0001.ogg 123 000001 2345 0002.ogg 124 000099 3457 ...... ..... I need to read the third parameter (i.e file position) with corresponds to its file name (first parameter). … | |
I need to archive 50 text files into a single target file in C++. To achieve this first I need to read all those file contents from a directory and finally write them sequnetially into a new file. Please help me with a sample code or steps. Your help will … | |
Hey im new to this C++ business but i just wanted to know cause i find lots or errors coming up to me :'( .. whats the difference between int main and void main. | |
I use the playsound function to play files in wave format. Wave filenames are read from a text file. I can play several wave files in series. Then I have a pause between series. But if a subsequent series is shorter that any previous series, the old trailing sounds are … | |
Is there an ActiveX control for a display from a cam? There must be one that I can drop into an MFC application. In the resource editor there is a button for a "Custom Control" in the 2005 IDE but I also remember there used to be a special way … | |
i'm writing a program to capture marks and names of 15 students and then i'll be using a function to display whether those students have failed,supplement or passed. but the problem is i'm using strings to capture those names and i'm using arrays to capture those names and the marks.i'm … | |
Hi Guys 1)I am planning to write a simple implementation of T9 , as seen in nokia phones. Could someone suggest an efficient way to go about this ?? 2)I am also planning to write the code for a english dictionary. What is the most efficient way to store and … | |
can anybody tell me the coding for a program to search an element in a string exactly the same word ,like if we are having two words is and this in string then we have to search for is then it only shows is not this........ | |
Hello! I want to implement a avltree using C++,and I have do most of it,except the remove() algorithm. My question is when should I rotate the tree in remove(). I hope that any body can represent the situation for me using the Pelple's language,because the implemented code depend on the … | |
If you have any idea on where I can learn how to implement OOP in C++ specifically when it comes to list please send me your feedback | |
[code=c++]void wait ( int seconds ) { clock_t endwait; endwait = clock () + seconds * CLOCKS_PER_SEC ; while (clock() < endwait) {} }[/code] | |
i dont know how to write this code..anyone can help me ?? here are the question : Write a complete program that calculates the wages of an employee for the month(hint : input from user includes year,month,time in/time out for each day in that month.). monday-friday :first 8hrs,Rm50......add.hour RM10/hr. saturday … | |
[COLOR="Green"] I have some lines on a plane. I want to find points those lines intersect each other. than I try to find whether this lines make a closed surface or not. Any one have idea? [/COLOR] | |
Hi all, I am trying to understand the concept of private constructors and singleton. As far as i have studied, we can have private constructors , destructors and that they are used to avoid making instances of the class other than its member function. now that i am trying to … |
The End.