Anonymous
Hey can i ask about entity relationship diagram here?
S
String s="aweu" ; Int b=8; I want if(s of i ==e) then S of i=b;
S
Is it possible replace part string element by integer variable
Suka
Is it possible replace part string element by integer variable
try this string s="aweu"; for(char &c:s){ if( c == 'e' ){ c='8'; //or c=8 for 8 as integer } } cout«s«endl; but consider using std::replace_if algorithm (this line not from me but from cppcheck hehehe)
S
No no
S
I need to assign s[i]=b;
Suka
I need to assign s[i]=b;
for cpp or for c?
S
Because I calculate b by sum of prime
S
That sum stored in b variable
Suka
C++
try this first https://t.me/programminginc/386956 and see the output.
Suka
That sum stored in b variable
please use this group. and sorry idk java lang.
S
want to store that sum at string s[j]
Suka
want to store that sum at string s[j]
and you need in java lang? if this true than you should ask in java group not here. beware this group admin usually warn people for this.
S
bro i need only idea
Ammar
It is OT
Suka
bro i need only idea
ok and goodluck
S
how to replace integer variable with part of string
S
i dont have idea.is it possible
አምላኪየ አምላኪየ እገይሥ ኀቤከ
can we do probability using c++?
Anonymous
can we do probability using c++?
You can do anything you want
አምላኪየ አምላኪየ እገይሥ ኀቤከ
You can do anything you want
Can you give me any hint?
Anonymous
Sandeep
Read a book
typedef void(*HelloWorldFunction)(); HelloWorldFunction function = HelloWorld; /*Hello world is a function and I'm trying to create a function pointer and is this a correct way ..if so then how? Normally we write the type name after the void(*something something) no?
Sandeep
use using instead of typedef typedef is old and not very useful https://ideone.com/3hvcAo
Im getting there...like 5 videos away..but can you explain me this now
Shadow
guys anyone free here tp solve my problem , problem on ODDEVEN singly linked list C++?
Pavel
Im getting there...like 5 videos away..but can you explain me this now
using newType = oldType; instead of typedef oldType newType; and as you see by the link for functions it makes more sense
Sandeep
using newType = oldType; instead of typedef oldType newType; and as you see by the link for functions it makes more sense
typedef void(*HelloWorldFunction)(); HelloWorldFunction function = HelloWorld; /*but look this is different
Shadow
/warn solve it yourself
Bro i got some issues coudnt figure it out that's why
Pavel
Bro i got some issues coudnt figure it out that's why
why don't you ask about the exact problem then?
Shadow
i tried to send one code here but got warned
Shadow
that's why
Alishba
Can somebody tell me how to hard code value in a pointer variable of a class
Pavel
typedef void(*HelloWorldFunction)(); HelloWorldFunction function = HelloWorld; /*but look this is different
Yes, using is just another way doing the same but in more modern/intuitive/readable way
Sandeep
Yes, using is just another way doing the same but in more modern/intuitive/readable way
I haven't learnt using yet..can you explain what is happening with type Def here...
Pavel
i tried to send one code here but got warned
did you try to send a photo? you can past your code using some of these services pastebin/hastebin/ideone/wandbox with describing what problem you have with it
Anonymous
If you need content or article writer for your website then contact me @goldyman555
Pavel
I haven't learnt using yet..can you explain what is happening with type Def here...
It creates a type alias for the type of pointer to a function (without arguments and with void type) with name HelloWorldFunction. https://en.cppreference.com/w/cpp/language/typedef
Pavel
It is hard to explain in simple words because the concepts are not simple
Pavel
You mean like a reference or something
More like alias, like another name that means literally the same thing. like using MyInt = int; or analogous typedef int MyInt; Now MyInt is alias for int, so you can use them interchangeable. It's useful for long or complex types, like the function pointer one in your example.
Anonymous
Hi
Anonymous
Can someone whose native language is English can write in particular please
Anonymous
/note cppbookguide
Anonymous
/note
Ehsan
/note cppbookguide
#cppbookguide
Anonymous
Hi, need help with a queue based problem, not for contest. Will pay for explanation
Shahar
Not sure if I fully understand the role of the extern keyword, but can I consider it as a global variable shared between multiple translation units?
Anonymous
hello guys
+
bool ExtractRes(const char* path, WORD wResId) { HRSRC myResource = ::FindResource(NULL, MAKEINTRESOURCE(wResId), RT_RCDATA); if (myResource != 0) { unsigned int myResourceSize = ::SizeofResource(NULL, myResource); HGLOBAL myResourceData = ::LoadResource(NULL, myResource); if (myResourceData != 0) { void* pMyBinaryData = ::LockResource(myResourceData); std::ofstream f(path, std::ios::out | std::ios::binary); f.write((char*)pMyBinaryData, myResourceSize); f.close(); return 1; } else return 0; } else return 0; } hey guys, I want to know this code is right way to extract resource file from compiled exe?
Anonymous
Hello everyone
GHAMDAN_NSHWAN
MOHSIN KHAN CS4 mit
Anonymous
hello
Wooooo
'''''''
Nobody asked u
Devjit
#imhacker
Devjit
/notes
Maanik
😂😂
Devjit
Anybody please explain me bitwise operator can understand this part in C programming
Devjit
*can't
Maanik
Anybody please explain me bitwise operator can understand this part in C programming
You are saying that you are a hacker now what happens bro😂??
Devjit
Just checking bro what it says about it
XD_Sama
/notes best
Diego
#awesomeness
XD_Sama
#best
Diego
What the fuck is this
Diego
#c++_isnt_c_with_classes
z
#ossu
XD_Sama
#cs50
Diego
#bingo
Chief Hustler
#cppbookguide
Anonymous
Oof 😂