Anonymous
This all happened when I started changing the MyVector class into a class template. Maybe that'll help.
Anonymous
source, maybe?
Found anything? Because I need this fixed really soon. Normally I can solve my own problems, but this one for some reason is getting to me.
Igor🇺🇦
^
Did you pass all files to compiler? When you use all your code in single file as you posted everything works.
Anonymous
I posted it as a single file because that was the simplest way to paste it onto Pastebin. But I have it in 3 separate files. When I compile it on Ubuntu with GCC, I run: g++ main.cpp MyVector.cpp -o main; ./main The main.cpp file is what holds the main function. Well, I guess I'll try it all in one file, then.
Igor🇺🇦
Really?
How do you compile it? What files are there ?
Stanislav
compliled, but with warning :D
Anonymous
But your error is about "driver.cpp"
Mis-wrote it. The main file is main.cpp. My teacher just names his main files driver.cpp, so that's what came to mind for some reason.
Anonymous
Well that's interesting. Even on Visual Studio on Windows, it still gives me the same issues.
Anonymous
But in a single file it seems to work just fine...
Anonymous
Yes. The class definition is in MyVector.h, and the implementation code is in MyVector.cpp. I have properly written #include "MyVector.h" in the main.cpp file.
Anonymous
compliled, but with warning :D
Yeah, I'm guessing the warning you're seeing is the one about MyVector<char>::last not returning types in all scenarios. I purposely did that because that's how my assignment instructed me to write it.
Anonymous
Well, I'll turn it in as-is in one whole file. I'll try and figure out why it doesn't compile in separate files later. It's midnight and I'm tired. Thanks guys.
Anonymous
if you construct template, you must do it in header only
OOOOOHHHHH that's right! I think I remember my teacher telling me this.
Anonymous
C#
Anonymous
😂
Anonymous
Python
Stanislav
stop please
Anonymous
Anonymous
Anonymous
Can i discuss java here
Anonymous
Can i discuss java here
Any group for that
Anonymous
Can i discuss java here
Well, considering the chat name literally says C/C++, ummmmmmm... No.
Anonymous
Anonymous
A group
Ash.S
nope
Ash.S
i read it....
Dishant
Give me program abt palindrome in string..
Kelvin
Google
Kelvin
C#
Kelvin
Kelvin
https://medium.com/@germandiagogomez/getting-started-with-meson-in-c-part-2-58150354ff17
Kelvin
Try meson. Easy to setup than cmake.
Anonymous
Hi
sAntHoshH
Hello
Anonymous
Hey
Anonymous
Hi.
Dominic
Guys I'm newbie in programming
Anonymous
Guys I'm newbie in programming
Hi newbie in programming!
Anonymous
hi
fajar
JavaScript
fajar
C#
Kelvin
nithin
Thanks buddy☺️
Anonymous
Thx. I did.
Sushil
Akhil
I am a beginner
Akhil
Can any one help me in c language
Akhil
By saying any website name
Anonymous
google.com
Anonymous
;_;
Anonymous
https://www.tutorialspoint.com/cprogramming/index.htm
Anonymous
By saying any website name
https://www.tutorialspoint.com/cprogramming/index.htm
Akhil
Thank you
Asriel
Hello, I am developing a C application, but when I compile the achieve, it don't find the file I am using a Fopen("archive.extension", "r") All is in same paste.
Anonymous
ok
...
Are there some video lessons of C++?
...
For the beginning
joker
Anyone know how to hack Instagram
Igor🇺🇦
???
#cpp
Anonymous
Anyone know how to hack Instagram
github.com/ahmdrz/goinsta
Kelvin
Kelvin
https://jguegant.github.io//jguegant.github.io/blogs/tech/meta-crush-saga.html
Asriel
What is the type of yr file
Tks, for try help me but work now, was only permission error '-'