Badugar
My uni provided me an e-mail at their domain That was enough
like "your adress is danya@random.uni, you can use it for free" ?
Badugar
Ah ok, thanks.
Sid Sun
JetBrains is love
Anonymous
devc++
Do you want a warn, yeah?
Artöm
Chill
Artöm
devc++
Worse than codeblocks by the way
桃桃乌龙
Why?
It’s just bad, try serious IDEs like CLion
Artöm
Why?
Because it sucks. You deal with it more often than with C++ code
Anonymous
So you think dev c++ is better?
Anonymous
Augmented
Both suck
I am testing CLion now on MacOS, its quite nice with the dark theme, it's pity that there isn't community version...
Augmented
Both suck
Is there any significant benefits with C++14/17 language standarts, so far I was always stick with C++11?
Anonymous
Is there any significant benefits with C++14/17 language standarts, so far I was always stick with C++11?
14 and 17 are mostly about metaprogramming and multithreaded programming (fixing wierd moments, addind new nice stuff) IMHO
Anonymous
C++20 is gonna be huge
Anonymous
Augmented
Augmented
Define true parallelism
Like Verilog for FPGA's or CUDA for GPU's
olli
Is there any significant benefits with C++14/17 language standarts, so far I was always stick with C++11?
I would not go with anything older than C++ 14 because it offered quite some improvements over C++ 11, eg - "polymorphic" lambdas (auto parameter) - return type deduction for normal functions and lambdas - initialization of lambda captures - make_unique function - user-defined literals for string and chrono - member initialization and aggregates - changes to constexpr C++17 added - constexr if - class template argument deduction - fold expressions - launder - library: filesystem, optional, parallelism, any
Bojan_Krdemn
Hi! What is wrong with this code, it seems that it doesn't work bool isInDictionary(ifstream &infile, string word){ string line; size_t pos; while(infile.good()) { getline(infile,line); // get line from file pos=line.find(word); // word if(pos!=string::npos) // string::npos is returned if string is not found { return true;} } return false; }I want to return true if the word is in file
Bojan_Krdemn
none, it always returns false
Bojan_Krdemn
i just can't figure up what's the deal. i use that function inside a word ladder solution and it doesn't work
Dima
Anonymous
MᏫᎻᎯᎷᎷᎬᎠ
Dima
klimi
Bojan_Krdemn
seems that file is opened, i added a check if (!infile.is_open() ) to see if any errors occur
Bojan_Krdemn
seems that the function per see is quite good. perhaps problem lies within function string promptUserFile(ifstream &infile, string prompt){ while (true) { cout << prompt; string filename; getline(cin, filename); infile.open(filename.c_str()); if (!infile.fail()) return filename; infile.clear(); cout<<ERROR_MSG <<endl; if (prompt=="") prompt = PROMPT_FILE_MSG; } }``
Bojan_Krdemn
cause isolated find function (created console app with it being in the main) - works
Bojan_Krdemn
think that i found
Bojan_Krdemn
btw, any belarusians here?
Mat
👍
14•08
😀😀
Rounak
Anyone is active?
I_Interface
Anyone is active?
I'm passive, sry.
Rounak
https://pastebin.com/Yb0Y2ap3
Rounak
Y i am getting segmentation fault error
I_Interface
Y i am getting segmentation fault error
Have you tried to debbug it ?
I_Interface
https://pastebin.com/Yb0Y2ap3
int N; cin>>N; int a[N]; N should be const.
Rounak
int N; cin>>N; int a[N]; N should be const.
Bro i need to write the function part only... Its a geeks for geeks code
Rounak
What mistakes I have done in the code
Rounak
I have done same code in c in my codeblock it is executing
I_Interface
What mistakes I have done in the code
U should find them by urself, it will improve your skill.
I_Interface
Try to debbug it and find errors.
Rounak
I_Interface
Please say na😶😶
Debbuging - it's 80 % of programming time.
I_Interface
In mostly cases.
Rounak
In mostly cases.
Done😁😁😁silly mistakes 😅😅
I_Interface
Thanks bro☺️
Good job. Don't be afraid to try solve it by yourself. Even if it will take a day.
Wagdi Alarifee
why ..
Wagdi Alarifee
sorry .. book ..
Wagdi Alarifee
free ..
Nameful
Do you like dots?
Wagdi Alarifee
ya ..
Wagdi Alarifee
code about find GCD ..
Kumar
Hello, everyone I want to practice some questions in c programming, so can you suggest me some online websites from which I can do.
Kumar
litcode
Thank you
Mukesh
Guys I'm Newbie So Can You Tell Me Which Language Is Best For Me To Learn