Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~892 People Reached
Favorite Forums
Favorite Tags
Member Avatar for sairakhalid

I need to know the syntax of how i can read a string from a file without using char array or char variable. i want to declare a variable of string type but its giving error . I have include <cstring>,<ctype> libraries. int main() { string s1; ifstream fin fin.open("myfile.txt"); …

Member Avatar for mraza1_ch
0
281
Member Avatar for sairakhalid

[CODE] #include<iostream> #include<time.h> #include<conio.h> using namespace std; class adclist { struct list { int data; list* next; }; public: void makelist(); }; void adclist::makelist() { list** table = new list* [10]; for(int j =0; j < 10 ; j++) table[j] = NULL; for ( int m =0; m < 10; …

Member Avatar for sairakhalid
0
150
Member Avatar for sairakhalid

How can i make addition in my linked lists if the nodes are stroing two values: 1) int element 2) int colomnvalue i have to make the addition on the basis that the nodes having the same colomvalue, thier element should be added. This addition is to be made in …

Member Avatar for Taywin
0
162
Member Avatar for sairakhalid

i want to know whats the error over here. i just want to store the three value in a node and making a linked list but after storing two nodes that is headptr and than temptr, when the third node is made it stops. I think my error is somewhere …

Member Avatar for sairakhalid
0
171
Member Avatar for sairakhalid

How can i declare 2D array in visual C++ 6.0 as a member of class? this syntax of mine is giving error. class sparseadd { int *p; int row; int col }; sparseadd::sparseadd(int r, int c) { row = r; col = c; p = new int[r][c]; // here i …

Member Avatar for sairakhalid
0
128