Beginners - March 2012 (Page 8)

Using functions for calculations
 
I have an assignment that is written below. I'm going to put the code I currently wrote in this post so it's like a reference point. I have also written some co...
[10 replies] Last: Deleted post. Found the answer. (by molecularman)
pythagorean theorem
 
how would i make the formula for this how do i write a2+b2=c2? Im just kind of curious as to how to write this.
[2 replies] Last: thanks! (by hulibarri)
by smc935
2-d array function calling
 
void function1(char array , int r, int c) { for (int i=0; i<r ; i++) { for (int j=0; j<c ; j++) { cout << array ; } cout << endl; ...
[no replies]
double precision confusion =P
 
Heya, first time poster & big fan =] I'm taking an intro c++ course and have gotten to the first real stumbling block in understanding. There are some st...
[1 reply] : Essentially, 1.25 has an exact representation in double precision form... (by shacktar)
school assignment - random number question
 
Hello, I'm working on an assignment for school and was just having some trouble with it. In particular, I'm having trouble with generating a random number betwe...
[2 replies] Last: bah of course...pretty much everything was a result of a lot of trial ... (by Patriots12)
game hack
 
im new and just for the sake of talk what would someone need to build a hack for a online pc game. is it very difficult what things would i need to know before ...
[5 replies] Last: I am by no means advocating this, unless it's an open source game. It ... (by ResidentBiscuit)
Should be a quick fix
 
I'm using Visual Studios C++. This is a homework assignment but I am not looking for you to do it for me, just a hint or kick in the right direction. As you can...
[no replies]
by TrAnMu
String and Char issues
 
The use of char and string was never explained to me very well and now I've hit a roadblock. The objective of this program was to give the user options to c...
[4 replies] Last: AH! Thank you so much! Its running correctly now. I just have to clean... (by TrAnMu)
by jorz
copy class
 
Hi all, I have a class is called by a timer. I want to save data in an other class and keep it as long the program runs. any suggestions how to solve this? ...
[no replies]
how to properly indent and space?
 
I've recently been told that my indenting and spacing bad. But what exactly does this mean? How do i fix it, where do i indent? should i not worry and move on o...
[2 replies] Last: Thank you! (by hulibarri)
return 0; question
 
I was informed that C++ already did this by default so theres no need to put it. Is this correct or do i still need to include it in my program. My program wor...
[3 replies] Last: Only if it returns an integral value and you actually want to return 0... (by Athar)
linkedlist
 
what is linkedlist?
[2 replies] Last: i want to make a reversed linked list but in a single linked list usin... (by H2C)
Parallel Arrays
 
I have a problem with my identifiers in my program and some other error messages i am not sure about. i have been trying to work out these but just van not figu...
[2 replies] Last: What is the best way to pass it to each function? I do not understand ... (by bluescreen)
Changing all values of an array?
 
Hello, I am having a little bit of trouble with something, I have searched many forums, websites, and tutorials, but cannot find a way around this, Ok ill just ...
[2 replies] Last: Damn :/ Ok well thanks for the fast reply, Ill just do it the long way... (by RetrOzombi)
by moot1
c program not working
 
I know this is a c++ forum but i couldn't find a c forum. so here's my question why is the total always 0 at the end of this program. #include <stdio.h> #i...
[2 replies] Last: what do you mean its broken. (by moot1)
Dynamic Arrays
 
Hello all, I'm trying to create a function that doubles the length of an dynamic array. It does so by creating a dynamic array the size of 2*n, copying all v...
[5 replies] Last: copy of it should still point at the same address. Correct? Yes, t... (by Moschops)
What did I do wrong?
 
Can some one please help? What is wrong here? #include <iostream> using namespace std; int main() { int num1; int num2; int answ...
[3 replies] Last: cin >> num1 >> endl ; you don't need this but if you want to make... (by gladi)
Need help with a program!
 
I need to write a program that has: INPUT: of one or more pairs of integers; the first integer is positive and between 0 & 999999999. The second integer is a v...
[no replies]
Unincluding 0 in integer set & determining largest/smaller integer in set?
 
I am working on a small school project, i have to Write a program that asks the user for a series of integers one at a time. When the user enters the integ...
[3 replies] Last: You should determin maximum and minimum elements inside this loop whil... (by vlad from moscow)
error LNK2005 "already defined" error
 
Hi, I am trying to include a header file in two source files. In spite of including a guard for the header I get a linker error in VS2008 saying the class ...
[3 replies] Last: If an object has external linkage it should be defined only once. (by vlad from moscow)
March 2012 Pages: 1... 678910... 71
  Archived months: [feb2012] [apr2012]

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