Click here to Skip to main content
14,694,397 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Windows XP Convert SystemDrive Variable e.g. %SystemDrive% - into equivelant C++ code Pin
Victor Nijegorodov4-Sep-20 22:37
MemberVictor Nijegorodov4-Sep-20 22:37 
GeneralRe: Windows XP Convert SystemDrive Variable e.g. %SystemDrive% - into equivelant C++ code Pin
jackngill5-Sep-20 0:05
Memberjackngill5-Sep-20 0:05 
GeneralRe: Windows XP Convert SystemDrive Variable e.g. %SystemDrive% - into equivelant C++ code Pin
Victor Nijegorodov5-Sep-20 0:19
MemberVictor Nijegorodov5-Sep-20 0:19 
GeneralRe: Windows XP Convert SystemDrive Variable e.g. %SystemDrive% - into equivelant C++ code Pin
jackngill5-Sep-20 0:54
Memberjackngill5-Sep-20 0:54 
GeneralRe: Windows XP Convert SystemDrive Variable e.g. %SystemDrive% - into equivelant C++ code Pin
Victor Nijegorodov5-Sep-20 1:07
MemberVictor Nijegorodov5-Sep-20 1:07 
GeneralRe: Windows XP Convert SystemDrive Variable e.g. %SystemDrive% - into equivelant C++ code Pin
jackngill5-Sep-20 3:34
Memberjackngill5-Sep-20 3:34 
GeneralRe: Windows XP Convert SystemDrive Variable e.g. %SystemDrive% - into equivelant C++ code Pin
Victor Nijegorodov5-Sep-20 5:32
MemberVictor Nijegorodov5-Sep-20 5:32 
QuestionHi I am trying to overload >> operator for custom templated vector class but getting error Undifined Type 'T' Pin
vinay10829-Aug-20 18:54
Membervinay10829-Aug-20 18:54 
istream& operator>>(istream& cin,  Vector<class T>& v)
{

	cout << "input size" << endl;
	int n ;
	cin >> n;
	cout << "intput vector" << endl;
	for (int i = 0; i < n; i++)
	{
		T data;
		cin >> data;
		v.push_back(data);
	}
	return cin;
}
int main()
{
	Vector <string>v(5);
	
	cin>>v;

}
Getting error undefined type T data;

AnswerRe: Hi I am trying to overload >> operator for custom templated vector class but getting error Undifined Type 'T' Pin
Greg Utas30-Aug-20 3:06
professionalGreg Utas30-Aug-20 3:06 
GeneralRe: Hi I am trying to overload >> operator for custom templated vector class but getting error Undifined Type 'T' Pin
vinay10830-Aug-20 8:01
Membervinay10830-Aug-20 8:01 
GeneralRe: Hi I am trying to overload >> operator for custom templated vector class but getting error Undifined Type 'T' Pin
Greg Utas30-Aug-20 8:06
professionalGreg Utas30-Aug-20 8:06 
AnswerRe: Hi I am trying to overload >> operator for custom templated vector class but getting error Undifined Type 'T' Pin
Mircea Neacsu30-Aug-20 3:07
MemberMircea Neacsu30-Aug-20 3:07 
GeneralRe: Hi I am trying to overload >> operator for custom templated vector class but getting error Undifined Type 'T' Pin
vinay10830-Aug-20 8:05
Membervinay10830-Aug-20 8:05 
AnswerRe: Hi I am trying to overload >> operator for custom templated vector class but getting error Undifined Type 'T' Pin
Stefan_Lang1-Sep-20 0:53
mveStefan_Lang1-Sep-20 0:53 
QuestionWhy does a letter disappear when I'm writing the following (the problem is the underlined code.) Pin
hubblee28-Aug-20 11:38
Memberhubblee28-Aug-20 11:38 
AnswerRe: Why does a letter disappear when I'm writing the following (the problem is the underlined code.) Pin
jeron128-Aug-20 14:11
Memberjeron128-Aug-20 14:11 
GeneralRe: Why does a letter disappear when I'm writing the following (the problem is the underlined code.) Pin
Richard MacCutchan28-Aug-20 22:07
mveRichard MacCutchan28-Aug-20 22:07 
AnswerRe: Why does a letter disappear when I'm writing the following (the problem is the underlined code.) Pin
Mircea Neacsu28-Aug-20 16:50
MemberMircea Neacsu28-Aug-20 16:50 
GeneralRe: Why does a letter disappear when I'm writing the following (the problem is the underlined code.) Pin
Richard MacCutchan28-Aug-20 22:07
mveRichard MacCutchan28-Aug-20 22:07 
AnswerRe: Why does a letter disappear when I'm writing the following (the problem is the underlined code.) Pin
Richard MacCutchan28-Aug-20 22:06
mveRichard MacCutchan28-Aug-20 22:06 
QuestionProgramming.. Backtracking. Pin
vafoqome26-Aug-20 7:20
Membervafoqome26-Aug-20 7:20 
AnswerRe: Programming.. Backtracking. Pin
jeron126-Aug-20 7:22
Memberjeron126-Aug-20 7:22 
QuestionRe: Programming.. Backtracking. Pin
Richard MacCutchan26-Aug-20 22:39
mveRichard MacCutchan26-Aug-20 22:39 
AnswerRe: Programming.. Backtracking. Pin
Stefan_Lang28-Aug-20 6:23
mveStefan_Lang28-Aug-20 6:23 
AnswerRe: Programming.. Backtracking. Pin
Patrice T28-Aug-20 15:24
mvePatrice T28-Aug-20 15:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.