49,757 Topics

Member Avatar for
Member Avatar for kiroyzki

Hi, i'm having problem on the computation of working hours, regular pay, overtime and gross income... on a time-in and time-out of an employee for a week including holidays and overtime... please help on making it work. e.g. of employee.txt Name: kiroyzki Code: A02-004 Level: 1 Salary/Day: 500/day ############################################ [code] …

Member Avatar for vmanes
0
168
Member Avatar for drjay1627

Hello, My friend and I are trying to program a basic 3D modeler. Nothing fancy just a very basic program. I was wondering if anyone here could help me with reading material. We need to figure out the math and that is what I can doing now. Any good books …

Member Avatar for BountyX
0
79
Member Avatar for CJesusSaves

Hello all, I am Lisa and fairly new to C++/MFC. For a class project, we are to develop any software of our choice and add as much functionality as possible. I have chosen to build a program similar to MS Paint since MFC has functions that makes building shapes very …

Member Avatar for CJesusSaves
0
153
Member Avatar for rwill357

This is what I have so far. This program should contain a recursive function that will compute the binomial coefficient according to the definition if k=0 or k=n [CODE]#include <iostream> #include <algorithm> using namespace std ; int C(int n,int k) { if (k < 0 || k > n ) …

Member Avatar for rwill357
0
178
Member Avatar for Fbody

I just started an advanced C++ course and my instructor sent around a file with this piece of code: [code]class smallobj // specify a class { public: smallobj() : iData(0){} // Constructor smallobj(int iInValue) : iData(iInValue) {} // Overloaded Constructor ~smallobj() {} // Destructor void setdata(int d) // member function …

Member Avatar for Fbody
0
1K
Member Avatar for clutchkiller

Hi, is there a quick way to format a float variable that is 0.775 to display it as 77.5? Thanks To better clarify, im doing a simple little tasks of variable = variable / variable to find the percentage of something.

Member Avatar for Fbody
0
78
Member Avatar for t_stewart1012
Member Avatar for WaltP
0
103
Member Avatar for sisse56

The program asks the user to enter physician name as array of character,but do not work properly ,only work for single character how can i input array of character for the physician name. look case 1 on my code. [CODE]for( i=0;i<n;i++) { cout<<"\nEnter physician "<<i+1 <<" name :"; cin>>phy_name[i]; cout<<"Enter …

Member Avatar for WaltP
-2
125
Member Avatar for V0ldemort

I'm kind of a noob at this, I have an error and i -sort of- know what it means, but I have no idea how to fix it. [CODE]#include "Sprite.h" int Sprite::LoadSprite(LPDIRECT3DDEVICE9 device, std::string Filename) { dImageScale = 1.0; D3DXIMAGE_INFO ImageInfo; D3DXGetImageInfoFromFile(Filename.c_str(), &ImageInfo); dImageHeight = ImageInfo.Height; dImageWidth = ImageInfo.Width; }[/CODE] …

Member Avatar for V0ldemort
0
183
Member Avatar for sonisuhas

how does the ramdomize function works?? does it have some formulae to bring out its output?

Member Avatar for Narue
0
133
Member Avatar for avirag

How can I convert a char that has this info in it "312,000" to a double? I know I can use atof but it doesnt work with the comma.. is there any way to remove the comma.. or to use atof when theres non numeric values in the char? Thanks

Member Avatar for Narue
0
2K
Member Avatar for k1_zav

Hi people, I am writing a code to do some matrix manipulation stuff. like replication of a matrix in a bigger matrix vertically and horizontally, or putting some elements on a specific diagonal. The problem is that when the size of 2-D array goes to 290, the program crashes. The …

Member Avatar for k1_zav
1
80
Member Avatar for shizu

Hi all.. I had a part of code like below.. CPropertySheet oPropSheet("Page", NULL, 0); oPropSheet.m_psh.dwFlags |= PSH_NOAPPLYNOW; oPropSheet.m_psh.dwFlags &= ~(PSH_HASHELP); oPropSheet.AddPage(&oPropSettingCriteria); oPropSheet.AddPage(&oPropAdvancedSetting); if(oPropSheet.DoModal() == IDOK) { } ... now I would like to hide or disable OK button..just left only CANCEL button there.. I tried using oPropSheet.GetDlgItem(IDOK)->EnableWindow(FALSE); but will have …

Member Avatar for shizu
0
691
Member Avatar for Learning78

Hi; I have made a MCQ based game in Visual C++ using MFC. It runs fine but it shuts down when some key is pressed unintentionally. Like, if you click the options with mouse click, it works fine but even if you press ENTER key during the game, it quits …

Member Avatar for Learning78
0
195
Member Avatar for ashrut

i m feeling problem in making a program for attandance management. can u help me plzzzzzzzzzzz

Member Avatar for thekashyap
-1
93
Member Avatar for coolfriend

Plan and code a guessing and betting number game, as described by the text below and the sample output but do not write any functions (other than main). An appropriate welcome message with your name in it should be shown at the start of the program. The user starts with …

Member Avatar for WaltP
-7
282
Member Avatar for valleymorning

Hi all, The code below is to converts a tchar from lowercase to uppercase. Could you tell me if my code is correct or need to be fixed. Thank you very much. VM =============================== [code] tchar* MyToUpper(tchar *input) { static tchar buffer[1000]; tchar *s= input; tchar *t= buffer; while (*s!= …

Member Avatar for Sudar_Gudi
0
2K
Member Avatar for Nikhar

I have made a program to the follwoing problem:- [QUOTE] Another chessboard puzzle (this one reputedly solved by GAUSS at the age of four) is to find a sequence of moves by a knight that will visit every square of the board exactly once. Write a backtracking program that will …

Member Avatar for Nikhar
0
170
Member Avatar for Amonod

This might be a bit of a silly question and I should probably know this anyway. I have tried searching for it but I have not found anything on this subject(or the more plausible reason, I have not been searching for the right things since I don't know much about …

Member Avatar for Ancient Dragon
0
163
Member Avatar for lola_fcis

[code]void Delete(TreeNode* tree, ItemType item) { if (item.ComparedTo (tree->info)==LESS) Delete(tree->left, item); else if (item.ComparedTo( tree->info)==GREATER) Delete(tree->right, item); else DeleteNode(tree); // Node found } void GetPredecessor(TreeNode* tree, ItemType& data) // Sets data to the info member of the right-most node in tree. { while (tree->right != NULL) tree = tree->right; data …

Member Avatar for Narue
0
77
Member Avatar for foxmulder

Hi! I was wondering if someone might have an example of this that I might could take a look at, would really appreciate it since we have a test in about a week. Thanks in advance! Adam

Member Avatar for NathanOliver
0
135
Member Avatar for xka

Hi, I am a total newbie to programming, so I do not know much about it. However I have created this very basic program which converts 2 currencies. I would appreciate it if I received some constructive criticism so I can improve my programming skills. Thanks, xka [CODE] #include <iostream> …

Member Avatar for jonsca
0
185
Member Avatar for __kanth

Hi Guys Is there any function in C which will help me make an input string invisible while we are entering the input?? I mean similar to oracle login. when we type our oracle password at dos prompt it is not visible. My requirement precisely. 1) I want to read …

Member Avatar for __kanth
0
180
Member Avatar for ishaiman

Problem Statement: Expense class You are required to write a class name “Expenses “. Expenses class has· Constructors· Destructor· Write a function to add expenses for a month· Write function which displays these expenses.· Write a function which calculates savings for a month. · Expense class has following data members …

Member Avatar for Salem
-2
73
Member Avatar for nerdinator

How to make a time based regular function?Like something that plays a sound every 1 second?

Member Avatar for Salem
0
117
Member Avatar for sisse56

1. //program to write the information of patients registered 2. // and physician available in the hospital.The program asks 3. //the user to register physician,register patient, 4. //list all available physicians and lisit all registered patients 5. // depending on the interest of the user. 6. #include<iostream> 7. #include<cstring> 8. …

Member Avatar for WaltP
-2
129
Member Avatar for s_mostafa_h

Hi All , there is an application for 8051 processor that when u write ur code in asm , and then convert to hex file , [URL="http://chaokhun.kmitl.ac.th/~kswichit/easy1/easy.htm"]this application [/URL](EZDL.4) , it Write ur programm to the Microntroller . apparently , this win application written in C++ . thanx for any …

Member Avatar for s_mostafa_h
0
233
Member Avatar for ctpsolo

I recently got into coding dll's and now I'm interested in having my own injection routine code to spare time and effort instead of using general injectors. However it seems impossible for me to find a source to study that actually does the job. I've been all over the net …

Member Avatar for Ancient Dragon
0
157
Member Avatar for twoshots

I've been writing a Python module which contains a few classes. As I have come to use the module in earnest it has become clear that I need to create a _very_ large number of instances of these classes. This is using more memory than I would like. Speed is …

Member Avatar for twoshots
0
164
Member Avatar for luliana

hi I wanna ask about virtual function.. why we use it & when? and what is the different between friend function & member function in class?? :)

Member Avatar for Narue
-2
74

The End.