fearless
Hi, can someone point me the best way to integrate databases with c++? I need them to be online
MySQL has libraries that you can include and use to connect to databases online
MemoriasIT
fearless
depends on the database type, most large databases will have support for c/c++ with libraries etc, but thats the way to integrate remote databases with c/c++. Local databases can use Sqlite libraries. But there is probably other libraries out there to support other database types
MemoriasIT
I just need to pull some strings, would you recommend mysql then?
fearless
what type of database is it?
MemoriasIT
And I need them to be online, not offline
MemoriasIT
Just info which is updated and need to be changed from time to time
fearless
yes but what is the source of the database, is it a sql server backend, a mysql backend etc from a website?
MemoriasIT
I still haven't developed anything that's why Im asking for the best option
fearless
well could also implement some type of xml or json output on a website or rest api type thing, then you just have to read the url to get the database info. For updating you then need to send some info back to website, the website then does the reading and writing of data to and from the database to the web output (xml, json or whatever)
fearless
could be a lot more work to do it via a website, as in having to code for that as well, but depends on the project i guess
fearless
and the database behind the website or on the server
MemoriasIT
I just need to have a set of strings and they have to be changed from time to time, I want them to be checked in the cpp program and change if they were updated
fearless
yes so a mysql server or something and read from it and now and then update some stuff. Just have to take into account any security, dont want to leave access to database open to all
MemoriasIT
OK thanks for the help I'll look into it 👍
fearless
ok
MemoriasIT
But I need it to be online
Anonymous
😊😊😊😊
Anonymous
Anonymous
Good programmer
Anonymous
Anonymous
What about sql&database
Anonymous
I don't have any idea on them
Anonymous
I justKnow C++, javascript , Python , Html5 , Css3 Like That
Anonymous
I justKnow C++, javascript , Python , Html5 , Css3 Like That
How do u using them with out Php and database
Anonymous
I just Create local Web
Anonymous
But I have tried using Mysql Server
Anonymous
Using XAMPP In Windows
Isc
Good programmer
good? it doesnt even have identation and uses "null" in JS
Davixcky_dev
Top Players 1. Sumeyye – 78 2. Rokas Urbelis – 74 3. Ritwik – 30 4. Mester – 29 5. deadbyte – 28 6. Caner Aslan – 28 7. D Ge – 25 8. Evgeniy Zheltonozhskiy🇮🇱 – 24 9. Visa Pollari – 23 10. Дмитрий Чернозем – 21 11. ISHAI COHEN – 17 12. ايوب – 17 13. Michael – 16 14. Abhishek ❤ – 16 15. Shekar Neo – 14 16. Davixcky_dev – 14 17. Anton Chernysh – 9 18. Alvarísimo🦄 – 5 19. hoip – 5 20. tony – 5
Ros
Any book you want is there http://index-of.es
Asdf
wellcome @ETHICAL90
Ethical
Thanks bros
Ethical
Its a pleasure being here
B
Who can explain anything about malloc and pointer
Max
Google?
Anonymous
DuckDuckgo
Max
can anybody pin this? http://www.catb.org/esr/faqs/smart-questions.html
#include <iostream> #include <iomanip> #include <complex> #include <cmath> int main() { using namespace std::complex_literals; std::cout << std::fixed << std::setprecision(1); std::complex<double> z1 = 1i * 1i; // imaginary unit squared std::cout << "i * i = " << z1 << '\n'; std::complex<double> z2 = std::pow(1i, 2); // imaginary unit squared std::cout << "pow(i, 2) = " << z2 << '\n'; double PI = std::acos(-1); std::complex<double> z3 = std::exp(1i * PI); // Euler's formula std::cout << "exp(i * pi) = " << z3 << '\n'; std::complex<double> z4 = 1. + 2i, z5 = 1. - 2i; // conjugates std::cout << "(1+2i)*(1-2i) = " << z4*z5 << '\n'; } I found the code below at http://en.cppreference.com/w/cpp/numeric/complex However errors occur when compiling it on my machine.
Could someone give any advice?
Max
you can copy errors also.
Max
post here g++ -v
$ g++ -v Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 8.0.0 (clang-800.0.42.1) Target: x86_64-apple-darwin16.7.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
It seems my g++ is linked to clang++
Max
probably that your toolchain doesn't have complex literals namespace
Max
just rewrite code to c++11
Max
complex literals, maybe, is a part of C++14
Oh yes, you got the point. I just complied successfully after added --std=c++14 flag
Thanks a lot
Max
enjoy :)
Liam
$ g++ -v Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 8.0.0 (clang-800.0.42.1) Target: x86_64-apple-darwin16.7.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
In C++11 or under, your codes will look like this: #include <iostream> #include <iomanip> #include <complex> #include <cmath> int main() { std::cout << std::fixed << std::setprecision(1); std::complex<double> i{0, 1}; std::complex<double> z1{i * i}; // imaginary unit squared std::cout << "i * i = " << z1 << '\n'; std::complex<double> z2 = std::pow(i, 2); // imaginary unit squared std::cout << "pow(i, 2) = " << z2 << '\n'; double PI = std::acos(-1); std::complex<double> z3 = std::exp(i * PI); // Euler's formula std::cout << "exp(i * pi) = " << z3 << '\n'; std::complex<double> z4{1.0, 2}, z5{1.0, -2}; // conjugates std::cout << "(1+2i)*(1-2i) = " << z4 * z5 << '\n'; }
Liam
Liam
Sorry. Since list initialization is applied, it requires C++11 (no under).
I get it, great appreciation
Anonymous
hello
Ethical
Hi
Liam
Hi ^ 606.
Anonymous
anyone here familiar with aarch64 assembly?
Anonymous
welcome ppl
Anonymous
hi
Anonymous
guys
Anonymous
how are there?
Anonymous
can ı ask your somethink?
Anonymous
yes xd
Anonymous
how to
Anonymous
c++
Anonymous
proxy program
Anonymous
3 second
Anonymous
once
Anonymous
WTF
Anonymous
What?
Anonymous
What
Anonymous
proxy program
Anonymous
change 3 second
Anonymous
once