49,761 Topics

Member Avatar for
Member Avatar for sam_sumit184

program for copying one file to another by using protection of conventional run time error.

Member Avatar for siddhant3s
0
55
Member Avatar for peacerosetx

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. …

Member Avatar for peacerosetx
0
104
Member Avatar for viv_daniweb
Member Avatar for siddhant3s
0
159
Member Avatar for tux4life

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 …

Member Avatar for tux4life
0
168
Member Avatar for MosaicFuneral

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 …

Member Avatar for Salem
0
263
Member Avatar for kleinsun

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!

Member Avatar for mitrmkar
0
2K
Member Avatar for Vovka

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...

Member Avatar for Vovka
0
113
Member Avatar for karthik.c

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 …

Member Avatar for ArkM
0
101
Member Avatar for xonxon

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?

Member Avatar for BevoX
0
103
Member Avatar for marcosjp

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 …

Member Avatar for mitrmkar
0
145
Member Avatar for ademsaykin

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 …

Member Avatar for ArkM
0
130
Member Avatar for Reg74

[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; …

Member Avatar for Reg74
0
122
Member Avatar for DemonGal711

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 …

Member Avatar for DemonGal711
0
90
Member Avatar for homeryansta

[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?

Member Avatar for DemonGal711
0
284
Member Avatar for DemonGal711

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 …

Member Avatar for DemonGal711
0
72
Member Avatar for cool1_best1

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 …

Member Avatar for death_oclock
0
102
Member Avatar for ofnature

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 …

Member Avatar for skatamatic
0
137
Member Avatar for Drahmina

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> /* …

Member Avatar for death_oclock
0
111
Member Avatar for Dontais

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; …

Member Avatar for Dontais
0
104
Member Avatar for student_x

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 …

Member Avatar for DemonGal711
0
609
Member Avatar for power_computer

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 …

Member Avatar for DemonGal711
0
197
Member Avatar for abacuswalker

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 …

Member Avatar for siddhant3s
0
103
Member Avatar for shasha821110

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& …

Member Avatar for siddhant3s
0
75
Member Avatar for lehe

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!

0
42
Member Avatar for Mossiah

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.

Member Avatar for monkey_king
0
63
Member Avatar for mimis

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?

Member Avatar for mimis
0
144
Member Avatar for ofnature

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 …

Member Avatar for ofnature
0
834
Member Avatar for Sky Diploma

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 …

Member Avatar for Sky Diploma
0
206
Member Avatar for h3llpunk

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: …

Member Avatar for vmanes
0
86
Member Avatar for power_computer

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 …

Member Avatar for vmanes
0
76

The End.