| Subject | Date Asked | Expert |
|
| problem in c++ programming | 1/15/2008 | Ralph McArdell |
Q: and thanks for your help about my last prob. U was on vacation and i was waiting for u because only ... A: Firstly, I very much doubt I am the only one to be able to answer such questions as you ask here. ...
|
| C,C++,C# | 1/14/2008 | Joydeep Bhattacharya |
Q: i am a electronics engineer, now i have started learning C++,C# and .Net Can u please help me by ... A: I am a final year student of MCA, when I was learning languages I found that basic level tutorials ...
|
| Classes | 1/14/2008 | Eddie |
Q: Sir I am Trying to solve an Assignment so ca you please tell me what is the problem with my code,My ... A: I'm not entirely sure what your problem is since you didn't specify, but I've spotted a couple of ...
|
| performance of c and CPP programs | 1/14/2008 | Joydeep Bhattacharya |
Q: Had a general question on performance between C and C++. Is there any study indicating one is better ... A: C is a procedure oriented language, and C++ is a object oriented language with advanced features ...
|
| A question on strcmp's implementation | 1/12/2008 | Ralph McArdell |
Q: Below is the code snippet of Microsoft's C runtime strcmp implementation: int __cdecl strcmp ( ... A: -------------------------- FOLLOWUP -------------------------- One thing I should caution you about ...
|
| C++ data types.. | 1/8/2008 | Eddie |
Q: i have a char variable... suppose char a; cin>>a; and I input the character '46'... is there any ... A: Sure, you can get the integer value from a character. C++ provides the object istringstream for ...
|
| Classes | 1/5/2008 | Eddie |
Q: Respected Sir, I am not understanding classes so i want to learn what classes are and ... A: The reason for classes is so we can group together data that describes a particular object, as well ...
|
| c++ | 1/4/2008 | Eddie |
Q: good day, i have base class ,where i have three member functions (actually abstract,no definition)in ... A: It sounds like you could maybe use a function pointer to accomplish what you want, however, if you ...
|
| file handling in c++ | 1/1/2008 | Eddie |
Q: 1st of All Happy New Year Sir!...My question is about file handling i want to make a data of users ... A: It sounds to me like you need a struct for your User and associated data in code. Here is a snippet ...
|
| text editor | 12/28/2007 | Joydeep Bhattacharya |
Q: i want to create a text editor using turbo c++(including all the menu options using graphics) and i ... A: Probably for such a complex application you need to use almost all the header files. First create ...
|
| main() function ! | 12/17/2007 | Prince M. Premnath |
Q: why we write main function at the starting of program? A: Its not much essential that main() function to be the starting of the program , perhaps you can ...
|
| File processing | 12/17/2007 | Ralph McArdell |
Q: Ralph McArdell I am reading a text file in c++. There are 13 columns in a row and 3370 lines. I ... A: Sorry but you have almost all of the code I used. The only parts missing are: - the header ...
|
| C++ | 12/17/2007 | Ralph McArdell |
Q: How can we implement f(x)=10 in c++; A: Sorry but I am not sure I understand your question. Do you want a function f that takes a ...
|
| File processing | 12/16/2007 | Ralph McArdell |
Q: Ralph McArdell I am reading a text file in c++. There are 13 columns in a row and 3370 lines. I ... A: This is a rather odd piece of code. For a start what are all these supposed calls to the stream ...
|
| c++ | 12/12/2007 | Ralph McArdell |
Q: i dont know where and how to use static_cast<int>( ) forexample:num-static_cast<int>(num) plz help ... A: Well you really should not need to use static_cast<int>() for built in type conversions and ...
|
| Functrions. | 12/8/2007 | rakshitha |
Q: What is the difference between function overloading and function overriding in c++? A: Function overloading is giving the function same name but different types of parameters. Function ...
|
| C++ | 12/7/2007 | rakshitha |
Q: What is the difference between constant reference & constant pointer. Why two different name are ... A: Difference between refrence and pointer is refrence should always be initialized when created and it ...
|
| string manipulation | 12/4/2007 | rakshitha |
Q: How do i write a c++ statement that assigns the 34 in the part variable to the code variable? ... A: string part = "ABCD34G"; int code = 0; int ilen = part.length(); char * temp = new ...
|
| C++-command line arguments | 12/3/2007 | Joydeep Bhattacharya |
Q: how do i work with command line arguments in C++(how to pass the arguments) A: compile the program and as you have compiled the program the exe has been generated in the same ...
|
| About file handling in C++ | 12/2/2007 | Ralph McArdell |
Q: Kindly requested that can you tell me How to sort the 100 records in the file in C++ A: Not definitively. This is because they are many ways one could approach this problem. The exact ...
|
| Constructors of Global Object | 12/1/2007 | Ralph McArdell |
Q: I have a lot of experience with C++ but I never understood one thing: If you define a global object ... A: This behaviour is defined in the ISO C++ standard in section "3.6.2 Initialisation of non-local ...
|
| variables | 12/1/2007 | Ralph McArdell |
Q: i have just begun to delve into programming. i am currently reading an excellent beginners book, ... A: In programming languages like C++ variables are things that can hold a variety of values, and the ...
|
| void POINTER | 11/30/2007 | Ralph McArdell |
Q: . Can you explen me about void pointers in C++ in detail with example. A: In C and C++ a void pointer, or void * type, is a pointer type that points to no particular type of ...
|
| Opengl C++ in Linux - Animation/evolve not working | 11/28/2007 | Ralph McArdell |
Q: I am very new to C++/opengl and I have been having alot of trouble with my C++ code for the Linux ... A: I am not an expert in OpenGL but it seems to me from a quick look at your code that you have two ...
|
| Void functions and the switch operation (logic errors) | 11/27/2007 | Ralph McArdell |
Q: Hey Ralph, Hope you're doing well. I wanted to ask you something pertaining to a C++ code I'd ... A: You do not get the file to do anything – it is a chunk of data. Rather you read the data in the ...
|
| Void functions and the switch operation (logic errors) | 11/27/2007 | Ralph McArdell |
Q: Hey Ralph, Hope you're doing well. I wanted to ask you something pertaining to a C++ code I'd ... A: Well a quick look at the code reveals that you are reading in a char then using it like an int: ...
|
| fstream as a class member | 11/26/2007 | Ralph McArdell |
Q: Would you give an example code how to write a copy constructor or assignement operator for a class ... A: The problem is that std::fstream objects are _not_ designed to be copied. In fact copying and ...
|
| c++ | 11/26/2007 | rakshitha |
Q: i want 2 make a pyramid of alphabets the output should b- A A B A B C A B C D like ... A: cout<<"number of characters to be printed"; int inum,ispace; cin>>inum; char *temp = new ...
|
| seting position of cursor on desired location at the screen in c++ | 11/25/2007 | Ralph McArdell |
Q: Aoa.i am a student and i have to do ana assignment in which i have to set the postion of cursor on ... A: The C and C++ language standards have _no_ support for such functions. You do not mention what ...
|
| New | 11/25/2007 | Joydeep Bhattacharya |
Q: I'm very new to C++ and its really confusing, i need our help please........ How do i write a code ... A: to solve a C++ or any kind of programming problem you have to go step by step #include<iostream.h> ...
|
| Is it possible to inherit classes from STL classes? | 11/24/2007 | Ralph McArdell |
Q: Sir; Is it possible to inherit a class form an STL class. Is there any memory issue if we r using ... A: The answer is yes and no. Yes you can inherit from an STL class (including the basic_string class ...
|
| Need HELP | 11/22/2007 | rakshitha |
Q: /* area.c */ #include "stdio.h" #include "conio.h" #include "graphics.h" #include "stdlib.h" ... A: But, I have devC++ compiler! Which does not support graphics.com. I have to get another compiler. I ...
|
| C++ compiler porblem | 11/21/2007 | Joydeep Bhattacharya |
Q: I have developed a project using C++ with many different .cpp files (main.cpp,window.cpp,courses.cpp ... A: replace all the header file inclsion inside the source code i.e. instead of using ...
|
| C++ compiler porblem | 11/21/2007 | Ralph McArdell |
Q: I have developed a project using C++ with many different .cpp files (main.cpp,window.cpp,courses.cpp ... A: First I think config.sys has very little meaning in the world of Windows XP. Second I am unfamiliar ...
|
| C++ constructors and float vs double | 11/21/2007 | Ralph McArdell |
Q: Good day, I have two different questions regarding C++. First, I wanted to know what are the main ... A: 1/ Constructors --------------- The first form: myclass() { n = 0; } is in ...
|
| output incorrect, please help | 11/18/2007 | rakshitha |
Q: I know that I already asked you a question a couple days ago, but I asked someone else and they ... A: I came through the program and have some questions. Please, do answer it so that I can proceed ...
|
| qsort() | 11/18/2007 | rakshitha |
Q: How are you? I have a qsort() question. Can you do qsort only on a part of an array (not the entire ... A: yes you can where you will send the lower index as 10 and higher index as 20. Here is a smaple code ...
|
| C++ Number Guess Program ! | 11/14/2007 | Prince M. Premnath |
Q: i am a newbie in this so please bear with me. i have to write a program on a guessing the number ... A: Problem with your program is the set of statements given below ! >>sum+=noOfGuesses; ...
|
| Memory Leak with vectors | 11/14/2007 | rakshitha |
Q: I have a program in C++ that is leaking memory while pushing data to the vector. My problem is that ... A: pixa=*(image+ xpos + (LineLength * (ypos))); Hi one more question. Here you are passing image as a ...
|
| How to use write() function with float values ? | 11/13/2007 | Prince M. Premnath |
Q: #include<fstream.h> #include<io.h> #include<dos.h> #include<string.h> #include<conio.h> void ... A: Nothing sounds serious with this program , just take a look at the prototype of the write function ...
|