Anonymous
It get an error LNK2001: Unresolved external symbol "struct ClassTable const String1Class" (?String1Class@@3UClassTable@@B)
-_-
👍
nibu
is any body knows about icu libraries
VJ
#include<stdio.h> int main() { char *cities[] = {"Delhi", "London", "Sydney"}; int **i = &cities[0]; printf("%c\n", **i); return 0; }
VJ
output is D
VJ
explain ,how the output is d?
S.
**i is the first char of "Delhi"
S.
So it's D
VJ
how it is pointed to d??
S.
**i is equivalent to i[0][0]
S.
int **i = &cities[0]; is equivalent to int **i = cities;
S.
So actually you prints cities[0][0]
VJ
**i is equivalent to i[0][0]
how this is equilalent to [0][0]??
S.
*(x + i) is equivalent to x[i]
VJ
okay
S.
So, **i is *( *(i + 0) + 0) is i[0][0]
VJ
ohh got it
VJ
tq
Jussi
/report
Anonymous
Hello rose
Anonymous
Sure
Talula
Sure
Rose is a bot...
Anonymous
Ohh k got it
Anonymous
@S. Can you help me?
klimi
Welcome
Mitesh
👍👍
klimi
👍👍
❓👍👍
Mitesh
Thank you For Add me
Talula
Thank you For Add me
Add you where?
klimi
Add you where?
Nevermind him xD
Talula
India
Nice you got added to India?
klimi
Kek
Dima
disconnect
klimi
Welcome
Dhaif
Hi guys, I wanna know how to change this program to function .. #include<iostream> using namespace std ; int main() { string name; int ID; int x,z,y; int avg; cout<<"Enter your name :"; cin>>name; cout<<"Enter your ID :"; cin>>ID; cout<<"Enter the first mark :"; cin>>x; cout<<"Enter the second mark :"; cin>>z; cout<<"Enter the third mark :"; cin>>y; x=x+z+y; avg =x/3; cout<<"The total is "<<x<<"\n The avarge ="<<avg<<"%"<<endl; }
klimi
I don't know too
klimi
Because it is function
Dhaif
No it is not.
Dhaif
Look at this one #include<iostream> using namespace std ; void lucky(); int main() { lucky(); return 0; } void lucky() { int x; cin>> x; do { if (x==100) {cout <<"won"; break;} else cout<<"try again"; } while( x!=0); }
Dhaif
Why u declere void lucky() twice
Cause it's after main()
Anonymous
Cause it's after main()
Yeah but u mean the same thing....
Dima
lol
Dhaif
However I wanna get the first question
Dhaif
If anyone knows give it 2 me.
Dima
what do you want
Hemant
Hi all, I am about to learn Java but wanted to know whether i have to learn C or C++ before java?
Anonymous
no
Shree
Hi all, I am about to learn Java but wanted to know whether i have to learn C or C++ before java?
No. knowledge about any other programming language is not required to learn java.
Haile
I'm sorry for disturbing you guys but did you know best tech channel
BinaryByter
@prograchallenges ^^
Nicola
how to convert a string to binary code ASCII?
BinaryByter
In c++ or in general?
Dhaif
Thx bro, I realy appreciate that.
S.
c_str()
Nicola
C/C++
Nicola
c_str()
And how
S.
And how
For std::string
BinaryByter
do static_cast<int>(string[position])
Nicola
string s;for(i=0;i<s.size();I++){ bitset<8>(string[i].c_str()).tostring<char:traits_type,string::allocator_type>();}
many
And how
Why not sticking to one string style?
many
And how 😂😂😂
Stick with C style string
S.
What’s the exact requirement?
Nicola
string s; string s1; for(i=0;i<s.size();I++){ s1+=bitset<8>(string[i].c_str()).tostring<char:traits_type,string::allocator_type>();}
Nicola
OK?
S.
hmmm on my cellphone ( cannot help you now