No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Re:
My 6 month old laptop has needed 4 reformats so far because of disk problems and now it wont boot past the windows loading screen. i played around and i found a diganositc test that could be run through the bios and it passed everything up till one called DST … |
|
Sorry, this is going to be a very long post :$ first of all, here is my codes: [b]Header File[/b] [code=c++] struct hardware { int record; char name[100]; int quantity; float cost; }; [/code] [b]Binary Input File cpp[/b] [code=c++] #include<iostream> #include<iomanip> #include<fstream> #include <cstring> #include "hardware.h" using namespace std; void … |
|
[code=c++] // Stopping input with an empty string #include <iostream> using namespace std; #include <cstring> int main() { int i = 1; char temp[80]; char string[80]; // room for 255 strings cout << "\n\nEnter some strings - (blank to exit)" << " \nfirst string: "; cin.getline(temp, 80); while (temp[0] != … |
|
[code=c++] #include <iostream> using namespace std; void main () { char *tokenString, *c, string[80]; cout << "Input a string: "; cin.getline(string, 80); cout << "The entered string is: " << string << endl; c = string; while (*c) { if ((*c >= 'a') && (*c <= 'z')) *c = (*c … |
|
[code=c++] #include <cstdlib> #include <ctime> #include <iomanip> #include <iostream> using namespace std; // prototype and name space declaration int sqr(int); int cube(int); int fourthPower(int); int fifthPower(int); int sixthPower(int); bool printNum(); void show(int (*fn)(int), int); //------------------------------------------------------------------ //------------------------------------------------------------------ //------------------------------------------------------------------ void main() { char first[30], last[30]; cout << "Please Enter Your First Name: … |
|
[code=c++] #include <cstdlib> #include <ctime> #include <iostream> using namespace std; // prototype and name space declaration bool testAnswer(int, int, int); void correctOutput(); void incorrectOutput(); bool mathTest(); //------------------------------------------------------------------ //------------------------------------------------------------------ //------------------------------------------------------------------ int main() { if (mathTest()) { !(mathTest()); mathTest(); } } bool mathTest() //main function { srand((unsigned)time(0)); // random number generator int … |
|
how would i write a maximum number test function that will take any number of arguments and returns the greatest of them??? i know i need to used recursion function, but how should i declare the function?? here is what i have so far [code=c++] double maxNumber( double inputNum,A double … |
|
#include <iostream> using namespace std; void getMonthName(int monthNum); void main() { int month, i=0; cout << "Enter a month " << endl; cin >> month; while (!cin.good() && i <3) { cout << " Bad input.\n"; cin.clear(); cin.ignore(80,'\n'); cout << " Try again: "; cin >> month; i++; } while … |
|
if i have 71, i need to display it like 17. backward if i have 113 i need to display it like 311. first number and last number are swiched i know i need to used a swap function but how do i used it? how do i extract each … |