User Profile

Collapse

Profile Sidebar

Collapse
ayman723
ayman723
Last Activity: May 12 '07, 06:34 PM
Joined: Sep 21 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • rest of code

    [ code ]

    void main() {
    int arr[arrSize];
    int temp[arrSize];
    int choice =-1;
    /////////////////////////////////////////////
    cout<<"Array is shffiling ";
    shuffelArray(ar r);
    cout<<endl<<"-------------------------------------------"<<endl;...
    See more | Go to post

    Leave a comment:


  • here is the code I came up with. I had to split it, please copy and past the two halves so you would have an idea about the program.
    [ code ]

    #include <iostream>
    #include <CONIO.H>
    #include <STDLIB.H>
    #include <STDIO.H>
    #include <TIME.H>
    #include <FSTREAM>
    ///////////////////////////////////////////////////////
    using namespace std ;
    const...
    See more | Go to post

    Leave a comment:


  • ayman723
    started a topic Help With Changing Integer Data Type Into Character?
    in C

    Help With Changing Integer Data Type Into Character?

    hi

    I had this problem where I was asked to :
    Write a program that compares and records the time taken to sort an array of social security numbers using four sorting algorithms.

    The program must generate random social security numbers. Each group must do an extensive testing on several randomly generated arrays so that a meaningful comparative analysis can be made on different sorting methods. Increase the size...
    See more | Go to post

  • the rest of the code

    Code:
    void main() {
                           int arr[arrSize];
                           int temp[arrSize];
                           int choice =-1;
                           /////////////////////////////////////////////
                           cout<<"Array is shffiling ";
                           shuffelArray(arr);
                           cout<<endl<<"-------------------------------------------"<<endl;
    ...
    See more | Go to post

    Leave a comment:


  • the code

    here is the code I came up with. I had to split it, please copy and past the two halves so you would have an idea about the program.

    Code:
    #include <iostream>
    #include <CONIO.H>
    #include <STDLIB.H>
    #include <STDIO.H>
    #include <TIME.H>
    #include <FSTREAM>
    ///////////////////////////////////////////////////////
    using namespace std ;
    ...
    See more | Go to post

    Leave a comment:


  • ayman723
    started a topic Help With Changing Integer Data Type Into Character?
    in C

    Help With Changing Integer Data Type Into Character?

    hi

    I had this problem where I was asked to :
    Write a program that compares and records the time taken to sort an array of social security numbers using four sorting algorithms.

    The program must generate random social security numbers. Each group must do an extensive testing on several randomly generated arrays so that a meaningful comparative analysis can be made on different sorting methods. Increase the size...
    See more | Go to post

  • thanks a million for your help. :)
    See more | Go to post

    Leave a comment:


  • can some one figure out what is the error message is about in my code

    hi;

    I have this code in my book and when I copied it into my compiler into two files, one is header and the other is .cpp. it gives me an error, I'm sure I copied it right but can't figure out the error.

    here is my code:

    Time.h
    // declaration of class time.
    // membar functions defined in Time.cpp

    // prevent multiple inclusions of header file

    #ifndef TIME_H...
    See more | Go to post

  • ayman723
    replied to I need help with array problem.
    in C
    hi;

    I have fixed the program as far as I can, and still can't make it work. anyone can see where the problem in this code. pleassse

    code:

    // program uses randon number generation to create sentences
    #include <iostream>
    #include <stdlib.h>
    #include <time.h>
    #include<ctype. h>
    #include<cstrin g>
    const int row= 20;

    const...
    See more | Go to post

    Leave a comment:


  • ayman723
    replied to I need help with array problem.
    in C
    hi:

    thanks for answering my request, but I have corrected the position to be

    position = (1+ rand() % 4 );

    and it doesn't give me anything.

    any help will be greatly appreciated

    ayman
    See more | Go to post

    Leave a comment:


  • ayman723
    started a topic I need help with array problem.
    in C

    I need help with array problem.

    hi,
    I'm trying to write a program in wich I would generate 20 sentences out of
    4 arrays(articles ,nouns,preposit ion,verb).I have to select an item at random
    from each array and concatetane each one of those selections to form a sentence,
    I have to form 20 sentences. I have no compiling errors but when I execute
    the program is giving an execption. This is the code I have


    // program uses randon...
    See more | Go to post

  • ayman723
    replied to help with a program
    in C
    I need help please...
    See more | Go to post

    Leave a comment:


  • ayman723
    replied to help with a program
    in C
    I need help with an array problem please ..

    can any one help please..
    See more | Go to post
    Last edited by ayman723; Oct 30 '06, 06:38 AM. Reason: changing the title

    Leave a comment:


  • ayman723
    started a topic help with a program
    in C

    help with a program

    hi,
    I'm trying to write a program in wich I would generate 20 sentences out of
    4 arrays(articles ,nouns,preposit ion,verb).I have to select an item at random
    from each array and concatetane each one of those selections to form a sentence,
    I have to form 20 sentences. I have no compiling errors but when I execute
    the program is giving an execption. This is the code I have


    // program uses randon...
    See more | Go to post

  • ayman723
    replied to need explination !
    in C
    thnks a million, that was easy :)

    thanks again for your quick responce
    See more | Go to post

    Leave a comment:


  • ayman723
    started a topic need explination !
    in C

    need explination !

    I have this code and can't understand the result

    code

    # include < iostream >
    using std::cout;
    int main()
    {

    for ( int x=1; x<= 10; x+=3 )
    {
    if ( x<5)
    continue;
    cout << x*x <<" ";
    }

    }

    why do I get 49 and 100 , can anyone explain in plain english please.


    tha...
    See more | Go to post

  • ayman723
    replied to program error
    in C
    thanks a million, it worked.

    :)
    See more | Go to post

    Leave a comment:


  • ayman723
    started a topic program error
    in C

    program error

    hello all;

    I was running this simplep program and get an error . can anyone tell me whats wrong with it

    code

    # include < iostream >
    using std::cout
    int main()
    {

    for ( int x=1; x<= 10; x++ )
    {
    if ( x>5)
    break;
    cout << x <<" ";
    }



    error message

    syntax...
    See more | Go to post

  • ayman723
    replied to help with array
    in C
    thanks a million for your fast respond.
    See more | Go to post

    Leave a comment:


  • ayman723
    started a topic help with array
    in C

    help with array

    hi all;

    I need help with this simple program;

    I was asked to declare an array of int type called value with 5 elements [ 2,4,6,8,10] . I want to use while structre to change the value of each element in the array to be the square of its original value. I made this code, but its not working,

    # include < iostream >

    int main()
    {
    int value []= { 2,4,6,8,10 };
    int i=0...
    See more | Go to post
No activity results to display
Show More
Working...