49,761 Topics
| |
Has anyone ever seen a function call just get skipped? I am running in debug mode and it wont let me set a break point on the call and when i step to it it goes right over to the next line, no exceptions, no errors. Has anyone EVER seen … | |
Is there any difference between those function declarations in C++? Since in C the first states "take any and as much arguments as you like", and the latter means take none... Thanks in Advance, Nick | |
I've built a class, one parent and multiple children, that I need to group together to eventually be stored in a single file. For the moment I've gone with something like this: [code=C++] CObject *group //CObject is the class in question group = (CObject*)calloc(1, sizeof(CObject)); //1 element just to start … | |
I am almost done with a project and now I would like to code an installer for it. I know there are many free solutions to make installer packages online, but I would enjoy learning how to make one from the ground up for the expirience if nothing else. What … | |
Hey guys, I would like to create a chatting application with C++ or C#(preferably C++) that would run on a local computer network ( and internet if possible) ie enable users on a local computer network to chat. I'm kinda new to programming and I have only done the basics … | |
Hi, i am required to make a game, here are the details: zombie island This is a simple turn based game. Set up a 2d grid. Onto the grid randomly position holes, zombies and a man (each represented by a simple character e.g. O Z and M). The man moves … | |
how would u diplsay the lowest or highest value of an array that the user entered so u ask the user to enter several number and it goes into an array then how would u display the highest/lowest value in that array to the sreen | |
1) The following C++ program reads in a number, checks that it is a three-digit integer and, if it is, echoes it on the screen in the reverse order. It uses a C++ function, called isolateDigits, which takes in a 3-digit integer number and returns the three digits that make … | |
I am facing problem with WaitComm() ;I set comm time out but WaitComm() in to completing. i think WaitComm() go to infinite loop. How i can resolve it | |
Hi, i am trying to write a program that would work much like the tail command in UNIX. The idea is to print the last 10 lines of a file. I started off by finding out how many lines were in the file, then attempted to seek to the appropriate … | |
My target is to make a code of Cartesian coordinating points of a rectangle... then it must be tested by quadrilateral and square. If the tested point is a rectangle then the out put program will be like this..... Program Output: ************************************************************ ....+y .....+ ..............+ ..point a............................................................................. point b ..............+ … | |
Hey everyone. In a nutshell this is what I want to do. I want to: - Allow developers to write code in C++ using non-latin based languages. i.e > use #define (or whatever) to specify a non-latin based character as a keyword/variable. e.g > Instead of (English): if(x < 1){ … | |
Hi, I am getting this error "[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied." when trying to get some data from SQL Server 2000 database. SQL Server is installed on Windows Server 2003, and i am testing the application from WinXP sp2. Testing from other machines with same settings … | |
Hi everyone! I want to call a child program from my parent program. Are there any methods to do this in C++ (platform is Linux)? I searched Google but the material found quite difficult to understand. If have any examples, it'll be better for me (as you know, some people … | |
Hi I am writing a code in which I have to display the print dialog. PRINTDLG pdlg; memset( &pdlg, 0, sizeof( PRINTDLG ) ); pdlg.lStructSize = sizeof( PRINTDLG ); pdlg.Flags = PD_RETURNDEFAULT | PD_RETURNDC; PrintDlg( &pdlg ); But I am getting an error message "[Linker error] undefined reference to `PrintDlgA@4' … | |
good afternoon.. do you know how to install or configure clanlib in vs2005 ?? im getting hard time... i tried it so many times but up to now i havent succeed... i read this link [url]http://www.clanlib.org/docs/clanlib-0.8.0/Tutorial/Kavanek/01-Installing.html#windows[/url] but its hard to understand and im not sure if i download all file … | |
I wanna have my program be able to let the user manually open a text file by destination and retrieve data from it, I have everything like ifstream good, i just need to know how to let the user cin something like C:/files/myfile.txt, but with the ifstream format I need … | |
I try to create a generic binary tree class but when i try to define an inserting function I get these compilation errors error C2072: 'Btree<T>::recins' : initialization of a function error C2143: syntax error : missing ';' before '*' c:\documents and settings\kux\my documents\visual studio 2005\projects\btrees\btrees\btree.h 54 Error 6 error … | |
Hi All I have written a code to change the settings of printer Orientation(i.e. Landscape or Portrait) I have written following code [code=C++] void SetDefaultPrinterOrientation(short dmOrientation) { HANDLE hPrinter = NULL; LPTSTR pPrinterName = NULL; DWORD dwNeeded = 0; PRINTER_INFO_2 *pi2 = NULL; DEVMODE *pDevMode = NULL; PRINTER_DEFAULTS pd; BOOL … | |
As a beginner I want to create a text editor that autosaves the text at intervals. It's not a part of any HW or anything like that. I just wanna learn things. Plz Plz help me out. Got 20 days at home. Wish to complete it before joining college. | |
Hello, I'm having trouble compiling a header file for a class written in C++. What's so frustrating is that I can't see what I'm doing wrong. when I compile the code I get the the following 2 errors for lines 22 and 25: [B]expected ';' before '<' token ISO C++ … | |
Is it bad to make a reference parameter optional by giving it a default value? Like here: [CODE]int Parse(std::string filename, std::string& error = (std::string)"");[/CODE] Here, the caller of the function may pass an optional std::string that will be filled with an error message if there is one. Is this considered … | |
in more basic C++ terms what does the following code mean? [CODE]friend ostream& operator << (ostream& os, const item* itm);[/CODE] it is a function in a header file | |
Hello, My code works but I would like to adjust it to perform better. My teacher would like me to perform quickSort with pointers. I did use them but I was wondering what else I could change to improve the usage of pointers? For instance how can I pass pointers … | |
Hello, I was wondering how I could correct this. It is referring to the following line: [code] set.quickSort(prt1, 0, arraySize-1); [/code] I tried to create an object and call the function this way but I am not sure how to correct this error. My code is the following: [code] bool … | |
Hi. Well, the past year, I have spent learning GUI programming in Java and have created several games (Asteroids, MineSweeper, TicTacToe, etc, etc) in Java. I was wondering if there is an easy way (is it easy at all?) to go from what I know about GUI programming in Java, … | |
I have a vs2005 forms app, I have added a header file with a bunch of functions, but now i get a bunch of LNK2005 errors, one for every function. How do I resolve this? Do I need to put them in a class? Thanks. | |
Hi guys, i have one question regarding alignment. Assume that you have the following struct: [code=c] struct align1 { double a; char b; int c; short d; }; [/code] Also assume: sizeof(double): 8 sizeof(int): 4 sizeof(char): 1 sizeof(short): 2 i would expect: sizeof(align1): 8 + (char padded to->) 4 + … | |
Does the infomation make a differance to the programs speed? [CODE]// Operating with hello world #include <iostream> using namespace std; int main () { // Print out the result: cout << "Hello World! "; cout << "This is my program"; // Keep program running: cin.get(); //Terminate the program: return 0; … | |
Well I am writing a little message encryption program (simple) and Well it works but it will not change anything after a space. just hoping someone here could help. [CODE] cout << "Enter in the message you want to encrypt..." << endl << " "; cin >> in; count=strlen(in); for(i … |
The End.