| Subject | Date Asked | Expert |
|
| Char Pointer | 7/5/2008 | Joydeep Bhattacharya |
Q: ! i am initializing the char pointer with 5 names. How will I print it : char ... A: You can do it like this char *p[]={"anand","abhi","John","Ana","Geshu"}; int i for(i=0;i<5;i++) ...
|
| write a do-while loop to calculate total | 6/30/2008 | Prince M. Premnath |
Q: Its me again. I need to write a function total and need to use a do-while loop to calculate the sum ... A: A small effort will sure bring solution to your problem ,just understanding the problem and language ...
|
| C/C++ | 6/29/2008 | Prince M. Premnath |
Q: MY TURBO C WHICH I AM USING ON WINXP DOESN'T CONTAIN WINDOWS.H HEADER FILES ?PLEASE HELP ME A: Hai dear TEJA ! I possibly you are using the lower version of Turbo C++ , i recommend you to ...
|
| data type in c++ | 6/28/2008 | Prince M. Premnath |
Q: i have problem with signed and unsigned char. if i declare unsigned char ch=-123; its output is ... A: Hai dear Deepak ! While assigning a -ve number to an unsigned char type , it will take few ...
|
| data type in c++ | 6/26/2008 | Prince M. Premnath |
Q: i have problem with signed and unsigned char. if i declare unsigned char ch=-123; its output is ... A: Hai dear Deepak ! Certainly there is a difference upon using unsigned and signed data types ! ...
|
| Source Code and Object Code ! | 6/26/2008 | Prince M. Premnath |
Q: whats the difference between source code from the object code in c++? A: The major difference between the source code and the object code is , A human can understand the ...
|
| conversion of a char* to float? | 6/25/2008 | Prince M. Premnath |
Q: I am a student of Computer Programming.I have to ask whether we convert a char* to float as we can ... A: Hai dear M Usman Saleem ! In handy you have a built in function atof() to convert a char* to ...
|
| Linked List Examples | 6/24/2008 | Prince M. Premnath |
Q: I have been suggested to use linked lists as I am facing problems in handling memory. I am not a ... A: Hai Dear Arif ! I didn't have handy code to help you out so I kindly request you to follow the ...
|
| Memory size of Arrays in C++ | 6/23/2008 | Joydeep Bhattacharya |
Q: Sir, I am working on a C program and sometimes need large sized arrays like A[1000][1000] far many ... A: I can understand your problem pretty well coz once I have tried finding you the maximum memory that ...
|
| Plz help me! | 6/18/2008 | Prince M. Premnath |
Q: i want to ask which to start with c or c++ knowing that i have an excellent background in JAVA ? and ... A: As you have informed me that you excellent knowledge in JAVA so you no needs to get back to the ...
|
| Set line width ! | 6/18/2008 | Prince M. Premnath |
Q: how to set the width of the lines of triangel in c++? A: Hai Dear afficere ! Graphics was not considered as ANSI Standards , and of course its ...
|
| difference btwn turbo and borland c++ | 6/17/2008 | Joydeep Bhattacharya |
Q: ... what is the disadvantages of turbo c++ and what s the need of going to borland c++... A: Logically there is no difference between the two but programatically there is some diffence between ...
|
| c++ | 6/16/2008 | Joydeep Bhattacharya |
Q: what is function overriding and function overloading in c++? what are the differences between them? ... A: First try n understand the basic difference between the two OVERLOADING: Both the function has same ...
|
| C | 6/16/2008 | Ralph McArdell |
Q: I am using fedora core 3 for development.For one of the project we got the source code library(SCL) ... A: I cannot say exactly what you need to do as you give no details as to what sort of symbols are ...
|
| loop | 6/15/2008 | Ralph McArdell |
Q: i am doing a program to average grades that is ended by a sentinal. how do i remove an unwanted ... A: Note that as this is almost certainly homework or an assignment of some sort I am not going to show ...
|
| an array of pointers | 6/9/2008 | Eddie |
Q: I know that you asked that I stay away from MFC questions, but my program has multiple edit boxes ... A: Sorry for the delay in responding, I had to refresh a little bit on MFC. I was unable to find ...
|
| Error C2064: term does not evaluate to a function taking 4 arguments | 6/8/2008 | Eddie |
Q: In my code I have an array being initialized before entering a for loop and being populated in the ... A: The reason you are getting a compile error, is that it appears you are trying to invoke the ...
|
| c++ | 6/8/2008 | Ralph McArdell |
Q: Is it any way to prevent changing of number? In c++ I get answer of 2999 / 10 = 299.899994. But it ... A: This is not so much a C++ problem as it is a problem with floating point representation and ...
|
| Hi sir | 6/7/2008 | Eddie |
Q: Why don't we need .h extension header file in c++? A: In C++, the spec dictates that header files have no extension. Personally, I find that to be a bad ...
|
| lValue required | 6/4/2008 | Eddie |
Q: What is lValue? Some of the C++ programs I have written, have flagged an error 'lValue required". So ... A: I have often wondered why they choose this word and not something more descriptive myself. You ...
|
| overloading | 6/4/2008 | Ralph McArdell |
Q: We can overload assignment operator as a normal function.But we can not overload assignment operator ... A: Ummm, to me the term 'normal function' tends more towards meaning a non-member function rather than ...
|
| c program | 6/3/2008 | Joydeep Bhattacharya |
Q: c program to count the number of occurrence of each character of the input character string A: You can find your program in this link http://www.scodz.com/ViewProgram.php?uid=233&link=630 This ...
|
| lValue required | 6/1/2008 | Ralph McArdell |
Q: What is lValue? Some of my C++ programs flag an error: "lValue required". Any help will be greatly ... A: The short answer is that an lvalue is something that can appear on the left hand side of an ...
|
| random long long in C/C++ | 5/28/2008 | Ralph McArdell |
Q: I am trying to generate a uniformly distributed pseudo-random number of 12 digits. The problem is ... A: If you are asking is there an ISO standard C++ library function to produce such a value then, ...
|
| Native C++ XML | 5/27/2008 | Ralph McArdell |
Q: I'm trying to develop a class that needs to store some informations about paths to some data. I was ... A: You seem to be asking at least two separate questions: how to represent your data in memory using ...
|
| Regarding String Manipulation | 5/22/2008 | Ralph McArdell |
Q: How to copy characters after the last occurence of delimeter from a string. Eg:think am having the ... A: How about some logic like so (in pseudo code): delimiter : constant character = '/' ...
|
| c++ | 5/20/2008 | Ralph McArdell |
Q: There are lot of disadvantages of macro, than why we use it? A: Indeed. In fact you should not use macros in C++ unless you have no other choice as C++ has features ...
|
| c++ problem | 5/17/2008 | Saikrishna |
Q: I had problems with data handling in c++. When i use read function to read from a file and show it ... A: I would like to demonstrate the use of read using an example: struct details { int id; char[100] ...
|
| c++ | 5/17/2008 | Saikrishna |
Q: sir i want to calculate the number of the character in a string without strlen and without string ... A: If am not wrong your question is how to find the position of a character in string? answer: ...
|
| C++ File Stream | 5/17/2008 | Saikrishna |
Q: i have created a file in c++ for the library system. now i wanted to search the records by ID wise. ... A: i think this would clear your doubt struct library_books { int id; char[80] name; ...
|
| deep copy of a linked list | 5/14/2008 | Saikrishna |
Q: how can i perform a deep copy of a linked list? i want to copy from linkedlistA to linkedlistB, but ... A: the deep copy certainly requires cloning the object. So when the listA is created with the values ...
|
| complicated syntax | 5/14/2008 | Saikrishna |
Q: i was working with linked lists and dynamic memory when i add a new node to the list i have the ... A: *& is a pointer variable containing the reference of the address. so any modification to this will ...
|
| C++ programming | 5/7/2008 | Ralph McArdell |
Q: Sir, I am new to this prog. My prog contains statements as given below: #define COM1 0#define ... A: Well the sort of thing you show is common in C programs. C++ has alternatives that reduce the need ...
|
| C++ source code -> assembly language (CPU instruction set) -> binary code | 5/6/2008 | Ralph McArdell |
Q: My understanding of processing a C++ program as follows: ------------------------------------------- ... A: Yes I do and you are wrong. A CPU does _not_ execute assembly language. It executes machine ...
|
| jobs with c++ | 5/3/2008 | Ralph McArdell |
Q: i just have a question related to jobs in computer science, not c++ itself i have decided to ask u ... A: Take any piece of software - an application, an add on, an operating system, a device driver. Each ...
|
| deleting multidimensional array pointers | 4/25/2008 | Ralph McArdell |
Q: if i created a pointer to an array i would go like this int *array = new int[size]; and when ... A: Your question is ambiguous. Do you mean an array of pointers used like a multi dimensional array or ...
|
| linked lists | 4/23/2008 | Ralph McArdell |
Q: how can i destroy an entire linked list? assuming that i have a linked list "head" if i go like ... A: Starting with your last points, as these are most fundamental. Setting a pointer to a null pointer ...
|
| String Constants | 4/21/2008 | Prince M. Premnath |
Q: Define the String Constant.Explain with the help of Examples. A: A string constant is any number of character enclosed between double quotes eg 'a' is a ...
|
| matrix multiplication | 4/18/2008 | Prince M. Premnath |
Q: i have the following question how can i multiply 2 matrices? the rules are the following assume ... A: K Your Problem is all about to multiply a square matrix , say number of rows equal to number of ...
|
| Input Validation in C++ | 4/15/2008 | Prince M. Premnath |
Q: how to validate user input? only double precision and integer are allowed. This should not be ... A: Presenting you a simple code just to read a string and then convert into integer ! If it found to ...
|