Posts
 
Reputation
Joined
Last Seen
Ranked #346
Strength to Increase Rep
+8
Strength to Decrease Rep
-2
54% Quality Score
Upvotes Received
8
Posts with Upvotes
8
Upvoting Members
7
Downvotes Received
10
Posts with Downvotes
7
Downvoting Members
5
8 Commented Posts
0 Endorsements
Ranked #517
~38.1K People Reached
About Me

I'm no nerd. I'm a hunk :)

Interests
Lifestyle & Sports... and of course everything techie
Favorite Tags
Member Avatar for rennel

Hello everyone..I am a newbie in DANIWEB..I really need your help guys regarding the topic i stated in the title..I am trying to create a payroll system..The system will get the data from the database, compute the NET and GROSS SALARY then afterwards save it back to the database.It is …

Member Avatar for Sean_13
0
2K
Member Avatar for idesignyards

I have saved a javascript in notepad with an .htm extension. When I go to file then open and type in the file name, it just opens up a it as an address in the address bar. I want to run the program in internet explorer, how do I do …

Member Avatar for piers
0
3K
Member Avatar for dalaharp

Hi, i would like to calculate the execution time of my program. is there any function available to enable it??

Member Avatar for rustysynate
0
3K
Member Avatar for bramprakash1989

i tried the following coding .it compiled without errors but gave absurd results during runtime. can u pls help me with it? [code=cplusplus] #include<iostream.h> #include<stdlib.h> int main() { int i; cout<<"ten random numbers for the range 0 to 50"<<endl; for(i=0;i<10;i++) { cout<<rand()<<endl; return 0; } }[/code]

Member Avatar for dramatic
0
1K
Member Avatar for subith86

Hi friends, I was trying out some inheritance related stuff and found something. I just want to know the reason why. I have a ParentClass and a ChildClass. Both have an integer named [B]commonVar1[/B]. Also both have a getter method of the same name. Here goes the code. [CODE]class ParentClassOT …

Member Avatar for template<>
0
118
Member Avatar for akase2010

i put the numbers into my calculator and i receive a number that is about $1 greater than the actual value. why? [CODE] #include<iostream> #ifndef Tips_H #define Tips_H using namespace std; class Tips { private: long double taxRate, bill, gratuity; public: Tips() { taxRate = 0; bill = 0; gratuity …

Member Avatar for caut_baia
0
220
Member Avatar for LevyDee

for removing the last element from a chain in my linked list? [code] Action *temp = head; //Action is my node while(temp != 0) { if(temp->link == tail) //tail is my last node { delete last; tail = temp; tail->link = 0; return; } temp = temp->link; } [/code] I …

Member Avatar for LevyDee
0
105
Member Avatar for dip7

Hi, I have come up with the source code to read files. However, this is source code reads the file 1024 bytes at a time. I would like to modify the code to read it byte by byte. This code wants to determine if 001 bytes ( oo oo o1 …

Member Avatar for Ancient Dragon
0
3K
Member Avatar for mbouster

Dear all I have a function and withing I want to call a member funtion. More specifically I have a menu inplemented the code below. please note the commented line [CODE] case '1': //flightcode(); break; case '2': cout<<"Enter the Customers National Number ID"<<endl; cin>>ni; // CustArray.showCustomers(ni);//given the customers ID break; …

Member Avatar for mbouster
0
2K
Member Avatar for icasta13

The results of this program giving me values that should not be the way it is, it must display the list of numbers... [ICODE]#include <iostream> #include <fstream> using namespace std; void ReadList(int Array[], int N) { ifstream data_file; data_file.open("numbers.dat"); N=10; for(int i=0; i<N; i++) { data_file >> Array[i]; cout << …

Member Avatar for icasta13
0
212
Member Avatar for jeffpro

1)What's the safest way to receive data from a php script and return to an exe? 2)If I have lets say char Hi[4] = "3E2C"; and I wanted to put this into a BYTE Bye[2]; how would I do this so that Bye[0] = 0x3E and Bye[1] = 0x2C? Thanks …

Member Avatar for gerard4143
0
95
Member Avatar for mbouster

Dear all, I would like to ask you how to initialize the following: I want to initialize a class inside another class. How I will be able to do so? An example: [CODE]/*Class Date*/ class Date { public: Date(){} // default constructor int day;//day of the month valid till 31 …

Member Avatar for mbouster
0
280
Member Avatar for blueyelunatic

I'm having a problem with my program. I'm able to input all 10 numbers in but when it out puts the sum I get the wrong answer but then when it outputs my average that information is correct. I know it's a simple fix but I can't see it. Can …

Member Avatar for jonsca
0
87
Member Avatar for deanus

Hi, I've just started using MSVC++ 10.0 express edition and I'm also a relative beginner in c++, and I have a few questions about the IDE. On the standard taskbar I've noticed a small drop down list containing the words Debug, Release and Configuration Manager. It is set to Debug …

Member Avatar for chiwawa10
0
138
Member Avatar for Meat!

So I am a noobie when it comes to C++, I was wondering if anyone could suggest some resources so that I can learn what is going on?

Member Avatar for chiwawa10
0
83
Member Avatar for newCoder1545

[CODE] /* Write a program which continueously calls a menu function which prints the following menu and returns to main the operation selected: 1.Add 2.Subtract 3.Multiply 4.Divide 5.Compare 6.Quit The menu function must keep printing the menu and asking for a selection, as long as the user enters an invalid …

Member Avatar for chiwawa10
0
115
Member Avatar for chode1

this is my infile's data..How do I get info into various data types? extraction operator? I know extraction works but the 5th line throws me for a loop..Thanks for help; 11/29/2010 S 2907 1 11/29/2010 S 9673 4 11/30/2010 A 4321 30 11/31/2010 S 9673 12 12/01/2010 N 5789 wind_chimes …

Member Avatar for chiwawa10
0
95
Member Avatar for dnambembe

can anybody tell what's wrong with this code! //=========================================================================== // hybrid.cpp --this file implement the hybridlist class // Time-stamp: <2010-10-29 18:52:46 Dnambembe> // To compile: // g++ hybrid.cpp // Copyright (c) 2010 by Domingos Nambembe. All rights reserved. //=========================================================================== #include<iostream> #include<cstddef> //need NULL #include"hybrid.h" using namespace std; typedef NodeType* NodePtr; …

Member Avatar for dnambembe
0
125
Member Avatar for newbee3

Hello, I need help on writing a C++ program that allow the user to input two values: a username and a password. Below is what I have so far to test the password and it is not working. #include <iostream> #include <string> #include <vector> using namespace std; int main () …

Member Avatar for chiwawa10
0
107
Member Avatar for lochnessmonster

im curious if there is any type of standard....or if anyone could help explain what all should be placed in .H files? (prototypes/etc) -thx

Member Avatar for mike_2000_17
0
207
Member Avatar for samsons17

I am in my way of studying the linked list chapter of C++.. So i go through this code below intended of understand it. [CODE] #include <iostream> using namespace std; struct nodeType { int info; nodeType *link; }; void printList (nodeType *first) { nodeType *current; current=first; while (current != NULL) …

Member Avatar for fmadsen
0
113
Member Avatar for keeda

Hi, I have to read a file up to a fixed size, how can I do that? Any help is appreciated. example: I have a huge text file and I want to read 1000 bits at a time. How can I achieve this? Thanks,

Member Avatar for chiwawa10
0
77
Member Avatar for qvyhnl

Prblem: Implement a base class Account and derived classes Savings and Checking. In the base class,supply member functions deposit(), withdraw(), and print() which prints out the ownerand balance. Create constructors that take a string (for the owner's name) and a double for the initialbalance. All methods should return void. I …

Member Avatar for chiwawa10
0
218
Member Avatar for miha2

Hello. So, I'm a newbie, and this is my second hard assignment. In this assignment, I have to decrypt the message from the teacher (well, not only this, it should open and decrypt any text file). So, the example line would be: [I][B]Ftq Pqoxmdmfuaz ar Uzpqbqzpqzoq ar ftq Ftudfqqz Oaxazuqe …

Member Avatar for miha2
0
701
Member Avatar for mumar
Member Avatar for Anuradha Mandal
-3
71
Member Avatar for VasquezPL

My menu function looks like this and it works great: [code] int menu(string * teksty, int ile) { static HANDLE h_we = GetStdHandle(STD_INPUT_HANDLE), h_wy = GetStdHandle(STD_OUTPUT_HANDLE); int wybor = 1; CONSOLE_CURSOR_INFO cci = {0}; GetConsoleCursorInfo(h_wy, &cci); cci.bVisible = false; SetConsoleCursorInfo(h_wy, &cci); COORD p = {0}; DWORD k; //FillConsoleOutputAttribute(h_wy, 0x07, 80 …

Member Avatar for VasquezPL
0
149
Member Avatar for Lanor

Hi...I am not able to input text file correctly as desired...... data.txt -------- Jim A James A+ Smith Cathy D Dazy Peter C I am suppose to input the above file and fill the above data in two seperate arrays. For the second column, I am suppose fill NULL value …

Member Avatar for WaltP
0
96
Member Avatar for Behumat

Hi everyone! I'm both new here, and new to programming. I'm still learning how it all fits together, and have been putting together a simple assignment, but I've gotten a little stuck, and so far the book hasn't been a help. I know it must be something simple, but for …

Member Avatar for Kremlan
0
145
Member Avatar for gus7984

Hello, I'm getting an error when I try to compile the code and I do not know how to solve the problem. Please help! The assignment asks me to create a BOOLEAN function that can check if the graph is connected or not. So I decided to use DFS approach …

Member Avatar for chiwawa10
0
112
Member Avatar for Sohelp

I have a little bit problem,and that is when i use inline function? Another one is advantage and disadvantage of inline function. Anyone help me? Your Regard Sohel Rana Bangladesh

Member Avatar for Sohelp
0
246