Forum: C++ Oct 2nd, 2009 |
| Replies: 4 Views: 146 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: 146 struct Table
{
char* aTag;
char* bTag;
};
int main()
{
Table T1;
cout<<T1.aTag;
cout<<T1.bTag; |
Forum: C++ Oct 2nd, 2009 |
| Replies: 4 Views: 264 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: 264 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: 163 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: 237 create one more construtor without argument
autop() { } |
Forum: C++ Aug 30th, 2009 |
| Replies: 3 Views: 163 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: 234 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: 211 thank a lot.. i had never done this with the function.......................... |
Forum: C++ Aug 26th, 2009 |
| Replies: 2 Views: 211 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,055 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: 798 Check Palindrome: Binary & Decimal |
Forum: C++ Mar 7th, 2009 |
| Replies: 8 Views: 886 Ya only two choices ....
1. Keep track of insertion and deletion as said above.
2. OR Count all over again |
Forum: Windows NT / 2000 / XP Mar 6th, 2009 |
| Replies: 1 Views: 334 hey my task manger look like something else... without the menu...
Just cheak the picture...
Does any one has the clue.. |
Forum: C Jan 24th, 2009 |
| Replies: 7 Views: 805 but how do delete in case when i am using stdio.h file handling where the file gets saved when you "fflush(FILE *);"; or "fclose(FILE *);" |
Forum: C Jan 24th, 2009 |
| Replies: 7 Views: 805 i understand what you are saying and i am trying to write solve same problem which you mention making of "hello world" to "how is world".
But thats not what i want.. I want to know how to clear the... |
Forum: C Jan 24th, 2009 |
| Replies: 7 Views: 805 I know that stuff.. i if you try to do normally also it will store in buffer untill you don't flush it.. my question is i am clearing (deleting) character from the buffer what should i used to clear... |
Forum: C Jan 23rd, 2009 |
| Replies: 8 Views: 1,443 try this out i will work i used fgetc, iguess you should know that its interger not some string to store in.
ASCII 48 = 0 and so on....
#include <iostream>
using namespace std;
#define... |
Forum: C Jan 23rd, 2009 |
| Replies: 7 Views: 805 I was creating some sort of text editing program.
Whose display and file writing are going parallely.
How to clear the character in the file when i dont back space.
I tried clear character by... |
Forum: C++ Nov 20th, 2008 |
| Replies: 5 Views: 2,648 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,201 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,648 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,201 |
Forum: C++ Nov 20th, 2008 |
| Replies: 25 Views: 1,201 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: Visual Basic 4 / 5 / 6 Nov 15th, 2008 |
| Replies: 8 Views: 1,226 dont just copy the code,match the braces
it is just a code snippet
so use the correct syntax
Private Sub cmdSwitch_click()
if picture1.picture ="D:\hehe\Winter.jpg" then
picture1.picture =... |
Forum: C++ Nov 13th, 2008 |
| Replies: 8 Views: 420 ya ya, thanx for correcting... |
Forum: C++ Nov 13th, 2008 |
| Replies: 4 Views: 1,025 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,025 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: 456 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: 420 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: 210 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,473 Looks like you are back to the age before the array. :d |
Forum: C++ Oct 10th, 2008 |
| Replies: 18 Views: 1,060 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,060 |
Forum: C++ Oct 10th, 2008 |
| Replies: 18 Views: 1,060 you missed the return statements :) |
Forum: C++ Oct 10th, 2008 |
| Replies: 8 Views: 484 Ya I agree Arrary of char should satisfy him..
:d |
Forum: C++ Oct 10th, 2008 |
| Replies: 8 Views: 484 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: 484 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: 541 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: 541 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... |