AllExperts > C++ 
Search      
C++
Volunteer
Answers to thousands of questions
 Home · More C++ Questions · Question Library  · Free Encyclopedia ·
More C++ Answers
Question Library

Ask a question about C++
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
About Prince M. Premnath
(Top Expert on this page)

Expertise
Years of research in C/C++ Will bring you all facts regarding , OOPS , SVGA , MOUSE , BIOS , IVT , Feel free to query me :-)

Experience
More than 5 years

Education/Credentials
MCA

   

You are here:  Experts > Computing/Technology > C/C++ > C++

Questions Answered By Expert  Prince M. Premnath 
In Category  C++

SubjectDate Asked

Inline function in c++10/28/2009
  Q: where we should use inline function and why we use inline function in c++ !
  A: There is a major difference between the Normal function in C/C++ and an inline function in C++ eg ...
Operator Overloading10/25/2009
  Q: could u pls help mi,i dun knw which part of the code is wrong.i'm realli appericated for all the ...
  A: Ive tested your programme , i don't find any bugs , and even more its running good , ive attached ...
Operator Overloading10/24/2009
  Q: could you pls help mi,i realli need your help.i am trying to do a simple addition.i'm nt sure ...
  A: Ive made some simple changes with your code , and now its working fine , kindly go through the ...
BMP Image processing in C/C++10/22/2009
  Q: i am a university student and i want to Write a C/C++ program that extracts the width and height of ...
  A: presenting you a simple BMP processor program in C long days ago #include <alloc.h> #include ...
C++ Doubt9/27/2009
  Q: How to increment the empid e001 to e002 by using the coding? Please mail me the coding to my email ...
  A: My answer panel won't show your e-Mail id , so please catch me through my mail ...
"graphics not initialized(use initgraph)"9/26/2009
  Q: Sir,I am using Turbo c++. While running the graphics programs I am getting BGI error as "graphics ...
  A: I think you might have forgot to initialize the graphics system using initgraph() function ! Could ...
pointers9/16/2009
  Q: . can you help me answer with this please.. array of student score declared as dynamic data ...
  A: I think i have nothing to help with this question because you have done with all :-) just add the ...
concept of heap9/1/2009
  Q: im a BS-information technology student.i have a problem with my assignment.im going to report in our ...
  A: Sorry for the delay in responding u! since ur in a hurry i found some useful links related to heap ...
Learning C++8/27/2009
  Q: hi i wanna know what thing should i expect form learning programming and difficulty should i read ...
  A: If you wanna learn C++ almost all the books and materials available today expects some steady ...
c++8/25/2009
  Q: could u pls help mi,i need your help desperately.wen i compile and test the program,there is an ...
  A: Ive went through your code ( without any concern with your business logic ) i don't find any error's ...
Sorting sequential file8/23/2009
  Q: I've written a sequential file that can create a file and adding data to it,i'm trying to write a ...
  A: What you have said is of course correct, sorting the contents inside (any) file is not an advisable ...
URL check8/23/2009
  Q: How are you? I'm trying to write a program that, among other things, needs to validate a website. ...
  A: Am doing good! Use the ping Command which is available in windows , if you got the response ...
c++Dijkstra8/15/2009
  Q: could u pls help mi.i realli need your help.could u pls guide mi,i realli do nt knw wat should i do ...
  A: kindly refer the following link for understanding the weighted graph into programmable construct ...
c++8/12/2009
  Q: when i m running this code it is taking input of all the information but it is showing library card ...
  A: ive just went through your code , i couldn't come to a conclusion what you are trying to do with the ...
c++ Mail simulator8/2/2009
  Q: could u pls help mi.i realli desperately need your help.could u pls c my code,i'm nt sure whether i ...
  A: I've went through your code which meets the requirement partially , and it requires some tune up ...
c++simulator8/1/2009
  Q: could u pls help mi.i realli need your help.i started to write the program,but i nt sure whether is ...
  A: Ive answered the same question just yesterday, kindly follow the link given below ...
C++ exponents6/17/2009
  Q: How do you write exponents in C++ code? I've been trying to find out but it has me confused.
  A: Writing Exponents in programming languages is different from math notations since the compiler some ...
FILE4/30/2009
  Q: i want to create a file in Drive C and write data in it for this purpose i have written the code ...
  A: Sorry for the delay in responding you , since i was busy for the last couple of day's i couldn't ...
FILE4/29/2009
  Q: i want to create a file in Drive C and write data in it for this purpose i have written the code ...
  A: nothing wrong with your code , you must have opened your file in "r" read mode instead of "w" mode. ...
Class Grade Program Help COntinued4/21/2009
  Q: Sorry Im asking so many ?s but I missed 2 weeks of class because we had a baby and I am lost. That ...
  A: The most effective way of programming this problem is usage of structures or class , usage of ...
Help With Election code4/20/2009
  Q: I cannot get this to work is there anyway you can help. Thanks again for offering such a great ...
  A: Ive made some corrections with your code to work as you expected , check out your programme get back ...
Class Grade Program Help COntinued4/18/2009
  Q: Sorry Im asking so many ?s but I missed 2 weeks of class because we had a baby and I am lost. That ...
  A: Now check out this programme , it will display the data's from the output file just the way you have ...
Can't get this program to work please help4/18/2009
  Q: This is what I have so far and cannot get it to work any help is appreciated thanks. I also for the ...
  A: Hai Dear ! You have done some additional corrections that's why you got these many errors ! ...
Help With Election code4/18/2009
  Q: I cannot get this to work is there anyway you can help. Thanks again for offering such a great ...
  A: ! Ive done some corrections with your code , kindly check out your programme ,revert me in case of ...
Can't get this program to work please help4/18/2009
  Q: This is what I have so far and cannot get it to work any help is appreciated thanks. I also for the ...
  A: Two small corrections will make your program bug free :-) Choice 1: replace all the float data ...
Can't get this program to work please help4/17/2009
  Q: This is what I have so far and cannot get it to work any help is appreciated thanks. I also for the ...
  A: The error what you have specified is nothing !! , since this error is because the usage of the two ...
call by refrence4/17/2009
  Q: i have a question about calling variables in functions could you plz tell me what's the diffrence ...
  A: Sorry for the delay in responding ! , first of all lemme give you a simple program to understand the ...
developing a software3/23/2009
  Q: sir,i know c programing.But i need to know how i develop a software using this knowledge.
  A: Perhaps the smallest programme say void main() { printf(“Hello World !”); } is a small ...
screen resolution2/24/2009
  Q: i am very eager to know how can i set screen resolution for a c graphics program?
  A: Hai Dear Sanish ! You can do this job without any difficulties , you will be using initgraph() ...
plz help1/2/2009
  Q: can you please help me with this code below,i want this to put the returning value of the token ...
  A: Hai dear bita ! This is a common issue for a novice programmer, even I’ve encountered these ...
problem in linklist12/25/2008
  Q: i have a problem whit the code below when i enter c&b&a i wrote my problem in the code ...
  A: Hai Dear Bita !! Actually i can't understand what you are trying to do with this list , yet you ...
can u help me?10/27/2008
  Q: i want to know that how can we use our programs in c/c++ i mean that for example we write a program ...
  A: Hai dear Bita !! an innovative question , but highly expensive .! Let me figure out some facts ...
Function & Average9/1/2008
  Q: I want to write a program that determine a student’s grade. It reads three test scores (between ...
  A: Hai Dear Mazlin ! Thanks for your question , Here is the code i have written as per the needs !! ...
c++ programming8/20/2008
  Q: how to run the source code
  A: Hai Dear Bhawna ! In order to answer this question , really i needs to know what compiler you were ...
about programming8/11/2008
  Q: can you please tell me one example of programming in no of letters can be count
  A: Hai Dear Shivam! I think you are looking for a program that counts the number of character in a ...
write a do-while loop to calculate total6/30/2008
  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
  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
  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
  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
  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
  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 Examples6/24/2008
  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 ...
Plz help me!6/18/2008
  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
  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 ...
String Constants4/21/2008
  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 multiplication4/18/2008
  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
  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 ...
Regardin Filing4/14/2008
  Q: My name is Faizan i am the student of FAST-NU Pakistan.i am doing C++ ,,,Sir i am very weak in ...
  A: I welcome your questions , Its not allowed in C++ to have private constructor , yet in some ...
Unable to include glut.h !4/14/2008
  Q: I have trying to compile my opengl program so many times in TC,it says unable to open header files.I ...
  A: Make sure where you have placed your opengl library ,its advisable to place the folder common for ...
Input Validation in C++4/13/2008
  Q: how to validate user input? only double precision and integer are allowed. This should not be ...
  A: A simple approach is just read the input as a string; scan the string , if you find any anomaly then ...
Unable to include glut.h !4/11/2008
  Q: I have trying to compile my opengl program so many times in TC,it says unable to open header files.I ...
  A: First of all i wish to know what version of compiler you are actually using , If you are used a dos ...
Structure chart in C++3/24/2008
  Q: This is my first semester programming and I have homework assignemt. Assignment is I need to write a ...
  A: Hai Dear Ravi! Here is the programme what actually you are looking for ! #include <iostream.h> ...
strlen, .substr3/23/2008
  Q: i am trying 2 extract 2 diff paragrafs, that i read n from 2 diff notepad txt files and put into 2 ...
  A: I found few issues with your coding ! 1. Initialize the array indexes b , z to 0 ; Since by ...
Series calculation3/13/2008
  Q: i have to Write a program to evaluate the following function? P = x + x2 / 2! + x3 / 3! + x4 / ...
  A: Here is the code what actually you are lookin for Code 1 : Programme to calculate the sequence P = ...
Turbo C++ Compiler Free Download !3/11/2008
  Q: can i use this compiler for c++ if not suggest me some good compiler names and the source.And i dont ...
  A: Both Turbo C and Turbo C++ compiler will work pretty fine in xp , if you didn't have a copy of Turbo ...
Bit map file compression !2/21/2008
  Q: Project Name: Bitmap Image Compression Class Description: This project requires the implementation ...
  A: Of course BMP images are not recommended for web pages since for two reasons ! 1. Poor Quality ...
SVGA and mouse pointer !2/17/2008
  Q: I am using SVGA driver and using the function userdefinedmode to initilize the graphics mode. i am ...
  A: I have already answered this question for yet another questioner , i kindly request you to follow ...
Number Guessing Game1/31/2008
  Q: How do I write a C++ Program that plays the guessing game Ive been wrestling with this problem all ...
  A: I Have already answered this question , i kindly request you to follow the following link for ...
Error C21061/24/2008
  Q: I'm trying to write a simple code but I keep getting the same error message not sure why. Any help ...
  A: As you didn't mention what s de the compiler you are actually using to compile and execute your C ...
main() function !12/17/2007
  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 ...
C++ Number Guess Program !11/14/2007
  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; ...
How to use write() function with float values ?11/13/2007
  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 ...
Carbide C++ Vs Turbo C++9/25/2007
  Q: sir can u tell us the difference between carbide c++& turbo c++?what are the requirements to be able ...
  A: Choice of compiler depends on the application subject to development , and the environment it where ...
C++ Is not a pure OOP Language!8/16/2007
  Q: why c++ is not a purely oops language?
  A: C++ Is not a pure object Oriented language ! 1.Classes may be created or modified during runtime, a ...
C lang radix doubly link list8/15/2007
  Q: .. i have this case in a double link list, i have to sort the student numbers accordingly. i need to ...
  A: Sure this will be the standard way that every operating systems available today used to handle the ...
C language to C++8/15/2007
  Q: Sorry for the bad question construction. This code below is a piece of code i got from my C language ...
  A: Sure this program is a C++ program but its coded in conventional way ( procedural method )more over ...
C language to C++8/12/2007
  Q: Sorry for the bad question construction. This code below is a piece of code i got from my C language ...
  A: vector is actually a part of the standard Template Library , and what you have given me is just a ...
c++ Recursion !8/11/2007
  Q: write a programe in c++ to find the factorial to any no through iterative procedure or recursive ...
  A: Here im presenting you the simple version of C++ program to calculate factorial of an integer using ...
c++ and files7/29/2007
  Q: i am a +2 student.need a c++ project.aprogramme including class and data files.pls take ...
  A: Your question is not too specific , you are looking for a project but you didn't specify the ...
c++ project!7/24/2007
  Q: we made asoftware in c++ for sel evaluation test. i want to ask that how can i insert or put a image ...
  A: There is yet another option instead of drawing an image ! , If you have the raster data of a image ...
printf() and scanf() functions !7/14/2007
  Q: my question is, where the printf and scanf function will be stored.
  A: In order to use the functions printf() and scanf() you should have to include the header file ...
Classes and Member declarations !6/20/2007
  Q: #include<iostream.h> class star { private: int inum3,inum4; public: int ...
  A: Before explaining the sequence let me explain the basic concepts in classes and member declaration ...
Reading text files6/19/2007
  Q: I have a small question regarding accessing the text files in C++. Here is what I am writing in C++. ...
  A: Sorry for the delay in responding you ! you have mentioned that the strings are separated with tab ( ...
Source Code6/7/2007
  Q: can anybody solve this query. .Write a program using malloc function. In which you take input from ...
  A: Sorry for the delay in responding ! here im presenting you the code that you've requested /* Macro ...
String Problem3/8/2007
  Q: We had a string problem in C++, we were told to create some sort of a lesson plan that receives data ...
  A: The program what i had given U is of course self explanatory , it will just read names about 3 ...
Free open source libraries3/7/2007
  Q: I wonder which is the best websites to follow any new c/c++ open source libraries? Regards, Ashraf
  A: i don't know what sort of libraries you lookin for ! Basic or advanced , any way im sure its hard to ...
String Problem3/7/2007
  Q: We had a string problem in C++, we were told to create some sort of a lesson plan that receives data ...
  A: Actually the name is splitted into three parts ( First name , initial , and Family name ) all this ...
Hardware Programming resources2/28/2007
  Q: Could you Tell me where I can find any hardware programming resources ?
  A: We can program any type of hardware using C , but i don't know what specific hardware you going to ...
finding prime numbers between 1 and an input value2/23/2007
  Q: if(isprime)... what does that mean?i thought if statments should be boolean(can either be true or ...
  A: Actually its not a problem , purpose of the variable "isprime " here i used to save only two values ...
Array Processing!2/22/2007
  Q: I'm Donn and I'm from the Philippines. I'm a 2nd year college student right now taking up Chemical ...
  A: Array processing is the simplest and most fundamental operation in data structures ! Here i ...
finding prime numbers between 1 and an input value2/22/2007
  Q: this was based on the sieve of eratosthenes.I have tried doing it but we are required to use 2 for ...
  A: The problem is of course simple , because finding all the prime numbers in a certain range of ...
query on c++1/8/2007
  Q: how to sort elements from 2 different classes using friend function
  A: Lets assume sorting of array in two independent classes using a friend function . Lets get some ...
Extracting words from a text file./C++11/29/2006
  Q: Below are more details. I have to use arrays,class,file handling, exception handling and string ...
  A: Ya the problem is simple , but there may be lot of Meaning less words will be produced in the final ...
OOP11/23/2006
  Q: can u tel me the errors in the following statements..please 1.ifstream.infile("DATA"); ...
  A: 1. In the first statement , ifstream is a class where as infile is an object associated with ...
OOP11/23/2006
  Q: Write a statement that moves the get pointer 13 bytes backward from the current position in a ...
  A: There are two member functions to move the file pointer to the desired location in a file ...
c++ exception handling11/23/2006
  Q: Q:What is the importance of exception handling in C++. How it differs from the C's error handling ...
  A: Even though C is a subset of C++ , Programmers Treat both c and C++ as a different language . ...
object and instance?11/6/2006
  Q: when should we user the word "object", and when the word "instance"? Thanks, lzzzz
  A: The term object means a combination of data and logic that represent some real world entity , ...
SVGA Mouse11/3/2006
  Q: I wants to work with Mouse in SVGA. The positions is detected and moves only 640 in x position and ...
  A: Your question lags in technical information ! 1. What function you used to initialize the graphics ...
c++ syntax question10/30/2006
  Q: Premnath, i need help with the same question which another user had posted ealier about calculating ...
  A: Here is the question ! I need to write a program that reads a student’s name together with his or ...
Help with a C++ project10/18/2006
  Q: I need to write a program that reads a student’s name together with his or her test scores. The ...
  A: Many students requested the same program , no option to make , i have to write the program for all ...
file handling10/17/2006
  Q: how to read line by line from a text file and differentiate between charecter data and integer data ...
  A: Here i give some idea's or tech's to do that! 1. Read a data file in terms of charecters. 2. You ...
TSR Logic!10/17/2006
  Q: Sir i wish to write a tsr program , ie i needs to kow what function in Turbo C++ should i needs to ...
  A: Turbo C++ Provide a function called keep() a dos function driven by the interrupt number 0x31 to ...
Visual C++, Video tutorials requested10/17/2006
  Q: Premnath, I have two questions to ask you : 1) Please let me know, if you know of any, video ...
  A: Forums are available even in our website , of course im an expert in C++ But in DOS , not in ...
OOPs10/16/2006
  Q: substantiate the statement “C++ is not a pure Object Oriented language”.
  A: C++ Is not a pure object Oriented language ! 1.Classes may be created or modified during runtime, a ...
help please10/15/2006
  Q: this is the formula my teacher wants us to follow p = 4 - 4/3 + 4/5 - 4/7 + 4/9 - 4/11 + ...and so ...
  A: You have done almost but the only thing wrong is that this series calculate all terms as positive ...
C++ and OOPs10/7/2006
  Q: List and explain the main differences between C and C++. Also substantiate the statement “C++ is not ...
  A: Experts used to treat C++ as a different language and not a superset of C. There are lot many ...
OOPs Concepts9/26/2006
  Q: Explain the difference between Object based and Object orinted concepts of C++ with small program ...
  A: In an object based system ,we can use the objects to accomplish our task and we cannot ...
Urgently Required:File Handling Problem9/25/2006
  Q: i am in great trouble kindly help me. i want to read a file in c++ program.the file that is to be ...
  A: Thats simple declare a separate structure for the RECORD and write to the file as a record and not ...
xp codes9/15/2006
  Q: hoe to view ms source codes
  A: Im not clear with your question ! Do you mean you wish to view source code for MS - XP? if so ! ...
text file9/14/2006
  Q: I am trying to write a code that can read a specific range from text file .However , I found this ...
  A: Ok The problem is so simple ! The code you have written is too obscure for the given task yet you ...
array9/14/2006
  Q: premnath im from malaysia i do not how do this question can u help me thank you write a ...
  A: Ok Nothing to worry Here is the program ! #include <stdio.h> #include<conio.h> void main() { int ...
Validate user input and pause display9/14/2006
  Q: The user should not be able to enter any that is not numeric for the loan amount. If the user does ...
  A: Here is your complete program. Validation in user input is much simpler ! Just get the input in a ...
Validate user input and pause display9/13/2006
  Q: I having trouble trying to figure out how to validating user input and pause the program to display ...
  A: Here the problem is solved for Question 2. But i don't know what to validate with the user request ...
array9/13/2006
  Q: premnath im from malaysia i do not how do this question can u help me thank you write a ...
  A: Its really simple! 1. declare an array enough to store your data's 2. Traverse the array from the ...
C9/5/2006
  Q: Here is the file format: [y][y] Parameter_Name Left Right [Y][ForceBlk0] [Y] ...
  A: there is lot of concepts upon processing a file , the very essential thing is size of the record and ...
C++ linking error9/2/2006
  Q: I am trying to complete a project for my C++ class and I keep getting this linking error. I've ...
  A: Possibly for the first time your program run pretty well and for the second time after closing the ...

All Questions in This Category

Email this page
     
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2006 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.