49,761 Topics
| |
program for copying one file to another by using protection of conventional run time error. | |
Greetings All, I have one class I'll call main class and it creates and initializes all of the classes so that they are not re-created again. What I simply want to do is to have in the creation of my other classes pointers to the classes they need to operate. … | |
hi....can u suggest me the latest mini project on the c++.... | |
While searching the internet I always come across several posts where they're saying that Bloodshed Dev-C++ isn't for advanced use (rather for newbies), why are they saying that? Is MinGW not an advanced compiler? Or is it just because they aren't developping Dev-C++ anymore... I know there's Code::Blocks, but I … | |
In GCC/MinGW when I map a function to a specific section can I expect the sections [icode]Characteristics[/icode] bits 5, 9 and 30(IMAGE_SCN_CNT_CODE | IMAGE_SCN_MEM_EXECUTE | IMAGE_SCN_MEM_READ) to be set or always set? What about for an all variable mapped section? I just wanted to know if I could confirm a … | |
Dear all, I am trying to use WIN32 API "CopyFile" to copy a file from a remote machine to local. [code=C++] bRet = CopyFile(src, dest, false); [/code] "dest" is defined as [code=C++] dest = "\\\\desk\\data\\1.txt"; [/code] But this operation always fails. Could anybody give me a little hint? Thanks! | |
Help please.....a misfortune happened, here unmaybe I in any way to complete work for a bank...It is needed to create a class bank which will contain a class account:(current and deposit), and also the class of persons which contains (manager and cashier)...help please, very ask...! beforehand thank you... | |
Hi guys ,i came across coding in a book where they given the below program and named it as singleton class.but here we are able to create 2nd object and also call constructor for second object (only here do we check the status of count and exit from the program … | |
int *p; int *q; p=new int; *p=35 q=new int; *q=62; p=q; cout<< *p << ","<< *q<< endl; What is the value of `*p` and `*q`? Why? the statement p=q refer to? | |
Hello there! Is it possible to detect the Windows version (or at least detect if it's XP or Vista) from a C++ code? I'm working on an ActionScript/C++ solution and, right now, am detecting Windows version using AS, but it would be a lot better if I could do it … | |
Dear Sirs Here I am again!. I need to write a function by using signature below. void suffix(int n, char suff[]); And I need to use following declarations: char s[5]; int x; the result of a call should be : suffix(x,s); will return an appropriate string in s for any … | |
[CODE= C++] //Pg.288 #include <cassert> #include <iostream> using namespace std; void deleteKthElement(int k, int& count); int main() { struct nodeType { int info; nodeType *link; }; nodeType *first, *newNode, *last, *traverse; int num; int count = 0; cout << "Enter a list of integers ending with -999.\n"; cin >> num; … | |
Alright, I had to design an N-ary tree so later I could use it to produce a word ladder. I got the tree to insert and print perfectly. Now what I need to do is add pointers so that everything points to the correct item. Here's the example: Connect cat … | |
[CODE=c++] inFile >> x; while(!inFile.eof()) { if(x == '\n') { cout << endl; } cout << x; inFile >> x; }[/CODE] will this code detect end of line? I'm having trouble with this. Can anyone help? | |
I was writing up my NTree class that I need for a program that I'm working on. My function order() takes in a vector and a string and sorts the vector according to that string so the words closest to the string (one letter off) are at the beginning of … | |
If the stack top is maintained at the [B]end of the linked lis[/B]t, i.e. stack top is the last item, accessing the stack top would take a lot of time, since N items of the linked list need to be traversed before we can access the last item, This would … | |
I am writing a program, that will automatically post an image from a folder on my computer onto a blog of mine. I want to be able to have the program add a title for the post and maybe even fill in some tags. I don't know how to make … | |
Im just trying to load a PNG file i created of a background for a game I plan to produce eventually. However im not sure how you go about adding that image to the window. Ive opened up a standard windows app template with the following code. [code]#include <windows.h> /* … | |
I am having problems with the . operator I thought i had it right but it keeps giving me problems on the line myBike.Bicycle(24,17); it won't compile. [CODE]// This program is designed to imput data and // output the data for bike gear and sockets. #include <iostream> using namespace std; … | |
given a 2-D maze stored in a 2-D array eg: SWWWW . . . . . W.W.W . . . . F S is starting point F is exit . is the path W is the wall. After the player enters the maze, s/he tries to find a path to … | |
First compute the employee's gross pay. Gross pay is hours worked multiplied by hourly rate. We will assume (for simplicity) that no employee will work more than 40.0 hours, therefore no overtime pay calculation is needed. Next, compute the net pay. To do so, we must determine the amount of … | |
I have three classes, class A, class B, and class C. Each class is in its own file. Class A uses class B. (object class) Class B uses class A. (object class) Class C uses class A and class B. (program class) How do I go about using #include and/or … | |
I know for some C++ experts this class overload is like a piece of cake but as a beginner we always asked to write this again and again. My code as following don't have compiler problem but have strange output. [code=c++] Class String { public: String (const String& s); String& … | |
Hi, How to get declaration in C mode with tags in Emacs. I only know how to get definition of self defined functions. But how to jump to their declarations and also how to get the declarations of C++ standard library functions and classes? Thanks! | |
Please help me with this. I am a newbie at this. I am supposed to pass a string array to a function. Letter grade Please give me an example on how to do it plz. thanks in advance. | |
I need to learn brute-force search because i think that it will help me to solve a problem on graphs. Do you know any good tutorial for brute-force search? | |
For school I have to write a program that calculates the probability of 0 to 10 planes attempting to land in any-minute period at an airport during peak arrival times. I think I don't understand the equation: a(exponent x) e(exponent -x) over x! x= the number of plane arrivals per … | |
Hi All, I have taken up this home project just for my pastime. My objective is to take a html file and then make a complete new webpage with a specific keyword. It basically is a find and replace type of method where my existing file contains a specific keyword … | |
Hi im just trying to make a simpel dice roll game which seems very hard because srand always generates the number 0 to me. I also ask the user to type roll to roll his dices which i try check if he really does type roll. this is my code: … | |
I am using this if statement to formulate some sort of output however only the last block executes where each if is suppose to execute depending on the gross pay that will determine the tax. It reading input using fstream from a .txt file It reading the right numbers The … |
The End.