Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~3K People Reached
Favorite Forums
Favorite Tags
Member Avatar for makan007

I want count the elements in a srand generated array. The array is char array. Can anyone advise me on my void countElements (char* a, int size) function as it don't work? TIA. [CODE] #include <iostream> #include <ctime> #include <cstring> #include <cstdlib> using namespace std; const int MAX = 10; …

Member Avatar for TalhaMoazSarwar
0
791
Member Avatar for makan007

If I have a string. String msg = "I love mickey mouse"; What method can I used to display the string, "mickey"?

Member Avatar for java_programmer
0
134
Member Avatar for makan007

I want to write a java program to read in two integers and then output a random integer number generated between these two integers. Is there any tips? Is there a random Java API (libraries) that I could use? Tks.

Member Avatar for hermann87
0
66
Member Avatar for makan007

[CODE] #ifndef Test_h #define Test_h #endif [/CODE] May I know what are the above 3 syntax for? How can I use it? Is is used only in header file?

Member Avatar for jonsca
0
141
Member Avatar for makan007

I am exploring to add an element, ASCII letters to my random generated 1D array to form new array. How can I use <cstring> header to achieve my result. [CODE] #include <iostream> #include <ctime> #include <cstring> #include <cstdlib> using namespace std; const int MAX = 10; void constructSet1 (char*, int); …

Member Avatar for dusktreader
0
225
Member Avatar for makan007

"I am trying to display an array of digits using rand. My final result need to be: 1) Output all digits <=40 to the left side of array 2) Output digits > 40 to the right side of array Prob: The random digits does seems to change & result incorrect …

Member Avatar for kvprajapati
0
97
Member Avatar for makan007

I would like to know how can the swapping function be implemented using pointers, void swap (int*, int*) [CODE] //function prototypes void swap(int& a, int& b); //function (passing by ref) void swap(int& a, int& b) { int t = a; a = b; b = t; }[/CODE] Is this correct? …

Member Avatar for problemkid
0
465
Member Avatar for makan007

'a' was not declared in this scope. I can't spot the error. Pls advise. [CODE] #include <iostream> #include <cstdlib> #include <ctime> using namespace std; const int MAX = 10; void constructArray_2 (int*, int); int main () { srand (time (NULL)); constructArray_2 (a, MAX); } void constructArray_2 (int *a, int size) …

Member Avatar for makan007
0
228
Member Avatar for makan007

[CODE] #include <iostream> #include <cstdlib> #include <ctime> #include <cstring> using namespace std; struct UKStudent { char name [30]; int noTest; float mark [10]; int final; char grade [30]; }; struct OverseasStudent { char country [30]; char name [30]; int noTest; float mark [10]; int final; char grade [30]; }; union …

Member Avatar for Ancient Dragon
0
403
Member Avatar for makan007

I am doing a program to get a sample infile.txt & ouput to outfile.txt I encountered alot of probs which I can't solve now. I am having issues reading from infile.txt & display the correct result in outfile.txt Pls enlighten me further. The program have to submit this Tue. My …

Member Avatar for jonsca
0
187
Member Avatar for galmca

hi i am right now new to c language..and i have been facing problem in 1 array problem where i have to insert an element in to an array...i would like ur help plzz..i have tried everything but i m not able to make out from where i should start …

Member Avatar for 1o0oBhP
0
440