Forum: C++ 10 Days Ago |
| Replies: 1 Views: 149 Hi all,
I was going throughthe concept of Polymorphism.
Can anyone explain me how the vtable and vptr are created in case of virtual base class and what all values it contains.
I have idea about... |
Forum: C++ 23 Days Ago |
| Replies: 2 Views: 250 And please dont use
system("pause");
it is not a good approach.. use getch etc instead :) |
Forum: C++ 24 Days Ago |
| Replies: 1 Views: 287 The conversion of hexa to decimal follows in thid manner
Hex value =A48
Decimal value =8*16^0 +4*a6 ^1 +A*16^2+...
so first thing you need to do is to convert string value to integer using
... |
Forum: C 27 Days Ago |
| Replies: 8 Views: 520 What exactly do you mean by middle value?
U can do it by using (a+b+c)/3
I hope its not that simple. Kindly explain what you mean by middle value |
Forum: C++ 28 Days Ago |
| Replies: 4 Views: 247 i see many syntax errors in your code. Few i will list. Rest you should compile your code.
In the check member function, you have so many parameters, but where you are calling the function,the... |
Forum: C++ 28 Days Ago |
| Replies: 3 Views: 191 I searched on net and found some solution. Though i havent tried it, it might help you to start. Please find code below
#include <iostream>
#include <windows.h>
#include <string>
using... |
Forum: C++ Nov 4th, 2009 |
| Replies: 8 Views: 283 To make the program obust you need to use looping concept .
This will provide user the freedom of entering any number |
Forum: C++ Oct 14th, 2008 |
| Replies: 10 Views: 878 i agree to you grumpier, but i was talking about the definition of a function not the declaration.
i wanted to say that the definition will itself create a local copy with that variable name. |
Forum: C Oct 14th, 2008 |
| Replies: 7 Views: 686 Hi gunjan,
Can you please tell me what is the difference between
void function(int*d);
and
void function(int &d); |
Forum: C Oct 14th, 2008 |
| Replies: 6 Views: 1,683 It is because you are assigning the value to argv[1] every time in your if condition. Use == instead of = |
Forum: C++ Oct 10th, 2008 |
| Replies: 10 Views: 878 But when we define a function the myFloat will be a local variable created in the function itself. |
Forum: C++ Oct 10th, 2008 |
| Replies: 2 Views: 339 http://mycplus.com/tutorials/c-programming-tutorials/file-handling/
check this link about file handling.Similarly you can copy objects |
Forum: C++ Oct 10th, 2008 |
| Replies: 7 Views: 785 put the whole code in a do-while loop and have one input that asks the user if he wants to continue.check in the while condition if the choice is 'y'
#include <stdio.h>
int main(void)
{... |
Forum: C++ Oct 10th, 2008 |
| Replies: 3 Views: 337 Hi,
First of all both your functions are same. It will give compilation error at the start
void strrep(char *ptr, char *charactobereplaced);
void strrep(char *ptr, char *wordtobereplaced)
... |
Forum: C++ Oct 10th, 2008 |
| Replies: 3 Views: 473 Hi FAZ3,
What exactly you want ? why are you using delete in your algorithm?
Do you want it to be at particular position as has been done by Rhohitman
or is your list like this
struct... |
Forum: C++ Oct 10th, 2008 |
| Replies: 10 Views: 878 Yes , when you are calling a function by call by value method as you are doing in your code you are making a local copy. If you need the change to be reflected in main also you should use reference... |
Forum: C++ Oct 10th, 2008 |
| Replies: 2 Views: 360 Hi ,
Your question is not clear to me.. what exactly you want to know.
The code written above will give compilation error as it will not identify any function displayGrade() as the function you... |
Forum: C++ Oct 8th, 2008 |
| Replies: 8 Views: 11,463 This is because when you are reading the numbers from the file you are trying to read 41 characters..but only 31 characters are present in the file.. so it is reading the last cahracter 10 more... |
Forum: C++ Sep 19th, 2008 |
| Replies: 6 Views: 2,195 sorry, i don't have much idea about vectors and containers.. can you please elaborate on what you are trying to tell |
Forum: C++ Sep 19th, 2008 |
| Replies: 6 Views: 2,195 hi all,
i have a doubt...please clarify
Instead of having a base class pointer and pointing it to derived class...can we not have a derived class pointer itself to call the virtual function..how... |
Forum: PHP Sep 2nd, 2008 |
| Replies: 1 Views: 2,895 HI All,
I am using doctrine in my project... now i am trying to update an already existing query.I am getting some DB exception..can anyone tell me what ia wrong in my code
$q =... |
Forum: PHP Aug 27th, 2008 |
| Replies: 1 Views: 547 Hi All,
Can anyone please tell me how can i get the socket.dll for writing socket programming in php.
Thanks |
Forum: PHP Aug 19th, 2008 |
| Replies: 1 Views: 306 Hi All,
I am trying to create the instance of a class without using new.
class StaticVar
{
public $i;
function __construct()
{ |
Forum: PHP Aug 14th, 2008 |
| Replies: 1 Views: 535 Hi all,
I want to use preg_grep for an assosiative array. Can someone guide me how is it possible? |
Forum: PHP Aug 11th, 2008 |
| Replies: 11 Views: 1,434 It is absolutely ok Shanti.. Thanks a lot your answers.
But Please explain me whether my understanding is correct as mentioned in the post above yours?? |
Forum: PHP Aug 11th, 2008 |
| Replies: 3 Views: 1,934 |
Forum: PHP Aug 11th, 2008 |
| Replies: 11 Views: 1,434 This means that if i give
if(5>6)
include "a.php";
else
include "b.php";
only b will be included ..and if i say
if(5>6)
require "a.php"; |
Forum: PHP Aug 11th, 2008 |
| Replies: 3 Views: 1,934 Hi all,
Can someone tell me in detail what are super global variables and how are they used?? |
Forum: PHP Aug 11th, 2008 |
| Replies: 11 Views: 1,434 Thanks for your reply.
Another query is that is there any differnce in the opcode generated?
Is it something that the opcode for require is generated when the keyword is encountered and for... |
Forum: PHP Aug 11th, 2008 |
| Replies: 11 Views: 1,434 Hi All,
I have started learning PHP now.
I am unable to find the exact difference between include and require in php? |
Forum: Linux Servers and Apache Aug 11th, 2008 |
| Replies: 1 Views: 966 Hi All,
I am new to PHP, i have installed WAMP but have no idea how to work on it.
Can someone please guide me or provide some link how should i start?
Thanks in advance |
Forum: C++ Aug 22nd, 2007 |
| Replies: 9 Views: 3,047 Another question...what is the basic purpose of having a private constructor or destructor?
A destructor is called when the object goes out of scope and by default it is public.What if we have a... |
Forum: C++ Aug 21st, 2007 |
| Replies: 9 Views: 3,047 |
Forum: C++ Aug 21st, 2007 |
| Replies: 9 Views: 3,047 |
Forum: C++ Aug 20th, 2007 |
| Replies: 4 Views: 4,422 each alphabet has some ascii value associated with it .
You can find it by following code
char a='A';
int i=a;
cout<<i;
this will give output as 65 , similarly for a,b...
Thus sorting can be... |
Forum: C++ Aug 20th, 2007 |
| Replies: 9 Views: 3,047 I am still not having very clear idae about it.
its fine we have a member function create of class Test, but what next? how are we going to call this function in main() without creating any object... |
Forum: C++ Aug 20th, 2007 |
| Replies: 9 Views: 3,047 There are still some doubts |
Forum: C++ Aug 20th, 2007 |
| Replies: 9 Views: 3,047 Hi all,
I am trying to understand the concept of private constructors and singleton.
As far as i have studied, we can have private constructors , destructors and that they are used to avoid... |
Forum: C++ Aug 20th, 2007 |
| Replies: 4 Views: 4,422 You can sort alphabets using its ascii values |
Forum: C May 9th, 2007 |
| Replies: 12 Views: 4,518 |