Posts
 
Reputation
Joined
Last Seen
Ranked #412
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
89% Quality Score
Upvotes Received
35
Posts with Upvotes
29
Upvoting Members
26
Downvotes Received
5
Posts with Downvotes
5
Downvoting Members
2
15 Commented Posts
2 Endorsements
Ranked #630
Ranked #540
~55.1K People Reached
Favorite Tags
Member Avatar for rfrapp

This problem is to print a square using a number that the user enters, which would be in the center. If the user entered a 5, then the program should output this: 111111111 122222221 123333321 123444321 123454321 123444321 123333321 122222221 111111111 If you're wondering, this was not a homework assignment. …

Member Avatar for pty
0
1K
Member Avatar for benbee

This program should calcuLate users amount of watts consumed based on their appliances and the aprroximate number of hours each appliance is used in a day, week or month. The basic requirements are as follows: Give user option of selecting predefined home appliances or entering their own and corresponding watts …

Member Avatar for luff
0
761
Member Avatar for MandrewP

Hello, I'm trying to create a data area within an .exe file. Then I will open the .exe file and scan it for the data area. When the data area is found, I will write some data to this data area and write the .exe file back to disk. I …

Member Avatar for rubberman
0
117
Member Avatar for MandrewP

Is double pre-incrementing undefined behavior? Like ++++x or even ++++++++x. I think it must be since it all occurs between sequence points. But what could possibly go wrong? Or do you just not ask that question and automatically stay away from any undefined operations? Is double incrementing ever routinely used? …

Member Avatar for shahid_650
0
198
Member Avatar for Learner010

# Tutorial On Operators# *Operators are the signs to the tell the compiler to perform specific task*. The Operators fall into following categories :- Arithmatic Operator Relational Operator Logical Operator Bitwise Operator Miscellaneous Operator(i added Assignment Operators in this categeory) **Arithmatic operators:-** There are following arithmetic operators:- + Add [6+2=8] …

Member Avatar for Learner010
5
683
Member Avatar for saurav2007

#include<iostream> using namespace std; int &fun() { static int x = 10; return x; } int main() { fun() = 30; cout << fun(); return 0; } Output is 30 why not 10? please explain me the concept of Lvalue.. Thank you in advanvce.

Member Avatar for Ancient Dragon
0
275
Member Avatar for gcardonav

Hello guys: I am certain if I was not trying slef-teaching C++, that this question would have been answer before. What is the use of [inlinecode]using namespace std;[/inlinecode] ? I am not certain, I just know that when I use [inlinecode]#include<iostream>[/inlinecode] I have to appended. Simple question, but a matter …

Member Avatar for StanleyLau
0
4K
Member Avatar for amirul_1

Hellow...How to count and sum even and odd integers from a sequence of integers..?

Member Avatar for MandrewP
0
116
Member Avatar for pars99

I have always had this question, but I couldn't quite find anything that answered it. I was hoping someone could shed some light on the question... Thank you in advance.

Member Avatar for mike_2000_17
0
2K
Member Avatar for alex9620

Hi, This question is related to the below. http://www.daniweb.com/software-development/cpp/threads/352685/error-c3861-menu-identifier-not-found I used that to solve my issue. What I would like to understand is why the function prototype is to be declared before the main function? In my textbook that I am following the function prototype wasn't there. I did as …

Member Avatar for MandrewP
1
390
Member Avatar for ringo861
Member Avatar for MandrewP
0
259
Member Avatar for AmerJamil

When im using fstream.h its giving an error with using namespace std, how ever when i use simple fstream without .h , it is not giving error but not reading the file, How can i use fstream object using fstream.h header file along with using namespace std? Your urgent response …

Member Avatar for deceptikon
0
946
Member Avatar for tomz6
Member Avatar for Banfa
0
988
Member Avatar for chocolatte.lavista

#include <iostream.h> double box_area(int); double box_vol(int); void main() { int l,w,d; double a,v; cout<<"length : "; cin>>l; a=box_area(l); cout<<"area : "<<a; cout<<"width : "; cin>>w; a=box_area(w); cout<<"area : "<<a; cout<<"length : "; cin>>l; a=box_vol(l); cout<<"volume : "<<v; cout<<"width : "; cin>>w; a=box_vol(w); cout<<"volume : "<<v; cout<<"depth : "; cin>>d; a=box_vol(d); …

Member Avatar for asifalizaman
0
351
Member Avatar for harry.lloyd.7503

Hi guys/ and the minority of girls. This topic is for my teacher, who has asked me to find information of the following for himself. How can he interface a USB port to run a motor through C++? He is relatively good with computer systems himself, so why he does …

Member Avatar for MandrewP
1
247
Member Avatar for hitman007
Member Avatar for Chickzer
0
248
Member Avatar for Asmaa_2

I'm asked to write a program in which the user inputs a letter and the program converts it to lower case if it's UPPER and vis versa. I have written this program and it worked: #include<iostream> using namespace std; int main() { char letter; cout<<"Enter any letter"<<endl; cin>>letter; if(letter>=97&&letter<=122) { …

Member Avatar for MandrewP
0
493
Member Avatar for SeePlusPlus2

Hi, if we take for example 32bits: 1111 1000 0000 1000 0001 1111 1100 0000, how does it become (24bits) 1011 1110 0011 0110 1111 0110 after RLE is applied? Why/how does 1011 represent the 5 1's at the start of the 32bit number? I'm trying to understand the concept …

Member Avatar for SeePlusPlus2
0
180
Member Avatar for christinetom

Hi again everyone. This is going to sound really dumb but I have to ask it because I'm not very advanced at C++. If I have a function such as **Funct(int *arg1, int *arg2)** , how do I use this function in a program. Can I just enter the values …

Member Avatar for Gonbe
0
136
Member Avatar for pars99

Can you please help me and tell me what I am doing wrong? I have been looking at the program for two hours and need help. I keep getting this error: 'triangle' was not declared in this scope. Also, that is the only error, so I don't have anymore. Thank …

Member Avatar for pars99
0
2K
Member Avatar for candicecandy

I am a beginner in C++ programming and I badly need help. I just need some tips for programming a tic tac toe game that asks the user how many times they want to play, and should track how many times they win. Also, this program should not use arrays. …

Member Avatar for Schol-R-LEA
0
221
Member Avatar for slygoth

I am trying to store some values return from a function. Its returning three values that i want to use in the main function. int display() { int iter; int num[4]; if(dl!=-1) { for(iter=0 ; iter<=al ; iter++) { cout<<t[iter]<<", "; num[iter]=t[iter]; } } else cout<<"EMPTY"; return num[0]; return num[1]; …

Member Avatar for Despairy
0
196
Member Avatar for s123456

assuming everything else works...i'm having trouble with the output...the if else statements are driving me crazy. it is outputting the date twice when i enter 7/3/12 code displays todays date....displays "payday" entered......adds 7 days to "payday" to show NEXT payday. void Date::addDays(int month, int day, int year) { _day = …

Member Avatar for MandrewP
0
145
Member Avatar for abhishekbalaji

I am just beginning to learn pointers and I have a question regarding accessing the values using the address. Suppose we have an array of say 10 elements and I begin to access all the elements starting from the 10th element, and go on untill i access the 0th element... …

Member Avatar for MandrewP
0
125
Member Avatar for Mncedisi

You are asked to write a program that manages a company's stock. To manage the stock the program need to keep track of item information, prices and quantities. A user should be able to adjust these values on selected items, draw reports and perform certain functions over all the data. …

Member Avatar for Iyfjeyeon
0
180
Member Avatar for FreddyGIraheta

How do i input an if else statement inside an already existing if else statement?

Member Avatar for MandrewP
0
101
Member Avatar for prince.chindah

hello pls i need a kind person to teach me any programming language, any! but i prefer c++, or java. pls i need ur help!!! yes u that is reading this now. thanks

Member Avatar for MandrewP
0
178
Member Avatar for bdl365

I want to print the following using for loop. from the pattern, it's clear that when row and column is equal to each other it prints A that gives me A from top left to bottom right need clues A - A A - A A - A A-A ----A---- …

Member Avatar for WaltP
0
269
Member Avatar for Albino

Errors: 1>c:\users\will\documents\visual studio 2010\projects\sdl test\sdl test\main.cpp(239): error C2065: 'string' : undeclared identifier 1>c:\users\will\documents\visual studio 2010\projects\sdl test\sdl test\main.cpp(239): error C2146: syntax error : missing ';' before identifier 'str' 1>c:\users\will\documents\visual studio 2010\projects\sdl test\sdl test\main.cpp(239): error C2065: 'str' : undeclared identifier Code: `string str;` For some reason strings are giving me errors.

Member Avatar for Ancient Dragon
0
164
Member Avatar for brian.ediger1

I have a program that has the user input a resistance value, then the program checks to see if it is a valid resistance value, and then prints the min and max, based off a valid tolerance value. Here is my code: Resistor.h #ifndef Resistor_H #define Resistor_H #include <cmath> #include …

Member Avatar for brian.ediger1
0
210