
please wait
by Ken777
the size of a doghouse with 1 sqrt feet 15,50 and the user enters their amount budgeted for the dog house
|
Can some one give me a hand with this code,i know i must use cmath library. |
Feb 24, 2012 at 6:51pm
[19 replies] Last: #include <iostream> #include <cmath> using namespace std; int main (... (by Ken777)
|
by rozick1
Why does this string not print?
|
int main () { string a; a = 'b'; a ='c'; cout << a; } The string and iostream headers are there. Why is it that after changing each 'elemen... |
Feb 24, 2012 at 6:33pm
[5 replies] Last: Thanks guys. Sometimes C++ makes me want to learn another language. (by rozick1)
|
by ichigo917
Issue with pointer function
|
Hello all!! I'm pretty much new to pointers and function. Yes this an assignment, but i just want to know if I'm going in the right direction. Any comments... |
Feb 24, 2012 at 6:17pm
[2 replies] Last: Thank you soo much!!! you can tell i'm new to this lol (by ichigo917)
|
by iamweak
Recursion on Reversing Digits with pointers
|
Hi guys, Currently i am working on reversing the digits using recursion. I have done up the code for recursion but i don't understand why i always get the... |
Feb 24, 2012 at 5:35pm
[4 replies] Last: reverseNum is supposed to store the digit from the back for each recur... (by iamweak)
|
by Meecrob
Program to swap a 2-dimensional array based on input of grades
|
#include<iostream> #include<cstdlib> using namespace std; void sort(double grade , int dec); int main() { double grade , average, total; ... |
Feb 24, 2012 at 5:21pm
[no replies]
|
by yhangel
differentiate pointer to multiplication
|
some one please try to help.. i have this declaration of a variable 'a' a= (variable 'b') x (value pointed by 'c') when im doing this: a=(*c) * b; i... |
Feb 24, 2012 at 5:07pm
[3 replies] Last: vector<int>::iterator it; vector<int>::iterator ip; it=vectorquant... (by yhangel)
|
by chiritso
Hello im back again and my code still wont work!
|
Thanks for the help i got it to work not sure what i did but it works so well here it is #include <iostream> #include <string> using namespace std; int main()... |
Feb 24, 2012 at 4:24pm
[2 replies] Last: On lines 87 and lines 99 you have: if (condition); This is a blank... (by Stewbond)
|
by Ch1156
Help undeerstandin Multidimensional Arrays
|
Hi, i am watching a tutorial on multidimentional arrays and i have a question because im a bit confused on one part. Here is my code #include <iostream> ... |
Feb 24, 2012 at 4:16pm
[14 replies] Last: 1. You can use a switch/case statement. 2. You could use a map to map... (by roberts)
|
by atjm88
Function??
|
This is original program~ #include <iostream> #include <conio> int subtraction (int,int); int main () { int x=5,y=3,z; z=subtraction (7,2); ... |
Feb 24, 2012 at 3:43pm
[7 replies] Last: Thanks... So can I use all pass by value or use all pass by reference ... (by atjm88)
|
by atjm88
int for both program different?
|
#include <iostream> #include <conio> int subtraction (int,int); int main () { int x=5,y=3,z; z=subtraction (7,2); cout<<"The first result is ... |
Feb 24, 2012 at 3:34pm
[2 replies] Last: Thanks... So I can do it this way without putting "x" inside it right... (by atjm88)
|
by prestige
Question Again...
|
Write definition for a function SumSequence( ) in C++ with two arguments/parameters — double x and int n. The function should return a value of typ... |
Feb 24, 2012 at 3:11pm
[6 replies] Last: Oh okay... I am just notching the Idea that is fine thank you ..... Th... (by prestige)
|
by ettedo2000
need help with Looping
|
I am not sure if I understand the Assignment completely.When I wrote the Program it would open the file and also extract the email onto the other file. However,... |
Feb 24, 2012 at 2:55pm
[2 replies] Last: Thank you for your replie. In that case, the program does extract the ... (by ettedo2000)
|
by Ryan Bush
Truncalicious
|
Hey, I can't seem to remember how to keep this from getting truncated. If I input 5 and 2, it comes out 2.00. Anyone have a solution? #include <iostream> ... |
Feb 24, 2012 at 2:37pm
[4 replies] Last: Just doing avg = (double)a/b; should do it. I'm not sure which part ... (by Gaminic)
|
by Eherter
Help!
|
I have an assignment and I know I'm missing something but i'm not sure what it is. I have to add cin but i'm not sure where. this is my program. { ... |
Feb 24, 2012 at 2:24pm
[2 replies] Last: Maybe you wanted to say that values of the variables should be entered... (by vlad from moscow)
|
by gelatine
square roots
|
hello i need a script that when the squareroot of a number is an int that he ouputs that int or 1; for example sqrt(25)=5;sqrt(36)=6; sqrt(17)!= int; heres a ... |
Feb 24, 2012 at 2:12pm
[7 replies] Last: oh my god. thank you. for the people intrested add ii=i; to the cod... (by gelatine)
|
by jameswong317
Loop problem
|
Hi, i am having a bit of trouble looping a program. The program keeps looping even if i entered 1 or 0 for the variable repeat .Hope you guys are able to help ... |
Feb 24, 2012 at 1:59pm
[2 replies] Last: Oh right, i messed up the logical operators. Thanks. (by jameswong317)
|
by Esteban
Static structure parameter problem
|
Hey, I´m writing a program to control a camera sensor with VC2010. I have a file camera.cpp and a main.cpp. In the camera.cpp I created a static structure co... |
Feb 24, 2012 at 1:25pm
[1 reply] : I found the problem, actually the objects were going out of scope, aft... (by Esteban)
|
by lalebarde
Can I call a constructor from another one ? I loose data !
|
Hi, The following code fails, but I don't understand why : class Titi { public: int* pMyInts; Titi() { pMyInts = new int ; } Titi(int a0, int... |
Feb 24, 2012 at 1:10pm
[6 replies] Last: Gaminic . this code *this = Test(); can work only then the compi... (by vlad from moscow)
|
by Cinnamon
Menu in C++ using Switches and Arrow keys.
|
Hi, I'm a very beginner programmer and was given code that could be used to help make a menu for my game. I am not sure how to implement into my program at all.... |
Feb 24, 2012 at 12:58pm
[7 replies] Last: Ahh, I kind of see, I'll give it a test and see what happens. Thankyou... (by Cinnamon)
|
by adahn
Code Review/Execution Speed tips
|
Hello all, I am completely new to these forums, and very new to C++. The first program I wrote (below) was a World of Darkness dice rolling program. I ran a few... |
Feb 24, 2012 at 12:16pm
[10 replies] Last: Good tip, it got me thinking. I think I figured it out; running it via... (by adahn)
|