Forum: ASP Mar 28th, 2008 |
| Replies: 1 Views: 620 Can someone tell me from where can I download a Personal Web Server for Windows XP SP2, if not , then an alternative for that ??:confused:
I want to do programming in ASP on my personal computer. |
Forum: ASP Mar 28th, 2008 |
| Replies: 1 Views: 668 Can someone tell me from where can I download a Personal Web Server for Windows XP SP2, if not , then an alternative for that ??
I want to do programming in ASP on my personal computer.:confused: |
Forum: C++ Mar 22nd, 2008 |
| Replies: 3 Views: 519 I still didn't understand the following ouput:
#include <iostream>
using namespace std;
class Base
{
public:
Base(){ cout<<"Constructor: Base"<<endl;}
~Base(){... |
Forum: C++ Mar 20th, 2008 |
| Replies: 3 Views: 519 I have got an assignment question :
Constructors cannot be virtual , however destructors can. Justify the statement in reference to memory leak.
Please help me out figuring the answer. |
Forum: C++ Mar 20th, 2008 |
| Replies: 0 Views: 1,235 I am not able to figure out how to calculate the determinant of a matrix whose size and elements are to be taken from user.
Could someone help me !! |
Forum: C++ Mar 19th, 2008 |
| Replies: 1 Views: 410 My instructor at my engineering institute has given the following assignment question:
Create a database of scientists and labourers and maintain the same by making use of inheritance.
We... |
Forum: C++ Mar 17th, 2008 |
| Replies: 5 Views: 1,155 I am facing a problem in void pointers in c++. Have a look at the following code:
#include<iostream.h>
int main()
{
void *ptr;
int x=3;
float y=2.35f;
char c='A';
ptr=&x; |
Forum: Java Mar 17th, 2008 |
| Replies: 4 Views: 792 I am using Java2 SDK Standard Edition V1 3.0_02.
My code is a s follows:
class forEach
{
public static void main(String args[])
{
int nums[]={1,2,3,4,5};
int sum=0;
for(int x:nums)... |
Forum: Java Mar 16th, 2008 |
| Replies: 4 Views: 792 Could someone please why do we say that the syntax of enhanced for loop(for-each) in java in streamlined.
Also, my java compiler does not compile programs containing the enhanced for loop. It gives... |
Forum: Java Mar 16th, 2008 |
| Replies: 2 Views: 600 I am not able to understand why in the following program it is mentioned in my book:
The value of ~a is ANDed with 0x0f (0000 1111) in binary in order to reduce its value to less than 16, so it can... |
Forum: C++ Mar 16th, 2008 |
| Replies: 1 Views: 497 Could someone please tell me how to overload ++ operator in the postfix form. ++ sholud increment the instance variable avar of following class:
class A
{
int avar;
public:
A()
... |
Forum: C++ Mar 15th, 2008 |
| Replies: 2 Views: 757 Your question syas that the function must have a integer parameter representing the number of days past from 1/1/1990. where's that in your code so far???
Your function is still accepting three... |
Forum: C++ Mar 15th, 2008 |
| Replies: 2 Views: 1,675 C++ tries to make user-defined data type much the same way as the built in data type.
We use different kind of operators with the bulit in data type . What about using those operators with the user... |
Forum: C++ Mar 14th, 2008 |
| Replies: 32 Views: 6,236 I copied your code and executed it:
count =0 in the output.
You have used return 0 in your prime() method, so the if in main never receives value 1 and count is never incremented. |
Forum: C++ Mar 14th, 2008 |
| Replies: 2 Views: 756 could any one tell me the exact syntax and semantics of cin.get() and cin.ignore() ? |
Forum: C++ Mar 14th, 2008 |
| Replies: 7 Views: 735 In your program# 1,after computing sum and product and displaying them to th user , what's the use of
cin >> sum >> product;
This is again demanding that you enter two more values for sum and... |
Forum: C++ Mar 14th, 2008 |
| Replies: 1 Views: 470 #include<iostream.h>
class A
{
int avar;
public:
A()
{
avar=0;
}
A(int a) |
Forum: C++ Mar 14th, 2008 |
| Replies: 1 Views: 416 #include<iostream.h>
#include<string.h>
class person
{
protected:
char name[20];
int code;
public:
person(char *a,int c)
{ |
Forum: C++ Mar 13th, 2008 |
| Replies: 7 Views: 1,217 I am not able to figure out the code required for accepting a string from user , but the memory for it should be dynamically allocated and referenced using pointer.
Have a look at the following: ... |
Forum: Java Mar 12th, 2008 |
| Replies: 2 Views: 518 // runtime error encountered , cannot resolve symbol i ,please help!!!class promote
{
public static void main(String args[])
{
byte b=42;
char c='a';
short s=1024;
int i=50000;... |
Forum: C++ Mar 11th, 2008 |
| Replies: 3 Views: 441 scanf always uses the syntax:
scanf("<format_specifier>",&<name_of_variable>);
You used the & operator. |
Forum: C++ Mar 11th, 2008 |
| Replies: 7 Views: 828 I have used the following:
*(q+i)=*(q+(i-4));
very sorry! actually the number 4 should be replaced by strlen of the second string.
I have made a index reach the end of string2 and then... |
Forum: C++ Mar 11th, 2008 |
| Replies: 7 Views: 828 I am pursuing B.Tech in Computer Science in India, and have only three month experience in programming in C++.
I am using Microsoft Visual C++ 6.0 environment.
Thanks for your advice, I will... |
Forum: C++ Mar 10th, 2008 |
| Replies: 7 Views: 828 Here's one possible way to get desired string2:
#include<iostream.h>
#include<string.h>
int main()
{
int len1;
char *p,*q;
cout<<"enter string 1 length : ";
cin>>len1; |
Forum: C++ Mar 10th, 2008 |
| Replies: 2 Views: 710 #include<iostream.h>
#include<string.h>
int main()
{
int x;
cout<<endl<<"enter x:";
cin>>x;
int temp=x;
int count=0;
while(temp!=0) |
Forum: C++ Mar 10th, 2008 |
| Replies: 1 Views: 880 #include<iostream.h>
class mat
{
int **matrix;
int row,col;
public:
mat(int r,int c);
void get_element(int a,int b,int value);
int &disp_element(int a,int b);
int getrow() {return row;} |
Forum: C++ Mar 9th, 2008 |
| Replies: 9 Views: 642 One possible solution to your if block is:
if( !(strcmp(chartryname,charname)) && !(strcmp(chartrypassword,charpassword) )
cout<<"All entries are correct";
/*
Result at execution if... |
Forum: C++ Mar 9th, 2008 |
| Replies: 3 Views: 1,164 class matrix
{
int **p;
int d1,d2;
public:
matrix(int x,int y); //constructor allocates block of specified size
/*I am not specifying contructor code*/
... |
Forum: C++ Mar 8th, 2008 |
| Replies: 1 Views: 396 /*
unable to return value from following function due to if - else block within function..*/
mat operator + (mat &m1,mat &m2) //mat is a class for matrix object
{
int r1=m1.getrow(); //getrow... |
Forum: C++ Mar 8th, 2008 |
| Replies: 1 Views: 491 /*
unable to return value from following function - adds two matrix class objects
*/
mat operator + (mat &m1,mat &m2) // mat is a class for matrices
{
int r1=m1.getrow(); // getrow returns... |