Message from C, C++ discussions

December 2019

— Which is why global varibles are used across multiple differnt functions

— 

#include<iostream>
#include<conio.h>
#include<string.h>

using namespace std;

int main(){
char word[30];
int lenglth;
char distinct[30];
std::cin>>(word);
int count = 0;
// std::cout<<word;
for (int i = 0; i < strlen(word); i++){
count = 0;
for (int j = 0; j < strlen(distinct); j++){
if (distinct[j] == word[i]){
count++;
}
if (count = 0){
distinct[strlen(distinct)+1] = word[i];
}
}
}
std::cout<<count<<std::endl;
std::cout<<word<<std::endl;
std::cout<<distinct<<std::endl;
if (strlen(distinct)%2 == 0){
std::cout << "CHAT WITH HER!";
}
else{
std::cout << "IGNORE HIM!";
}
return 0;
}

— There is some error in the append can anyone help regarding where is the error

— Is heapsort a non- adaptive algorithm

— The count is always zero

— 7 Advanced C++ Concepts You Should Know
https://www.linkedin.com/pulse/7-advanced-c-concepts-you-should-know-vishal-chovatiya

Message permanent page

— Hey for go to this group
t.me/c_cpp_india

— Hello, I'm finishing my app and I want to implement a function "Open With" like, for open a file with a special app... have someone a tutorial for me? my google researches are focused on windows but I use Linux... and I work with Qt but if you have some tips, libraries or other, I'm taker

Message permanent page

— Oke..

— Hello

— Hi

— Hi