Forum: C++ Apr 28th, 2009 |
| Replies: 1 Views: 175 hellooo.....
i wrote this code.. which is a part of a bigger code...
i have done this using structs..
now i have to do it with class but i dont know much about classes
need help urgently..... :(... |
Forum: C++ Apr 13th, 2009 |
| Replies: 9 Views: 641 am trying to read in the number of cells
and then read in line by line
and then i have to create dynamic array...
using function..... |
Forum: C++ Apr 13th, 2009 |
| Replies: 9 Views: 641 thanks :)
#include<iostream>
#include<fstream>
using namespace std;
struct cell
{
int *a[0];
int *b[1]; |
Forum: C++ Apr 13th, 2009 |
| Replies: 9 Views: 641 one more thing
whats the diffrence between
fin.get
and fin.getline?? |
Forum: C++ Apr 13th, 2009 |
| Replies: 9 Views: 641 its just an input format....... |
Forum: C++ Apr 13th, 2009 |
| Replies: 9 Views: 641 these are actually doors os a maze..
The four numbers indicate the cell numbers of the cells being led to through the respective door. -1 indicates absence of a door. For example, line number 2 is... |
Forum: C++ Apr 13th, 2009 |
| Replies: 9 Views: 641 suppose the input file is...
5(number of cells)
1 2 -1 4
0 2 3 4
1 0 3 -1
2 -1 3 1
2 0 1 -1
how will i Write a function to read data from an input file to create a dynamic array of pointers to... |
Forum: C++ Dec 1st, 2008 |
| Replies: 3 Views: 364 well its like this i have writen program that asks user to input even and odd integers and then add the even and odd integers seperatley and divide them by pi=3.14 and it should give the answer upto... |
Forum: C++ Dec 1st, 2008 |
| Replies: 3 Views: 364 heloo
can anyone plz tell me how use functions like power and setw....
in programmes...
thanku |
Forum: C++ Nov 23rd, 2008 |
| Replies: 2 Views: 278 helooo am new to C++ hope i will find some help here :)
well the question is
if the i ask the user to input an integer like
int a;
cin>>a;
and if user inputs 2345
and the output i require is 2... |