Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
K

klutez123

@klutez123
About
Posts
19
Topics
16
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • cdrom
    K klutez123

    I need some quick help and i thought of the guru's on this forum. My cd/dvd rom won't read or write to Blank CD's. It reads Blank DVD's but says the file system is raw and has 0 bytes on the blank 700mb cd's. I've tried to uninstall the cdrom and then searched for added hardware, reinstalled. but still not working. what can i do? LM9478Y FQQ1200 SCSI CdRom -and- HL-DT-ST DVD+RW GWA4164B show up as disk drives under Hardware

    Hardware & Devices hardware help question

  • need quick help
    K klutez123

    I need some quick help and i thought of the guru's on this forum. My cd/dvd rom won't read or write to Blank CD's. It reads Blank DVD's but says the file system is raw and has 0 bytes on the blank 4gb dvd. I've tried to uninstall the cdrom and then searched for added hardware, but still nothing. what can i do?

    C / C++ / MFC hardware help question

  • stupid javascripting [modified]
    K klutez123

    I am trying to get a picture out of Source of a picture in a Flash gallery. http%3A%2F%2Fwww%2Eprintroom%2Ecom%2Fpreview%5Flarge12%2F64249086%5Flt%5F%2Ejpg I tried alot of different ways but couldn't get it. If you know could you please post? Thanks for your time. -- modified at 13:29 Tuesday 26th June, 2007

    Web Development adobe question

  • loop help
    K klutez123

    I'm trying to make a program that will loop the end where it takes in all the information in the "LIBRARIANSHAVE347CATS.DAT" and if the book has more then 200 pages it outputs the information to a different file called "bigbook.dat" This is my code so far: struct card_catalogue //declare a structure then declare all { //the varibles needed for the struct float dewey; string title; string author; int released; int num_pages; enum typeofbook {fiction = 1, nonfiction, reference, pond}; }; int main() { card_catalogue books; ofstream outfile; int i; bool rerun = 1; ifstream infile; ofstream outfilebb; outfile.open("LIBRARIANSHAVE347CATS.DAT",ios::out); while(rerun) { cout<< "Enter the Dewey Decimal Number please: "; cin>> books.dewey; cout<< "Enter the Title of the book please: "; getline(cin, books.title); cin.ignore(80, '\n'); cout<< "Enter the Author of the book please: "; getline(cin, books.author); cout<< "Enter the Year of Release please: "; cin>> books.released; cout<< "Enter the Number of Pages please: "; cin>> books.num_pages; cout<< "<-----Type----->"<> i; if(i == 1) { cout << "You chose Fiction\n"; } if(i == 2) { cout << "You chose Non-Ficiton\n"; } if(i == 3) { cout << "You chose Reference\n"; } if(i == 4) { cout << "You chose Pond\n"; } if(outfile) { outfile << books.dewey; outfile << books.title << endl; outfile << books.author << endl; outfile << books.released << endl; outfile << books.num_pages << endl; outfile << i << endl; } else { cout << "An error occurred while opening the file. \n"; } cout << "Do you want to run this program again? Press 1 if so, 0 if no." << endl; cin >> rerun; //cin.ignore(80, '\n'); } outfile.close(); **infile.open("LIBRARIANSHAVE347CATS.DAT",ios::in); outfilebb.open("Bigbook.dat",ios::app); while(infile) { infile >> books.dewey; infile >> books.title >> endl; infile >> books.author >> endl; infile >> books.released >> endl; infile >> books.num_pages >> endl; infile >> i >> endl; if (books.num_pages > 200) { if(outfilebb) { outfilebb << books.dewey; outfilebb << books.title << endl;**

    C / C++ / MFC help ios question announcement learning

  • final loop
    K klutez123

    So this is the last loop I need for my project. I need to open the file LIBRARIANSHAVE347CATS.DAT and send the info to the screen. Then, it has to search through all entered data, and create a new output file called "bigbook.dat" in which all entered books of over 200 pages have all their data sent to the new file. So far this is what I have: struct card_catalogue //declare a structure then declare all { //the varibles needed for the struct float dewey; string title; string author; int released; int num_pages; enum typeofbook {fiction = 1, nonfiction, reference, pond}; }; int main() { card_catalogue books; ofstream outfile; int i; cout<< "Enter the Dewey Decimal Number please: "; cin>> books.dewey; cout<< "Enter the Title of the book please: "; getline(cin, books.title); cin.ignore(80, '\n'); cout<< "Enter the Author of the book please: "; getline(cin, books.author); cout<< "Enter the Year of Release please: "; cin>> books.released; cout<< "Enter the Number of Pages please: "; cin>> books.num_pages; cout<< "<-----Type----->"<> i; //books.typeofbook = i; if(i == 1) { cout << "You chose Fiction\n"; } if(i == 2) { cout << "You chose Non-Ficiton\n"; } if(i == 3) { cout << "You chose Reference\n"; } if(i == 4) { cout << "You chose Pond\n"; } outfile.open("LIBRARIANSHAVE347CATS.DAT",ios::app); if(outfile) { outfile << books.dewey; outfile << books.title << endl; outfile << books.author << endl; outfile << books.released << endl; outfile << books.num_pages << endl; outfile << i << endl <

    C / C++ / MFC ios announcement learning

  • enum
    K klutez123

    I put enum typeofbook {fiction, nonfiction, reference, pond}; in a structure which is then declared the structure as books. I am asking the user which type of book he is entering information for, 1 fiction, 2 nonfiction, 3 reference, 4 pond. Once they enter either the number or name for type of book, I need to cin>> the information or something so I can store into a text file.

    C / C++ / MFC question learning

  • enum
    K klutez123

    how do I input info entered for a enumerated object? enum typeofbook {fiction, nonfiction, reference, pond}; I'm trying to prompt the user which type of book they are entering information for. Any ideas would be appreciated. thanks

    C / C++ / MFC question learning

  • pointers and structures
    K klutez123

    Right now I'm creating a program that declares a structure, which also has enum inside it. Now I believe I declare the structure right, but the next step is to create a loop that has the user enter 5 different items of data for library information. But I have to use pointers, so when the loop runs and I enter the information, the data has to be sent to a structure variable only once all six attributes are entered, and the pointer values should be used to create the structure. I was given an example: cin >> a; cin >> b; library.dewey = &aptr; This is my code so far: struct card_catalogue //declare a structure then declare all { //the varibles needed for the struct float dewey; string title; string author; int released; int num_pages; enum type {fiction, nonfiction, reference, pond}; }; int main() { card_catalogue books; cout<< "Enter the Dewey Decimal Number please: "; cin>> books.dewey; cout<< "Enter the Title of the book please: "; getline(cin, books.title); cout<< "Enter the Author of the book please: "; getline(cin, books.author); cout<< "Enter the Year of Release please: "; cin>> books.released; cout<< "Enter the Number of Pages please: "; cin>> books.num_pages; cout<< "Enter the type: "; getline(cin, books.type); return 0; }

    C / C++ / MFC tutorial announcement learning

  • pointers and structures
    K klutez123

    Right now I'm creating a program that declares a structure, which also has enum inside it. Now I believe I declare the structure right, but the next step is to create a loop that has the user enter 5 different items of data for library information. But I have to use pointers, so when the loop runs and I enter the information, the data has to be sent to a structure variable only once all six attributes are entered, and the pointer values should be used to create the structure. I was given an example: cin >> a; cin >> b; library.dewey = &aptr; This is my code so far: struct card_catalogue { float dewey; string title; string author; int released; int num_pages; enum type {fiction = 1, non-fiction, reference, pond}; }; int main() { return 0; }

    Managed C++/CLI tutorial

  • help with arrays
    K klutez123

    I am looking for help how to output a chart into the arrays, all i was given was that i need to put a loop inside of a loop. The chart given is: 0 0 0 0 0 1 2 3 0 2 4 6 0 3 6 9 This is what I have so far: // Compiler Directives #include "stdafx.h" #include "pattern.h" #include #include #include #include #include // Global Declarations using namespace std; CWinApp TheApp; /***************************************************** * MAIN * *****************************************************/ int main() { int j; int i; int test_score[4][4]; for(i = 0; i < 4; i++) { for(j= 0; j < 4; j++) { test_score[i][j] = 0; cout<< test_score[i][j]; } cout<

    C / C++ / MFC regex help tutorial

  • help with arrays [modified]
    K klutez123

    sorry in advanced if i posted in wrong forum I am looking for help how to output a chart into the arrays, all i was given was that i need to put a loop inside of a loop. The chart given is: 0 0 0 0 0 1 2 3 0 2 4 6 0 3 6 9 This is what I have so far: // Compiler Directives #include "stdafx.h" #include "pattern.h" #include #include #include #include #include // Global Declarations using namespace std; CWinApp TheApp; /***************************************************** * MAIN * *****************************************************/ int main() { int j; int i; int test_score[4][4]; for(i = 0; i < 4; i++) { for(j= 0; j < 4; j++) { test_score[i][j] = 0; cout<< test_score[i][j]; } cout< -- modified at 9:17 Wednesday 18th April, 2007

    Managed C++/CLI regex help tutorial

  • Help with vector/array
    K klutez123

    I have no problem with the code when compiled, I just need help on how to output the high and low temperature

    C / C++ / MFC ios database graphics data-structures help

  • Help with vector/array
    K klutez123

    I need help with the following code that will also output the warmest and coldest days entered: // Compiler Directives #include "stdafx.h" #include "hightemp.h" #include #include #include #include #include // Global Declarations using namespace std; CWinApp TheApp; /***************************************************** * MAIN * *****************************************************/ int main() { vector daily_temp(31,0); // array of daily high temperatures int num_values; // number of days in a row to enter values int index; // index for loop counter and array access double average_high; // calculated average high temperature int total = 0; // used to total temps before averaging do // loop to ask for number of days until valid input is received { cout << "Enter the number of days for which you have data: "; cin >> num_values; if ((num_values < 1) || (num_values > 31)) { cout << "The number of days must be in the range 1 to 31" << endl; } } while ((num_values < 1) || (num_values > 31)); // The following loop gets the high temperatures from the user for as // many days as the user specified in num_values. for(index = 0; index <= (num_values - 1); index++) { cout << "Enter the high temperature for day " << index + 1 << ": "; cin >> daily_temp[index]; // input value into array } // Print the values in the array to the screen. cout << "The array contains high temperatures for " << num_values << " days.\n"; cout << "The values are as follows.\n"; for(index = 0; index <= (num_values - 1); index++) { cout << "Day " << index + 1 << ": " << daily_temp[index] << endl; total = total + daily_temp[index]; // update total for averaging } // Calculate average by typecasting total and num_values to doubles // before dividing and assigning the result to average_high. average_high = double(total) / double(num_values); // Print the results to the screen. cout.setf(ios::fixed); cout << "The average high temperature during the " << num_values << "-day period was " << setprecision(2) << average_high << " degrees.\n"; return 0; }

    C / C++ / MFC ios database graphics data-structures help

  • AMX
    K klutez123

    Counter-Strike 1.6. The admin commands are input through Steam at www.steampowered.com I tried to google to see if Steam supports .NET but nothing came up -on the other hand- There is a "guide" at www.amxmodx.org on the constants and such. They also have downloadable plugins and you can open the .sma files in notepad. The following is a link to plugins that record stats: http://www.amxmodx.org/compiler.php?mod=2&cat=3&plugin=&author=&go=search[^] So pretty much when admin uses: amx_kick or amx_slap or amx_ban it needs to record his STEAM id and write it to a text file in the database.

    Managed C++/CLI

  • AMX
    K klutez123

    Looking for someone who has basic knowledge of writing a AMX plugin for CS 1.6 Basically it has to take a command the admin does and store it in a text file on a server to check for proof of admin abuse.

    Managed C++/CLI

  • file input program
    K klutez123

    I'm trying to make a program to open a file named stats.dat and input name, batting average, and home run amount. So far I have: #include "stdafx.h" #include "statistics.h" #include #include #include // Global Declarations using namespace std; CWinApp TheApp; /***************************************************** * MAIN * *****************************************************/ int main() { //variable declarations char end, lc; //declare char int hr_num; //declare int float bat_avg; //declare float string name; //declare string ofstream outfile; //declare an ofstream filestream outfile.open("FLOATS.DAT",ios::app); //open file for output lc = 'y'; if(outfile) //if file opened successfully { while (lc = 'y') // { cout << "Enter the name of the player: "; getline(cin, name); outfile << name<> bat_avg; outfile << bat_avg<> hr_num; outfile << hr_num<> lc; } //while x does not equal 0 } else //if file failed to open... { cout << "Error opening file.\n"; //output error message } outfile.close(); //close file return 0; //terminate program } My problem is that after the .exe runs through once and will skip lines the second time through. All help is appreciated

    C / C++ / MFC help ios

  • opening a file for output
    K klutez123

    i have to open ADDRESS.DAT i used in a previous assignment, i put the file in the same project folder as this assignment but i keep getting an error. The assignment is to open the ADDRESS.DAT file and output it to the screen: the error: c:\documents and settings\lutyk7\desktop\projects\project 8-3\project 8-3\project 8-3.cpp(75) : error C2678: binary '>>' : no operator found which takes a left-hand operand of type 'std::basic_ostream<_Elem,_Traits>' (or there is no acceptable conversion) the code: #include "stdafx.h" #include #include #include #include // The one and only application object CWinApp theApp; using namespace std; /****************************************** * M A I N * ******************************************/ int main() { string name, address, city, state, x; ofstream outfile; //Declare file stream name outfile. ifstream infile; cout<<"Please enter your name: "; getline(cin, name); cout<<"Please enter your address: "; getline(cin, address); cout<<"Please enter with city: "; getline(cin, city); cout<<"Please enter your state: "; getline(cin, state); cout<<"Enter your zipcode: "; cin>>x; outfile.open("ADDRESS.DAT",ios::app); //Open file for output. if(outfile) { outfile<> endl; cout << address >> endl; cout << city >> ", " >> state >> " " >> x >> endl; cout << name << endl; cout << address << endl; cout << city << ", " << state << " " <

    C / C++ / MFC c++ ios help

  • Temperature conversion
    K klutez123

    i need to make the conversions to its own function. i was told to use: void convert_to_f() void convert_to_c() as function names. please help, thank you #include int main() { int temp, fahr, cel, f_out, yes, no, choice, c_out; do { cout<<"Please choose one of the following conversions\n"; cout<<"1 - Celcius to Fahrenheit.\n"; cout<<"2 - Fahrenheit to Celcius.\n"; cout<<"Please select at this time: "; cin>>temp; switch(temp) { case 1: cout<<"You choose Celcius to Fahrenheit.\n"; cout<<"Please enter the degrees in Celcius: "; cin>>cel; f_out = (cel * 1.8) + 32; cout<<"The degrees converted into Fahrenheit is "<>fahr; c_out = (fahr - 32) / 1.8; cout<<"The degrees converted into Celcius is "<>choice; } while(choice==1); return 0; }

    Managed C++/CLI help

  • Help With Change
    K klutez123

    Hi I need to make a program where you get the price of an item and you get the change needed back. And then it needs to show the bills and cents given back to the customer. such as Twenties: 2 Tens: 1 Fives: 1 Singles: 4 Quarters: Dimes: Nickles: Pennies: The only part I don't know how to do the output of the 20's and such, i understand everything before it. Please help Thanks (written in C++) Also if you have extra time what is an up to date program to use for C++ code and how much/where can i get it Kevin -- modified at 17:11 Sunday 19th March, 2006

    Managed C++/CLI c++ sales help tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups