• Kursy
  • Kompilator kodu
  • Dyskusja
  • Cennik
  • Zespoły
Menu

Dyskusje Q&A

<typename T> vs <class T>
typename
0 głosów
1 Odpowiedź
5th Feb 2019, 5:57 AM
Daniel Cooper
Daniel Cooper - avatar
In which situation template<class T> is use?
c++templates
1 Głos
3 odpowiedzi
31st Jan 2020, 3:31 AM
Shekhar Sharma
Shekhar Sharma - avatar
I got this problem: template<class T> Tmax<Ta,Tb,,Tc>
c++
0 głosów
2 odpowiedzi
23rd Sep 2022, 7:50 PM
Oliver Pasaribu
Oliver Pasaribu - avatar
What is the scope of template life in a program?
<templateclasst>
2 głosów
2 odpowiedzi
23rd Nov 2016, 3:31 AM
sadiya zainab
sadiya zainab - avatar
Drag and drop from the options below to declare a class template ''Spunky''. <class T> Spunky { public: Spunky( x) {
c++templates
-1 Głos
2 odpowiedzi
19th Apr 2019, 5:32 AM
Mayank Arya
Mayank Arya - avatar
what is the output of this code? template<class t> void f(t){ static int I=0; cout<<I++; } int main (){ f(1); f(1.0); f(1); }
c++
2 głosów
5 odpowiedzi
26th Jul 2016, 3:05 PM
Darsh Shah
Darsh Shah - avatar
what is the output of this code? template<class t> void f(t){ static int I=0; cout<<I++; } int main (){ f(1); f(1.0); f(1); }
c++
1 Głos
3 odpowiedzi
24th Jul 2016, 5:22 PM
Darsh Shah
Darsh Shah - avatar
why this output is 1 ,why not 2 ? template <class T> void f(T &i){ cout<<1; } template<> void f(const int &i){ cout<<2; } int main (){ int i=8; f(i); }
c++
1 Głos
2 odpowiedzi
25th Aug 2016, 1:18 PM
Lekhraj Singh
Lekhraj Singh - avatar
Popularne dzisiaj
I have finished first in Saturn League 3 times in a row, why have I not been given the badge for “Intergalactic Champion”
3 Votes
I am new
1 Votes
Changing String Variables into int in C++
0 Votes
Python intermediate help with dictionaries
0 Votes
Advertising in Sololearn
1 Votes
Marquee
1 Votes
Fill in the blank to declare a static variable.
0 Votes
RUST'S FUTURE
1 Votes
Any Advise?
1 Votes
What are the advantages and disadvantages of using let vs var when declaring variables in JavaScript?
0 Votes