Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
8
Posts with Downvotes
7
Downvoting Members
4
2 Commented Posts
0 Endorsements
~7K People Reached
Favorite Forums
Favorite Tags
Member Avatar for AmerJamil

i have a question that. is it not possible that main do not return any value, and the returning value of main is void, why returning value of main should always be int, when we write [code] void main() { } [/code] mostly people here on DANIWEB ask to write …

Member Avatar for EricStens
0
2K
Member Avatar for AmerJamil

i have to get 2 numbers (each of length 20 digits) from user and have add them and display the result (using arrays) . i have no idea how to add such a long digit number...please tell me how can i add both numbers. your quick response will be highly …

Member Avatar for JamesCherrill
0
1K
Member Avatar for AmerJamil

When im using fstream.h its giving an error with using namespace std, how ever when i use simple fstream without .h , it is not giving error but not reading the file, How can i use fstream object using fstream.h header file along with using namespace std? Your urgent response …

Member Avatar for deceptikon
0
947
Member Avatar for AmerJamil

i am having problem in type casting,the result of the following code is giving -64, however it should be 192, why this is so? [CODE] #include <iostream> using namespace std; int main() { int a; a=char (192); cout<<a; return 0; } [/CODE]

Member Avatar for MandrewP
0
241
Member Avatar for AmerJamil

i'm beginner in C++, please help me in display function to display the linked list of my following program thanks [CODE] #include <iostream> using namespace std; template< class T > class Lnode { public: T data; Lnode< T > *next; }; template< class T > class List { public: int …

Member Avatar for mazzica1
0
151
Member Avatar for AmerJamil

im totally new in object oriented progrmng in C++ course, i have to create a table in which i have to answer in yes /no that for example if class can be public so the answer is Y and if class can not be public then answer will be N. …

Member Avatar for AmerJamil
0
93
Member Avatar for AmerJamil

i had a quiz ,im confused about answer..can you please clarify which of the following is true? with reason 1. int a[ ][ ] ={{2,3},{3,4},{4,5}}; i. It will create a 3*2 matrix and initialize it ii. It will create a 3*2 empty matrix iii. It will actually create a single …

Member Avatar for VernonDozier
0
124
Member Avatar for AmerJamil

can any one please tell me am i done my question right? my question is to store store 1035 to 1265 random in a character array and display the array. and im not sure whats this srand is doing? [code] #include<iostream> #include<stdlib> #include<conio.h> int main(){ srand(1035); char b[30]; for(int i=0;i<30;i++) …

Member Avatar for Ancient Dragon
0
177
Member Avatar for AmerJamil

i have two questions 1st is can any one please tell me what is the role of setprecision in C++, why it is used? 2nd is : this statement [code]totalS+=sales[i][j];[/code] is equivalent to what, i.e what is the role of this += thanks alot

Member Avatar for frogboy77
0
144
Member Avatar for AmerJamil

first of all please any one tell me what is a armstrong number. i have a problem statement in c++,cant find any logic to work on it.. can any one give me some hints to do it? please also explain my problem statement in simple wordings thats whats my problem …

Member Avatar for Ancient Dragon
0
136
Member Avatar for AmerJamil

i have to declare an integer array, float array ,and character array of 85020 indexes..when im declaring it ..my compiler is giving error that array size is too large. please tell me how can i declare array of this size. [code] <iostream> <conio.h> int main() { int a[85020]; float b[85020]; …

Member Avatar for Ancient Dragon
0
171
Member Avatar for gregorynoob

okay, i don't have a problem coding the game... that part would be easy. but the problem is to output the lease number of rotations needed to complete the game, so for example... 123 => 413 456 => 526 789 => 789 (rotation of the top left corner) that's what …

Member Avatar for frogboy77
0
162
Member Avatar for AmerJamil

Hello all.. can any one please tell me..that how many null(s) i.e '\0' are in 2-Dimensional character array?? thanks. your quick response will be highly appreciated :)

Member Avatar for mrnutty
0
53
Member Avatar for AmerJamil

My question is when user enter any key from the keyboard including arrow keys, it should print one asterisk * , when user will again press any key it will add one more asterisk and ,and when user again press any key from keyboard it should add one more asterisk, …

Member Avatar for AmerJamil
0
232
Member Avatar for AmerJamil

Question : Please Copy array A into 1st portion of array F .assume float a[11], f[34]; im using compiler Borland 5.02, please tell me hows so far my code is correct? [CODE] #include<iostream> #include<conio> main() { float a[11],f[34]; int i; for (i=0;i<11;i++) { cin>>a[i]; } for (i=0;i<11;i++) { f[i]=a[i]; } …

Member Avatar for abdelhakeem
0
153
Member Avatar for AmerJamil

inputs a string from the user and coverts all the capital letters to small letters and all the small letters to capital letters. Example: If the user enters string “HeLLo wOrLd”, the program will display it as “hElllO WoRlD” i have written following code.. please tell where im wrong..as it …

Member Avatar for WaltP
-2
475
Member Avatar for AmerJamil

Question is : Get two strings from user. Join first string with the second string with a space. Store in another string and display it. Example: Enter first string: Hello Enter second string: World Hello World (built in function for string concatenation is not allowed) im newbie in c++ and …

Member Avatar for AmerJamil
0
191
Member Avatar for AmerJamil

Question is: Declare two arrays of size 5. Get input from the user. Declare a third array of size 10. Put the values of array1 in even indexes of array3 and values of array2 in odd indexes of array3. Example Array1 1 2 3 4 5 Array2 6 7 8 …

Member Avatar for Narue
0
250
Member Avatar for koolman123

Well, please excuse my noobiness, and my little skill with C++, but give me a break, I'm young. Not for homework, just for the sake of being able to do it,I was trying to make a code for the Pythagorean theorem, and here is the start of the code (of …

Member Avatar for Fbody
0
217