No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
4 Posted Topics
Re: I'm a newbe myself but this works: [CODE]#include <iostream> using namespace std; int main() { int number1,number2,answer; cout << "number1? "; cin >> number1; cout << "number2? "; cin >> number2; answer = number1 + number2; cout << "Answer is " << answer; }[/CODE] Hope this helps Fishman | |
Hi I am trying to teach myself C++ coding but am having a problem with classes and objects. I need to pass my objects to a function which may use various object attributes in calculations but may also change the original values of these attributes. My code is: #include <cstdlib> … | |
Re: Try this code, coloured text and backgrounds in dos #include<iostream> #include<conio.c> using namespace std; int main() { char intro[] = "Color Demo for Dev-C++ 4.9"; for(int b=0; b<=26; b++) { textcolor(b+1); cout << intro[b]; } cout << endl; cout << endl; textcolor(WHITE); textbackground(BLACK); system("pause"); cout << endl; cout << "TEXT … | |
Hi After getting great help with my first post here I thought I would try again. I need to create a (dynamic) number of objects of two types, eggs and fry. I then need to be able to delete the fry and then make a new group of fry objects … |
The End.