User Profile

Collapse

Profile Sidebar

Collapse
jackly84
jackly84
Last Activity: Apr 16 '11, 08:54 AM
Joined: Mar 28 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jackly84
    replied to Error Check.
    in C
    I have it going into an Array..
    But how do i loop over the array to peak into the array to see if i have or have not enter that ID..
    See more | Go to post

    Leave a comment:


  • jackly84
    replied to Error Check.
    in C
    My other Error check if to make sure they Enter a Number..

    but what if i enter 1232 for one ID, 23232 for the next and then in my 3rd Record enter 1232, how can i tell the User that this is taken ?
    See more | Go to post

    Leave a comment:


  • jackly84
    started a topic Error Check.
    in C

    Error Check.

    ok, I am after looking Every Where and can't seem to find any code on this.

    how do i stop a user from Entering in the Same number twice ?
    Code:
    	while((cout<<"Enter Student Number: ")&&(!(cin>>record[n].student_number)||record[n].student_number<0)){
                cout<<"Invalid Input!"<<endl;
                cin.clear();
                cin.ignore(1000,'\n');
    ...
    See more | Go to post

  • jackly84
    replied to Display Student Record..
    in C
    ok the record[n].studentname etc. works really well thanks
    See more | Go to post

    Leave a comment:


  • jackly84
    replied to Display Student Record..
    in C
    ok then that record[n]-> and giving me
    Member reference type 'Student' is not a pointer..
    See more | Go to post

    Leave a comment:


  • jackly84
    started a topic Display Student Record..
    in C

    Display Student Record..

    Code:
     else if ( choice == 1)			
                for (int n = 0; n < N_STUDENT;n++)
                {		
                    
                    cout << "Student Number: " << record->student_number << endl;
                    cout << "Student  Name: " << record->studentname << endl;
                    cout << "Student Address: " << record->Address
    ...
    See more | Go to post

  • jackly84
    replied to Showing Array, and showing Records
    in C
    OK just got the Read in Student Record in Working
    Just Change the out
    Code:
    << "Student Number: " << record[n].student_number << endl;
    To
    Code:
    out << "Student Number: " << record->student_number << endl;
    just trying to fix the Read in Array
    See more | Go to post

    Leave a comment:


  • jackly84
    started a topic Showing Array, and showing Records
    in C

    Showing Array, and showing Records

    I'm trying to show out my array
    Code:
    else if (choice == 6)
            {
                const int student; // Array Size
                int N_STUDENT[record]; //the array
                //initialize values
                for (int i=0;i<student;i++) //go through all elements
                cout<<i<<'\t'<<student[n]<<endl; //print indexnumber and value
            }
    And show...
    See more | Go to post

  • jackly84
    replied to Select Sorting
    in C
    ok
    Code:
        template <class dType> 
        void selectSort( dType x[], int n) 
        { 
        etc...
    is giving me no errors
    when i did
    Code:
    else if ( choice == 2)
            {
                selectSort( x ,n)
                for( int i=0; i < n; i++)
                    cout << "Select Sorting is Done" << n[i] << endl; 
            }
    ...
    See more | Go to post

    Leave a comment:


  • jackly84
    replied to Select Sorting
    in C
    this is my Array
    Code:
    struct student
    {
    	int student_number;              // Student number of student
        string studentname;             // Name of student
    	string Address;                //Address of Studnet
        int CourseCode;               //Course Code 
        string CourseName;           // Name of Course 
    };
    
    
    /*****************************************************************************/
    ...
    See more | Go to post

    Leave a comment:


  • jackly84
    replied to Select Sorting
    in C
    Hoping to get the above select sort working but with no joy
    See more | Go to post

    Leave a comment:


  • jackly84
    replied to Select Sorting
    in C
    I want to Sort the Student Records, by Student ID. get them in Order.

    Code:
     cout << " Enter Student Number: ";
            cin >> record[n].student_number;
    so if i enter in 292, 2032, 200, 190, etc.. it comes out like 190,200,292,303 2 etc.
    See more | Go to post

    Leave a comment:


  • jackly84
    started a topic Select Sorting
    in C

    Select Sorting

    i have a Select Sorting i having trouble With..
    Code:
    template <class dType>
    void selectSort( int x[], int n)
    {
        int smallPos, smallest;
        for (int i=0; i <n; i++)
        {
            smallPos = i;
            smallest = x[ smallPos];
            
            for (int j=i +1; j < n ;j ++)
                
                if (x[j] < smallest)
                {
    ...
    See more | Go to post

  • jackly84
    replied to Try catch
    in C
    Thanks, the try catch thing was giving me a headache
    See more | Go to post

    Leave a comment:


  • jackly84
    started a topic Try catch
    in C

    Try catch

    how do i place a try catch Statement into this ?


    cout <<"Enter Student Number: ";
    cin >> record[n].student_number ;

    Making sure Student Number is only A Number ?

    i cant get this to work
    try
    {
    cout <<"Enter Student Number: ";
    cin >> record[n].student_number ;
    if(!(cin >=a))
    }
    catch
    {...
    See more | Go to post

  • jackly84
    started a topic ComboBox Question

    ComboBox Question

    I have a Comobox1 with Text within it, i want to be able to allow a user to click on any text with in the Comobox and when the user clicks Add the Text should show up in ListBox1 how do i do this?
    See more | Go to post
No activity results to display
Show More
Working...