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;...
User Profile
Collapse
-
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...Leave a comment:
-
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... -
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;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 ;
Leave a comment:
-
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... -
-
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... -
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...Leave a comment:
-
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
aymanLeave a comment:
-
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... -
-
I need help with an array problem please ..
can any one help please..Leave a comment:
-
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... -
thnks a million, that was easy :)
thanks again for your quick responceLeave a comment:
-
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... -
-
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... -
-
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...
No activity results to display
Show More
Leave a comment: