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
~3K People Reached
Favorite Tags
Member Avatar for mksakeesh

why does code 1 gives segfault error whereas code 2 doesn't, both are basically same, do anyone have any suggestion? 1. #include <iostream> using namespace std; template <class T> class nodes { template <class U> friend class linklistchain; private: nodes<T> *adrs; T data; }; template <class T> class linklistchain { …

Member Avatar for mksakeesh
0
269
Member Avatar for mksakeesh

Please check the below code template<class T> class Row { public: Row(int cols=0):row(NULL) {SetRowSize(cols);} ~Row() {SetRowSize(0); } Row(const Row &r):row(NULL) { SetRowSize(r.numCols); for (int i=0;i<numCols;i++) row[i]=r.row[i]; } void SetRowSize(int n) { if(row) delete[] row; if (n>0) { row=new T[n]; memset(row,0,sizeof(T)*n/sizeof(char)); } else row=NULL; numCols=n; } int size() { return numCols;} …

Member Avatar for thelamb
0
119
Member Avatar for mksakeesh

I have an excel sheet which has the ID of some users , i would like to check if those users exist in a table in database. What I usually do is, concatenate a comma to the end of each ID in excel using excel formulae and the run below …

Member Avatar for gelsanmiguel
0
61
Member Avatar for mksakeesh

Hi, I have an text file "CD details" with content as below 1~ Cast Away~ English~ Thriller~ U~ 2~ Titanic~ English~ Romance~ A~ 3~ Forest Gump~ English~ Life~ U~ I am trying to add some additional data to the start of each line by using a code as below [code] …

Member Avatar for mksakeesh
0
96
Member Avatar for mksakeesh

i need to call an multi-select listbox from one html page to another html page do anybody know how to do this. can anybody explain me this with example.

Member Avatar for buddylee17
0
84
Member Avatar for mksakeesh
Member Avatar for mksakeesh

I am trying to write some cd details to a file, from a queue. First i have taken all details from keyboard to a Queue and the made to write all those to a file in ascii format. Each queue has details like CD ID, film Name, film language, film …

Member Avatar for ArkM
0
98
Member Avatar for mksakeesh

Please compare the two codes below why is the first one displaying output to monitor where as the second code is displaying some unwanted characters. CODE 1 ..... #include <fstream.h> #include <string.h> void main() { fstream File("test_file.txt",ios::out | ios::in | ios::binary ); char arr[13]; strcpy(arr,"Hello World!"); //put Hello World! into …

Member Avatar for Salem
0
155
Member Avatar for mksakeesh

#include<fstream.h> #include<iostream.h> #include<string.h> using namespace std; class emp { public: char *per; int i; int write2() { ofstream out("ss.txt",ios::app | ios::binary ); cout<<"Enter some character ....\n"; per = new char[100]; cin.getline(per,100,'\n') out.write("\n",1); out.write(per,strlen(per)); out<< "\n"; per = "asdfgh"; out.write(per,strlen(per)); out.write((char *)&i,5); out.write(per,strlen(per)); return 0; } int read_2() { char * …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for mksakeesh

[code] #include<fstream.h> #include<string.h> using namespace std; class emp { public: char *per; void write() { ofstream out("ss.txt",ios::app | ios::binary); cout<<"Enter some character ....\n"; cin>>*per; //out.write(per,sizeof(per)); out.write(per,strlen(per)); } }; void main() { emp e; e.write(); } [/code] Why this is not working?

Member Avatar for Clockowl
0
157