ㅤ Question!
Text a program in C
ㅤ Question!
There is a queue on the deck
harmony5 🇺🇳 ⌤
Rose
I want your help
Don't ask meta questions. In other words, don't ask to ask. Questions like "Does anyone know XYZ?", "Has anyone used XYZ?" or "Can someone help me?" are all considered meta questions because they don't specify what your actual problem is.
These questions give the impression that you want people to approach you and offer their help as if they don't have any other work to do. Now doesn't that expectation make you look like an idiot?
If you have a question ask it directly. You are more likely to get a response that way.
╚»JAY HACK«╝𓆩𓊈OWNER𓊉🥀』⃝❤️🔥
Cc+
Rose
Heya :) PM me if you have any questions on how to use me!
PKA 👾
Michael Scofield
C+c
Mehrad
Рчти
Any one help I have problems with xilinx impact doesn't contact showing wrong 923 cables
Рчти
I installed drivers and cable drivers
Ludovic 'Archivist'
Рчти
Ludovic 'Archivist'
Doesn't help
1/ Your question is off-topic so I was being nice not giving you a warn
2/ No-one can answer your question because you didn't provide any information about your setup nor what you are trying to achieve
3/ You are on your way to a ban
Рчти
Ludovic 'Archivist'
Rose
Reported 奴隶主 [7561851309] to admins.
Hritik
I'm trying to run a C++ driver code, but it is giving me following error:
Spectre-mitigated libraries are required for this project. Install them from the visual studio installer for any toolsets and architecture being used.
I have installed the latest versions but still getting this error
Can anyone please help
Ludovic 'Archivist'
Ludovic 'Archivist'
Read carefully
Hritik
I installed the libraries
C++ ATL FOR LATEST
C++ MFC for latest etc
Godd
Kaddy
Dev C++ uses GCC compiler internally, so you can directly install it like you install libraries for gcc
Godd
Rose
User D/Hamdi has 1/2 warnings; be careful!
Reason:
spam
Rose
User SAROJ has 1/2 warnings; be careful!
Reason:
spam/ad
Rose
User Hasah has 1/2 warnings; be careful!
Reason:
nohello.com
E
Hellp
E
C++ Basic pointer (with class)
class Base {
public:
virtual void show() {
cout << "Base\n";
}
};
class Derived : public Base {
public:
void show() override {
cout << "Derived\n";
}
};
Base* b = new Derived();
b->show(); // Output: Derived
_Shine
Ludovic 'Archivist'
Hellp
http://www.catb.org/esr/faqs/smart-questions.html
dearfl
Chat Boss
dearfl sent a code, it has been re-uploaded as a quote
#include <iostream>
using namespace std;
class Base {
public:
virtual ~Base(){}
virtual void func(string str="B") {
cout << "B:" << str << std::endl;
}
};
class Derived : public Base {
public:
virtual ~Derived(){}
virtual void func(string str="D") {
cout << "D:" << str << std::endl;
}
};
int main() {
Base b;
Derived d;
b.func(); // B:B
d.func(); // D:D
Base& rb=b;
Derived& rd=d;
rb.func(); // B:B
rd.func(); // D:D
Base& rb1=d;
rb1.func(); // D:B
Base* pb = &b;
pb->func(); // B:B
Base* pb1=&d;
pb1->func(); // D:B
Derived* pd1 = &d;
pd1->func(); // D:D
return 0;
}
Charlie
I'm a reverse engineer as well
Ludovic 'Archivist'
@K11M1 have i been de-admined?
klimi
Ludovic 'Archivist'
I was replying to a guy, I guess he was banned before I killed him
Oluwatosin
Pls I am having problem with I code and I need help solving it
Oluwatosin
error: 'class llvm::PointerType' has no member named 'getPointerElementType'; did you mean 'getStructElementType'? 551 | auto dataType = ptrType->getPointerElementType(); | ^~~~~~~~~~~~~~~~~~~~~ | getStructElementType
I am getting this error while trying to run my C++ program I tried using getElementType(), but it still did not work then I tried using the PointerType() only, but it still did not work, I also tried downgrading and upgrading my LLVM version still had no luck
Vlad
Oluwatosin
My code
Vlad
Then have your tried changing it to getStructElementType?
Oluwatosin
Yes but it didn't work and it also doesn't fit my use case
Vlad
Vlad
That will work for you
Oluwatosin
Ok thanks
Vlad
Oluwatosin
I would do that now
Vlad
Probably API was changed and the member function renamed
Vlad
Vlad
If so it might be too old
Oluwatosin
No my personal code
Vlad
Welp you got the idea to use getPointerElementType() from somewhere
Vlad
So it must have been either docs or a sample
harmony5 🇺🇳 ⌤
Vlad
Yes
Vlad
tl;dr try with pastebin
Vlad
https://github.com/pocl/pocl/issues/1060
Vlad
Anyways here's your answer
Vlad
@K11M1 unban plz
Oluwatosin
Vlad
Thank you
Im telling ya put it in the pastebin.com
Vlad
Oluwatosin
Ok
Vlad
Lol
Oluwatosin
Oh that's not good
Vlad
Vlad
Vlad
https://pastebin.com/aYwkcXrN
Vlad
Oluwatosin the whole PointerType api is deprecated
Vlad
Only opaque pointers are left
Oluwatosin
Ok, Thank you
Oluwatosin
Because when I checked llvm docs I only saw something related to integral pointer types
Vlad
https://llvm.org/docs/OpaquePointers.html
Vlad
There's migration instructions at the bottom