Beginners - November 2011 (Page 11)

Simple question (1,2)
 
I need help over this question.. The constant percentage method of computing depreciation of an asset is based on the assumption that the depreciation char...
[23 replies] Last: #include <iostream> #include <cmath> using namespace std; int main... (by rithan)
hi just starting to learn C++ and need to bounce i few questions off someone please
 
hi at the moment im reading teach your self c++ in 21 days as it was recomended to me on another forum before i found this one anyway the book doesnt realy tell...
[3 replies] Last: Ok thanks for letting me know my compiler told me it was decrepit and ... (by cossworth)
My function works but is missing one thing......
 
This function is part of a program that I wrote for an assignment. The other parts of the program work well but the vowel counting function only counts one vowe...
[5 replies] Last: This part: letter= inputString ; if (letter=='a' || letter=='e' |... (by Gaminic)
Something wrong about pointers and struct?
 
****
[6 replies] Last: ah ok i noticed my mistake now. now im coding it:) thanks buddy (by whocares21)
by ShienZ
How to calculate price for call duration with 2 different rate?
 
The cost of the call is determined according to following schedule: A. Any call started between 8.00AM to 6.00PM, Monday through Friday, is billed at a rate of ...
[no replies]
Break and continue nested loops problem.
 
Hi all, I have some problems with loops for (a=3; a<=n; ++a) // first loop { for(i=2; i<a; ++i) // second loop { if (Condition) { b...
[4 replies] Last: So in your loop, the break statement only exits the second loop, and t... (by Caprico)
by Lhimez
Theres an error...
 
So, Im new to programming and just read some of the tutorials. I started programming, thought I should make an easy calculator. Here it is. #include <iostre...
[7 replies] Last: Meh. Ill consider it :P (by Lhimez)
Dynamic structure array inside of a structure?
 
Question: How can I create a Structure that has a Dynamic Structure (array) inside of it using only the <new> and <iostream> libraries? example: struct...
[2 replies] Last: THANK YOU! You saved me from hours of endless trial and error. I could... (by lindsey laho)
Parameterized Constructor doubt...
 
Okay, so in my program, I have a class (say A)which has 5 int members. I want to use a parameterized constructor and set their default value to (say) 10, but at...
[5 replies] Last: Stewbond, yeah, I've already gone through everything this site has to ... (by Caprico)
Declaring new arrays in a loop
 
This is part of a larger code I'm working on but I've trimmed it down and simplified it to show the problem I'm having. The entries in the arrays in this exampl...
[3 replies] Last: Yes... usual variables have a scope only in the block they are defined... (by Caprico)
please i need your help to creat this program as soon as possible
 
Question 11 The constant percentage method of computing depreciation of an asset is based on the assumption that the depreciation charge at the end of each year...
[3 replies] Last: http://www.cplusplus.com/forum/beginner/55951/ (by Caprico)
log formula
 
hay every one how can i find n in this equation to c++ :- S = C(1 - d)pow n or how to convert this equation to c++ :- n= log v to the base of m ...
[3 replies] Last: There is only functions with base e and base 10. But I found this tha... (by Peter87)
by zz77z
I don't understand this !!!
 
Hello Could any one help me to solve this problem ::::: create a base class called shape.Use this class to store tow double type values that could be us...
[2 replies] Last: Also this one if you don't mind ^^ :::: start with publication, bo... (by zz77z)
by nebula
How to properly use cin.fail()?
 
Hello guys. For my final exam this year I must do a program, but I must protect it from dumb people. For example, I ask the user to enter an int, but he enters ...
[no replies]
Why array of length zero.
 
Why GCC allow to create an array of length 0 as c++ does not allow to make a an array of length zero. int ptr ; Has it any benefit ?
[2 replies] Last: bro i m a beginner and dont know ISO C99 and C90 plz tell me in simple... (by Hammad50)
Replacing space with hyphen in a string
 
This program is to replace all the spaces with hyphens in a string. I don't understand why we used int x1=strlen(string); here ?? #include <iostream.h> #i...
[2 replies] Last: Thank you so much...ur code is much simpler..I myself made a similar t... (by Shaurya)
Calling a function in an if statement
 
Hello, I am writing a program to list the prime numbers from 1 to 10000. It is based on a template given in class. However, I don't think the if statement is...
[2 replies] Last: Ok, thanks. (by nmf1992)
C++ 'do nothing' command?
 
Hello Just a quick question, is there a command similar to the Python command "pass" which does absolutely nothing other than be a place holder for something...
[4 replies] Last: Just to make the intention explicit... use continue in loops e.g. int... (by closed account 1vRz3TCk)
Difference
 
difference between new int and new int(10)
[2 replies] Last: Nothing, as far as declaration is concerned... (as far as my knowledge... (by Caprico)
Vowel count !
 
I copied this program to count the total vowels..it works just fine but I don't understand why '++vow_ctr;" is used at the end of the switch case instead wi...
[6 replies] Last: thanks agaiN!!!!!!!!!!!!! (by Shaurya)
November 2011 Pages: 1... 910111213... 65
  Archived months: [oct2011] [dec2011]

This is an archived page. To post a new message, go to the current page.