49,757 Topics

Member Avatar for
Member Avatar for RickSMO

So I am beginning to learn C++ and I have this issue where whatever I do pops up in command prompt quickly, like a flash of it. I remember I had this issue before and I was able to add or change something in my code so that I had …

Member Avatar for Narue
0
158
Member Avatar for Bri426

I'm writing a program for my C++ class that goes off of a previous assignment. The previous assignment asked the user how many numbers they wanted to enter, asked them to then enter the numbers and then found the sum, average, largest and smallest number from the inputted numbers. The …

Member Avatar for Bri426
0
159
Member Avatar for TheWolverine

Hi all, I've found a few references that address this issue, however I haven't figured out what the solution is in the specific case that I'm dealing with. Hopefully someone can help me out. The following code prototypes the general idea that I'm working with: [CODE] class FooClass { public: …

Member Avatar for Stefano Mtangoo
0
4K
Member Avatar for acerious

After a HDD wipeout, I lost my completed .cpp files for program 2 which I already have done creating a function out of the following code. The only problem is, for the last few days I have been failing to recreate or replicate what I previously have done a few …

Member Avatar for acerious
0
83
Member Avatar for shaliniP
Member Avatar for salamjamal10

Hello all, I hope I find the help I need here. I am sorry I am not good enough in C++ yet. This is my first year so please be patient with me. This is my problem: p = 4x^5 + 7x^3 - x^2 +9 the ADT operations are: p.degree() …

Member Avatar for salamjamal10
0
217
Member Avatar for Nemo_NIIT

Hi friends can you send me links OR tell me how to write log files in C++ using events i have got some link from Google but it is not helpful can anyone please help me with some example code

Member Avatar for Ancient Dragon
0
169
Member Avatar for RaoxFaello

I've been severely troubled on putting a cout whereas will tell me [COLOR="Red"]"Error"[/COLOR] if i didnt put an integer and put a symbol or alphabet instead here's my code.. [CODE] #include <iostream.h> #include <conio.h> int larger() { int x,y,z; cout<<"enter 1st integer : "; cin>>x; cout<<"enter 2nd integer : "; …

Member Avatar for Narue
0
143
Member Avatar for myk45

Hello. For 2D matrix multiplication, i tried a new method, which uses only 2 for loops. (im basically using a 1D array to access the elements). Here is the code: // Mutiplication.cpp : Defines the entry point for the console application. // [CODE]#include <stdio.h> int main(void) { int a[] = …

Member Avatar for myk45
0
128
Member Avatar for Rayanjaha

Hi guys ! I am trying to find out how to do this problem using construction with useful value , here is Can I use cons traction with [CODE]public : void set_value (int e, int r) …

Member Avatar for sundip
0
125
Member Avatar for D33wakar

make failed Error: Error: Unresolved external '_main' referenced from C:\BC5\LIB\C0X32.OBJ I got above error when trying to build one of the examples given in \BC5\examples directory.What is the cause?

Member Avatar for D33wakar
0
234
Member Avatar for suncica2222

I want to change icon on remote exe with one that is stored in RC_DATA in my original program (exe) I'm using VC6 where is the error? here's the code [CODE]HINSTANCE hExe = LoadLibrary(nameExe); // first icon HRSRC hRes = FindResource(NULL, MAKEINTRESOURCE(101), RT_GROUP_ICON); HGLOBAL hResLoad = LoadResource(NULL, hRes); PBYTE lpResLock …

Member Avatar for usagi
0
244
Member Avatar for khadija_houtat

hi im new her i want your help im computer student im very week in c++ i have an assingment i dont know how i can solve it this is : design and develop a program which simulates a cellular phone call processing center. The simulator has the following requirements …

-2
35
Member Avatar for ambegin

how do I write a function that creates 2 arrays for GradeBook? The first array has three columns and two rows and then I need a loop that will average the values of the rows then display them in another array. PLEASE HELP!

Member Avatar for WaltP
0
37
Member Avatar for blackrandom

Alright so I'm completely stuck I don't understand my assignment. My biggest problem is learning what gets passed where since our instructor has us working across 2 .cpp files and a header file. I think I might be able to write the code if I understood HOW it was being …

Member Avatar for VernonDozier
0
99
Member Avatar for shawnisalk

Hi, I'm trying to write a program for Windows that will control the mouse with the keyboard, but I'm not sure I understand how Windows works. My theory is that I will need to send mouse event messages for the mouse and hook the messages from the keys that are …

Member Avatar for shawnisalk
0
323
Member Avatar for headedtomexico

I'm distributing a binary that users are required to install the following: Microsoft Visual C++ 2005 Redistributable Package (x86) Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) If they don't have them the program puts up a ambiguous error message. I'm not really sure how static linking works, but I …

Member Avatar for Ancient Dragon
0
156
Member Avatar for XodoX

Ok, I'm wanting to do the following... A C++ program that can edit a sentence with word insertions and deletions. You can assume the sentence has words and numbers separated by spaces and punctuation symbols. The input is a regular text file, where each line is terminated with an end-of-line …

Member Avatar for XodoX
0
110
Member Avatar for gus7984

The assignment was to write a C++ program that implements Insertion, Bubble, Merge Sorts for sorting Arrays of non-negative integers. The three Algorithms should return as output not just the sorted Array but also the number of COMPARISONS needed to sort the array. The array is has randomly generated numbers …

Member Avatar for kes166
0
161
Member Avatar for aaronmk2

I am having trouble with the evaluate class. An error message is coming back for the pow(x, degree). I have included the cmath library and have cast x and degree into double. Any hints or tips would be greatly appreciated. I have tested the program without the pow(x, degree) and …

Member Avatar for sfuo
0
92
Member Avatar for jimbob90

OK so I'm doing this assignment and i'm confuzzled: write a basic class, with a constructor, default constructor, setter and getter functions. This is what I got: [code=c++] class Car { private: int yearModel; string make; int mpg; public: Car(int, string, int); //constructor void setDefault(int, string, int); // def constructor …

Member Avatar for jimbob90
0
91
Member Avatar for Jeneo W.

Hello How do I deal with Trees as Linked Lists ?? View Photos, [URL=http://img832.imageshack.us/i/49362381.png/][IMG]http://img832.imageshack.us/img832/4553/49362381.png[/IMG][/URL] Uploaded with [URL=http://imageshack.us]ImageShack.us[/URL] I think I would need for TL* son ,TL* father, TL* brother. [CODE]struct ff { int id; ff * son; ff * father; ff * brother; }; class formula_s { public: ~formula_s(); formula_s(); …

Member Avatar for Jeneo W.
0
87
Member Avatar for kuchick32

I am starting a homework an assignment on C++ about a mortgage calculator. It is really complicated and I'm really confused. I just need some help. PLEASE AND THANK YOU! :)

Member Avatar for hpfreak080
0
120
Member Avatar for vasilevich

Hello DaniWeb, I am pretty new to this community and overall to the C++ language. Not so long ago i've decided to learn C++. Anyways the problem is: I am trying to make a simple calculator, its very easy my problem is i am trying to advance my knowlege about …

Member Avatar for vasilevich
0
259
Member Avatar for SpiritualMadMan

I have a 3rd party DLL interface to a program that I need to interface to. I have C++ Example code that does what it says it does. But, even though it is very bare bones, I really don't understand it at all. The example is written for and I …

0
64
Member Avatar for restrictment

Hello all, I need help with a scientific notation problem. I am to create a program where the user enters a 5 digit number, and it is displayed in scientific notation. This part is easy, however I am trying to take it to the next step and make it so …

Member Avatar for burcin erek
0
167
Member Avatar for amare_de

Hello: Was trying to assign a function pointer to a struct member and am getting compile errors. The .h file I have to use has defined the struct: [code] typedef void(*callback)(bool, char*, int, unsigned long, void *); struct CallbackInfo { callback func; void* stuff; }; [/code] What I have in …

Member Avatar for amare_de
0
99
Member Avatar for genext.brite

A C code is written: int i=-1 , j=-1 ,k=0 ,l=2 ,m; m=i++ && j++ && k++ || l++; //Line 3 printf("%d%d%d%d%d",i,j,k,l,m); O/p= 00131. I figured out that the Last variable in Line 3 is incremented only if it is preceeded by || else if preceeded by && it is …

Member Avatar for arkoenig
-5
171
Member Avatar for aman rathi

hello everyone i am a student of computer app. from last 4 months i was using turbo c++. but by the advice of some people yesterday i installed codelite. i wrote a simple c++ program but i am not receiving any output i pressed ctrl+f9 as in turbo c++ but …

Member Avatar for usagi
0
271
Member Avatar for ryathegr8

i want to write a code in C++ in which when i Press a key...it displays the letter which i have set in my code for dat key.....it means a program that changes the ascii code of a keyboard.....tell me the logic how can i do that??????

Member Avatar for frogboy77
0
93

The End.