Puspam
Pastebin is an online service where you can store your code and then get a link to that code. Now, you can send that link here.
Talula
https://pastebin.com
Abdulaziz
try googling instead of asking quickly
Abhi
I have one question guya
Abhi
How can I prepare whole c++ and data structure in some days
Abhi
Yes
Abhi
Oo
Abhi
3rd semester
Puspam
Talula
What do you mean?
I mean, I didn't understand what he said.
Hitesh
Hello All Has anyone used Lief library?
Vikas
Hi
Vikas
const int SIZE = 26; struct node{ bool endOfWord; node* ar[SIZE]; };
Anonymous
Why is * used after node?
Maybe they want a **
Anonymous
But its most likely a typo
Anonymous
Since it's a fixed size and not specified as a **
Vikas
Is it necessary to use node as a pointer?
Vikas
What if we wont use * there?
Vikas
I am actually learning to initialize TRIE
Puspam
Is it necessary to use node as a pointer?
Yes, it's necessary, since the node needs to reference another location of the memory where maybe another node is located.
olli
I tried posting but it was deleted. Gist is I keep getting this error despite research and trying different paths. OS is recent version of OS X. Using the cktan/tomlcpp library and it's installed via make and make install. LD_LIBRARY_PATH didn't fix it. Dropping the files into the project dir didn't clear the error either. I am at a loss, as is google. Repo on github at tsasser05/cryptoTracker Any ideas what I should do to get the compiler to find the TOML lib? └─ ▶ g++ main.cpp Transaction.cpp Coin.cpp -o coin -std=c++17 -Wall -I/usr/local/lib/ -I/usr/local/include Undefined symbols for architecture x86_64: "toml::parseFile(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from: _main in main-a92e6a.o "toml::Table::getTable(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const", referenced from: _main in main-a92e6a.o "toml::Table::getDouble(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const", referenced from: _main in main-a92e6a.o "toml::Table::getString(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const", referenced from: _main in main-a92e6a.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
it seems the project does not use the correct toml API? E.g. it should be parse_file instead of parseFile (doc)
Koi
is it possible to use the <list> to create a tree? I am having problem tracing from leaf to root T-T
Abhi
I mean, I didn't understand what he said.
Ok I said that my exams will be coming in few days and I did not prepare c++
Talula
Ok I said that my exams will be coming in few days and I did not prepare c++
Great, then simple solution is that you should fail the exams.
Abhi
😂😂
.
permission to ask, the difference switch with if else what? 😭😭
DEV 7
anyone good in data science I need help please dm me its urgent
Anonymous
Hi all, so yesterday i started using the getline function while working with strings, works fine only that some times when using many string lines will work on first few lines and then skips and terminates the program.....what am i doing wrong, or when should i be using the function
D
Send your code
D
I suppose you should use cin.ignore
D
Check info on web maybe i'm right
GandolfAF
Anyone else know the procdure for troubleshooting linking problems? I have done the following: 1) Installed per docs into /usr/local/{lib|include} via make and make install 2) verified LD_LIBRARY_PATH includes /usr/local/lib 3) Tried putting the files in the project directory (as included in the docs) All failed so far. Do I need to add /usr/local/include to the environment variables?
Anonymous
I suppose you should use cin.ignore
it is still skipping for(int i=0;i<=10;i++) { cout<<"Enter car owner name:"<<endl; getline(cin,bk[i].owner); cin.ignore(); cout<<"Enter model of the car"<<endl; getline(cin,bk[i].model); cin.ignore(); cout<<" Enter the colur of the car"<<endl; getline(cin,bk[i].colour); cin.ignore(); cout<<" What is the cost of the car:"<<endl; cin>>bk[i].cost; cin.ignore();
Anonymous
am i using cin.ignore wrongly, or what is the problem
D
cin.ignore(numeric_limits<streamsize>::max(), '\n');
D
try that
D
and add some libraries
Anonymous
Have you recompile it ?
yes, when taking user input,skipps after inputting car model
D
#include<ios> //for stream size #include<limits> //for numeric limits
D
send me your full code
Anonymous
Why we use #include<iostream>
Oksana
Hi, everyone. Has anyone ever tried to build open-source library "mdbtools" in Visual Studio on Windows? I work on that and I have troubles with some headers. Any advice would be great 🙂
Oksana
Have anybody ever wrote own .mdb files reader/writer?
Hi! I would love to hear how it is going with mdb files 🙂
Anonymous
Hey everyone i am facing this issue from quite a week... Tried every possible way but atill same thing........... Problem is id return1 in status visual Studio..... C programing
Roxifλsz 🇱🇹
/ban crypto meme
Anshul
Try after turning off on time checking in antivirus software
Anonymous
Maybe you have some antivirus stopping your code
Sir i tried i even blocked antivirus but still
Anshul
I faced the same issue and it was because mcafee
Talula
How can i media is not available
Don't post media, you can post your code using pastebin.com
Anshul
https://stackoverflow.com/questions/27272525/what-does-collect2-error-ld-returned-1-exit-status-mean#:~:text=The%20ld%20returned%201%20exit,build%20process%20encountered%20some%20errors.
Anonymous
Tried all possible ways like turned off antivirus, saved file
Anshul
share the code
Anonymous
Can i personally dm u?
Anshul
You can but I'm not sure if I'll be of help or not. If you share here there are people who may solve your problem
Anonymous
But i can't share media that's the issue
Anonymous
I can send u there
Anshul
Use pastebin
Anshul
I can send u there
Ok send me...
Pavel
Does this look like a correct non-locking stack implementation? https://github.com/gameraccoon/raccoon-ecs/blob/311a63c838e2f091038972b3fd77f21e80fc0a60/async_stack.h
Naman
I just got project in my college regarding making a mini project And i have no i idea what should So pliss suggest me a topic which i can make using C program
Prabhat
But i can't share media that's the issue
check filename also if you have whitespace in it
Prabhat
and also 'g++ -v' to confirm if its there in the path
Pavel
Does this look like a correct non-locking stack implementation? https://github.com/gameraccoon/raccoon-ecs/blob/311a63c838e2f091038972b3fd77f21e80fc0a60/async_stack.h
Found one issue, I access nodeToPop->next in pop_front that can be deleted by the time if this function is accessed from two threads
Ammar
/report