User Profile

Collapse

Profile Sidebar

Collapse
joeschnell
joeschnell
Last Activity: Oct 20 '07, 03:22 PM
Joined: Apr 19 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • joeschnell
    replied to Converting Roman numerals to integers
    in C
    If you send me 100 more lines of code added to this build I abandoned I will help you some more. I'll need to see some genuine effort. Later
    See more | Go to post

    Leave a comment:


  • joeschnell
    replied to Converting Roman numerals to integers
    in C
    Code:
     //Assignment 9&10   CIS 247
    //Joseph L Matzke   Roman to decimal
    
    #include "ext_roman_number.hpp"
    #include <iostream>
    #include <math.h>
    ExtRomanNumber ExtRomanNumber::operator+(
        ExtRomanNumber & rhs
      )
    {
      return ExtRomanNumber(numberDecimal + rhs.numberDecimal);
    }
    
    ExtRomanNumber ExtRomanNumber::operator-(
        ExtRomanNumber
    ...
    See more | Go to post

    Leave a comment:


  • joeschnell
    replied to Converting Roman numerals to integers
    in C
    I'm in his class--I can help only by telling this is how I start. We were assigned this yesterday and I have several dozen source codes that I am looking at, however none are going to comply with all the parameters he has placed in the program outline. If you are completely lost I don't know what to tell you, week 14 so were closing in on the end of the end.
    If I see some posts from you that look like you've spent the 20 to 30 hours a week...
    See more | Go to post

    Leave a comment:


  • you should ask grigoletti, he's real good at this.
    See more | Go to post

    Leave a comment:


  • joeschnell
    replied to Converting Roman numerals to integers
    in C
    hey daming, the code you've posted amounts to nothing more than what grigoletti has outlined so far as to what type of functions to use and what to name them. the //commented out sections are simply outlines from the text. when i posted this site i cautioned everyone nobody here will write code for you, however after showing a good effort they will help you find some glitches and perhaps suggest some other types of functions. haven't seen you around...
    See more | Go to post

    Leave a comment:


  • joeschnell
    replied to C++ toupper()
    in C
    You would do well to remove the arguments in the main () when starting to use Dev, using their template causes you to follow those argument parameters. I would get rid of the template return exit success also, simply build a template with your most often used headers, int main () and a return 0; I like to add a system ("pause"); also prior to the return statement otherwise a lot of programs I write I cannot get to display in the cmd screen....
    See more | Go to post

    Leave a comment:


  • joeschnell
    replied to Class Constructors
    in C
    What do you do when you've forgotten what you named your thread and you can't find it? i'd appreciate it

    <snipped>
    See more | Go to post
    Last edited by Banfa; Aug 15 '07, 11:50 AM. Reason: Removed email address

    Leave a comment:


  • joeschnell
    replied to Convert Integer to Binary
    in C
    Python, what does itoa mean in your code?
    See more | Go to post

    Leave a comment:


  • joeschnell
    replied to help a newbie out plz
    in C
    google C++ in 21 days
    See more | Go to post

    Leave a comment:


  • joeschnell
    replied to Class Constructors
    in C
    Hey Python I'm looking for my post on classes and ran across yours. Looks like your a term ahead of me, are you a GSP major? I have a post here somewhere and it deals with classes and constructors, having written our first program using structs now we're into classes, seemingly quick too. Joe..

    Good luck, sounds confusing.
    See more | Go to post

    Leave a comment:


  • At line 17 in this snippet of my code if the user enters an integer, well it brings up the total for one book only and should price out for number of units, but I'll fix that once I rid it of the infinite loop that occurs. If the user enters a char character the program goes into an infinite loop and my
    cin >> n; should not bring that about. Does anyone see where my err is? I've been staring at this thing for a long time now. The program...
    See more | Go to post

    Leave a comment:


  • Classes and constructors/anyone understand them first timer

    Let me post my code I'm having a problem with first and I'll comment following

    Code:
    				showItem(book[choice-1]);   //displays the array address user choses less one
    				break;
    			case 0:
    				cout << "Here are all the books available :" << endl;
    				for (int i=0; i < 8; i++) //my array loop, c++ array elements begin at zero!
                                    {
    				   show
    ...
    See more | Go to post

  • joeschnell
    replied to Qsort reading from file sorting using array
    in C
    If I did it was inadvertant, at least I know Dev didn't develop some more problems on me-I'm not fond of using VS as my only choice.
    Thanks
    See more | Go to post

    Leave a comment:


  • joeschnell
    started a topic Qsort reading from file sorting using array
    in C

    Qsort reading from file sorting using array

    The compiler is taking my code here
    Code:
    // stocks.cpp : Defines the entry point for the console application.
    //
    
    //#include "stdafx.h"
    
    #include <iostream>
    #include <fstream>
    #include <string>
    
    using namespace std;
    
    struct stock {
    	char company[256];
    	char symbol[4];
    	double price;
    	double change;
    	double
    ...
    See more | Go to post

  • Python you've helped me through my first two weeks and I can't thank you enough. I now, have an understanding of structs and how they work, hard coding and why it is not good to do, much easier to change one attribute than it is to comb through code looking for every instance of your hard coded crap. I understand the while loop much deeper than I did, I picked up several new short cuts such as /n and /t which are handy.
    Biggest thing is I've...
    See more | Go to post

    Leave a comment:


  • I don't access any members of struct per say using the '.' operator in the above code, which I need to do. The entire thing is this supposedly is an EASIER way to begin to understand OOP, which I'm not too sure about. Using a struct for your first program that is kind of object oriented as movie has sub sets of itself which makes it an object, correct? movie has, title, rating, et cetera so it has attributes making it an object, even though it is...
    See more | Go to post

    Leave a comment:


  • OK, few questions
    Code:
     #include <iostream>
    #include <iomanip>
    #include <cstdlib>
    #include <string>
    using namespace std;
    struct movie
    {
           char rating; //G,PG,PG13,R17,X
           string movie; //Oceans 13, Oceans 12, Oceans 11, Braveheart, Harry Potter, Caligula
           bool releaseDate;//released-inTheatre
           char language;//English E, Spanish S,
    ...
    See more | Go to post

    Leave a comment:


  • So when I declared the elements in my struct, all of the elements are basically the same thing as a variable, why given they've been declared than do they not act in the code as if they are declared variables?
    I know how the prototype works, but, now I'm not using a prototype like I have in the past such as movie(&char, &int, &double, &string), now I'm using the prototype from the struct such as
    movie (choice = movie1)...
    See more | Go to post

    Leave a comment:


  • Code:
     /*{
          int choice = 0;
    cout << "Choose a movie by entering 1 thru 6" << endl;
    cout << "Selection :";
    cin >> choice;
    }*/
    //playMovie [movies[choice - 1]);
    do
    
    {
    
        cout << "Choose a movie by entering 1 thru 6" << endl;
    
        cout << "Selection :";
    
        cin >>
    ...
    See more | Go to post

    Leave a comment:


  • Code:
     {
          int choice = 0;
    cout << "Choose a movie by entering 1 thru 6" << endl;
    cout << "Selection :";
    cin >> choice;
    }
    
    movie myMovie;
    switch (choice)
    {
        case 1:
             myMovie = movie1;
             break;
        case 2:
             myMovie = movie2;
             break;
        case 3:
             myMovie
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...