Forum: C++ Oct 2nd, 2009 |
| Replies: 4 Views: 152 you are just changing the string ... which is not the member variable.. itself and printing ... its funny... :P |
Forum: C++ Oct 2nd, 2009 |
| Replies: 4 Views: 152 struct Table
{
char* aTag;
char* bTag;
};
int main()
{
Table T1;
cout<<T1.aTag;
cout<<T1.bTag; |
Forum: C++ Oct 2nd, 2009 |
| Replies: 4 Views: 280 Thanx Sky Diploma
here things got too much complicated
Temp2=T1->dx[i*T1->n+T1->n-1] / T1->dx[i*T1->n+pivot_j];
i guess i have to use the loop for assigning the value inside it.. |
Forum: C++ Oct 2nd, 2009 |
| Replies: 4 Views: 280 01 Why i am not able to do this
int* px;
px = new int[2][2];
other the px = new int[2*2];
is there any other method
02 Why i am not able do access through pointer dx by dx[1][2] other than... |
Forum: C++ Aug 30th, 2009 |
| Replies: 3 Views: 170 i don't get it, constructor and destructor, since i am only using one objects its should not be the problem... Pardon me if i am wrong.
Thanx but the problem was
i was not able to allocate the... |
Forum: C++ Aug 30th, 2009 |
| Replies: 5 Views: 247 create one more construtor without argument
autop() { } |
Forum: C++ Aug 30th, 2009 |
| Replies: 3 Views: 170 I was writing the program for revised simplex method in devc++ (windows) and it was working fine...
Now I am using ubuntu and trying to run the same program.......(with few changes)
i compiled... |
Forum: C++ Aug 26th, 2009 |
| Replies: 1 Views: 241 cout<<
worked out for every other pointer data type but... when char is fed it show the pointed address.....(which every one knows)
but i want to see the address stored in the char pointer how to... |
Forum: C++ Aug 26th, 2009 |
| Replies: 2 Views: 238 thank a lot.. i had never done this with the function.......................... |
Forum: C++ Aug 26th, 2009 |
| Replies: 2 Views: 238 Why Can`t member function be called by pointer object of class/struct.
i was trying to call the member fuction of struct though pointer object it showed me error like
request for member... |
Forum: C++ Jun 25th, 2009 |
| Replies: 1 Views: 1,076 i don't know how it happen but the exe formed after compilation was 1.23 MB which has never happen before. |
Forum: C++ Jun 24th, 2009 |
| Replies: 0 Views: 832 Check Palindrome: Binary & Decimal |
Forum: C++ Mar 7th, 2009 |
| Replies: 8 Views: 938 Ya only two choices ....
1. Keep track of insertion and deletion as said above.
2. OR Count all over again |
Forum: C++ Nov 20th, 2008 |
| Replies: 5 Views: 2,739 yes, you have to do some thing like that only. It your wish to use the recursive function or not but I don't recommend to use the recursive function in this case and earlier one too.
In any number... |
Forum: C++ Nov 20th, 2008 |
| Replies: 25 Views: 1,222 There come 3 condition while deleting..
1. node is at the front
2. node is at last
3. node is in between
You need to have the previous node of the list in order to join again...
You can... |
Forum: C++ Nov 20th, 2008 |
| Replies: 5 Views: 2,739 Nice thought to use the recursive function...
recursive function should have the terminating point which in the conversion always turn to 1 at last.
void binary(int num)
{
if(num!=1)
... |
Forum: C++ Nov 20th, 2008 |
| Replies: 25 Views: 1,222 |
Forum: C++ Nov 20th, 2008 |
| Replies: 25 Views: 1,222 Let me put in right way..
you are creating the renewing list each time you add new nodes (new songs).
in every insertion ... your list pointer is set in to NULL. causing the earlier information to... |
Forum: C++ Nov 13th, 2008 |
| Replies: 8 Views: 443 ya ya, thanx for correcting... |
Forum: C++ Nov 13th, 2008 |
| Replies: 4 Views: 1,055 ya using the getch is the good idea to tap the keyboard..
but i guess its not pretty good idea to use the getch() directly
since it waits for the keystroke.. always and pause the screen...
you... |
Forum: C++ Nov 13th, 2008 |
| Replies: 4 Views: 1,055 ya using the getch is the good idea to tap the keyboard..
but i guess its not pretty good idea to use the getch() directly
since it waits for the keystroke.. always and pause the screen...
you... |
Forum: C++ Nov 13th, 2008 |
| Replies: 1 Views: 464 I decided to learn the template any how....
but... Each level is giving me the trauma staring up with the domino one after another.. please help....
Problem is
I use both printf(); and cout<<... |
Forum: C++ Nov 13th, 2008 |
| Replies: 8 Views: 443 it is becoz of the scope of the variable
one declare out side the function is in the Global Scope
and other one is inside the Function having the Function Scope
...
now how question is if the... |
Forum: C++ Nov 13th, 2008 |
| Replies: 1 Views: 216 I am new to the templates..
I was trying to implement templates in my x programs....
and i am stuck ...
help me...
problem is with the "search" function
when i was not using... |
Forum: C++ Oct 12th, 2008 |
| Replies: 19 Views: 1,496 Looks like you are back to the age before the array. :d |
Forum: C++ Oct 10th, 2008 |
| Replies: 18 Views: 1,094 I guess rest you can figure it out
#include<iostream>
using namespace std;
#define cls system("cls"); //for clear screen its my style
#define max 10
int index=0;
int no[max]; |
Forum: C++ Oct 10th, 2008 |
| Replies: 18 Views: 1,094 |
Forum: C++ Oct 10th, 2008 |
| Replies: 18 Views: 1,094 you missed the return statements :) |
Forum: C++ Oct 10th, 2008 |
| Replies: 8 Views: 503 Ya I agree Arrary of char should satisfy him..
:d |
Forum: C++ Oct 10th, 2008 |
| Replies: 8 Views: 503 I don't really understand the question but...
let p be the pointer
int a;
int *p=&a; //stores the the address of a
cout<<&p; //revels the address of P
cout<<p; //revels the address it stores... |
Forum: C++ Oct 10th, 2008 |
| Replies: 8 Views: 503 That is obvious what do you expect..
the ASCII Code for * is 42
you can also do something like
int c=42;
cout<<(char)c;
if you want to print the char :D |
Forum: C++ Oct 10th, 2008 |
| Replies: 5 Views: 557 if you are such crazy about the string.
then you must subtract 48 from the each character of the string
as ASCII value of 1 is 49
when you subtract 49-48 = 1
then you can use it as normally |
Forum: C++ Oct 10th, 2008 |
| Replies: 5 Views: 557 I guess using string is not the good idea.
What we use to do was.... some how take the binary in the int or long.
then take a loop and extract the element one by one form the last...
I guess... |
Forum: C++ Oct 10th, 2008 |
| Replies: 8 Views: 503 Character can be inserted to an no. eg. int.
I that situation the char ASCII code is copied to the int.
like for example
A=65
a=97
As you program look confusing i'm sorry i can't tell you... |
Forum: C++ Oct 10th, 2008 |
| Replies: 2 Views: 572 This might help you...
#include <iostream>
#include <stdio.h>
#include <conio.h>
using namespace std;
typedef struct node *linklist; |
Forum: C++ Oct 10th, 2008 |
| Replies: 18 Views: 1,094 This is one of the most crazy style of programming which i have ever seen...
ok let me make it in point wise
1. What kind a for variable the mean is?
void ComputeMean (double mean, int... |
Forum: C++ Oct 10th, 2008 |
| Replies: 12 Views: 2,441 Hey that Cheating. This is not what i meant for.. :sad: |
Forum: C++ Oct 10th, 2008 |
| Replies: 12 Views: 2,441 I got your point..
But lets say If i want to create the pointer variable.
like for example normally what we do is
struct box
{
... blah .. blah.. blah
}; |
Forum: C++ Oct 10th, 2008 |
| Replies: 19 Views: 1,496 I agree with you ArkM. :)
I wan't to ask what container have to be used to do such thing...
And don't tell me sets.. stuff like my mathematics teacher does..:D |
Forum: C++ Oct 10th, 2008 |
| Replies: 19 Views: 1,496 I guess its not the healthy choice according to him as he says many no...
I'm doubting about the the question.:-/ |