User404
Ammar
V01D
I have a low level question (perhaps @lightness_races_in_orbit or @SysMario could help)
I know that I have to disable interrupts when moving into 32 bit mode using the cli instruction.
But I am looking through some IDT/ISR code of this kernel (https://www.github.com/nexos-dev/NexOS/tree/development/NexKe%2FHal%2Fx64) and I cannot see him enabling interrupts!
Is this done automatically or what am I missing here?
.
Anyone had this book then please forward me😊
Anonymous
HELLO.....CAN ANYONE TELL ME THAT WHICH WHICH PROGRAMME SHOULD I DO AS A BEGINNER "C"....i have already done (HELLO WORLD,ADDITION,SUBTACTION,MULTIPLICATION, AND AREA OF CIRCLE"...I HAVE ALREADY DONE ABOVE MENTIONED PROGRAMMES...NOW WHAT SHOULD I GO FOR?
Pavel
Anonymous
THANK YOU SO MUCH @pavel
Matin Rzaev
int main()
{
char* str = _strdup("5267");
int result = 0;
for (int i = 0; *(str+i) !='\0'; i++)
{
result = result * 10 + *(str+i);
}
cout << result << endl;
cin.get();
return 0;
}
Matin Rzaev
Matin Rzaev
Hi guys.Could you help me please?
I want to convert string to int without using any specials functions.But the output is not correct.Because compiler doesn't add value of str[i],it adds value in ascii table.
Matin Rzaev
How i can fix that
...
thats because while accessing a char, you get a char, the char doesnt magically convert to an int
Pavel
Matin Rzaev
Matin Rzaev
...
try doing result = result * 10 + ((*(str + i )) - '0')
Matin Rzaev
It works correctly.Thanks so much guys 👍👍
...
please, dont use this in any sort of system that needs to be reliable..
Matin Rzaev
Pavel
What is "code of zero"?
Every symbol has a char representation (can be 1 char in some encodings, can be 2+ in others). Numbers inside strings are no exception
Pavel
So I just provided ascii code of zero, the solution of @ff_0x1d3 with '0' is better though
Matin Rzaev
Truth
S s
Anyone want Html coding for website
Truth
Anonymous
V01D
V01D
Pavel
Anonymous
HTML ... Wha.... Dear lord
Pooja
Thank you😁
Pooja
Anyone please let me how I can learn HTML5 and css3 to develop a web page
V01D
Ammar
MᏫᎻᎯᎷᎷᎬᎠ
Pooja
What?
MᏫᎻᎯᎷᎷᎬᎠ
Any non related topic will be reported
Pooja
S s
Pooja
carnivorous plant
they have finally found each other
Ammar
carnivorous plant
what a great relationship
Evgeny
Guys, can someone help?
I have 2 variables
char * var1 = "var2";
int var2 = 10;
How can I print the contents of var2 (10) through var1?
V01D
Ammar
But wait, I think it may be possible for global variables, since there is a corresponding symbol for each of them.
Evgeny
Ammar
Ammar
Ammar
PTRACE should be able to read the variable's value based on its symbol. Like debugger does.
Ammar
I have not tried it and I do not really know the technical detail, but it is clearly possible, since gdb can do that.
Ammar
Evgeny
Evgeny
Anonymous
#Ask
Sorry, sis, permission to ask, here is someone who uses the C language text editor Sublime, Thank you.
Ammar
Anonymous
I do.
Can I have a private chat?
Ammar
Evgeny
Can you please explain with an example?
Harsh
Anonymous
Can I ask a question related to math?
Asdew
If it's also a C/C++ question.
Asdew
If not, #ot.
Wojak
Wojak
You will also find it as one of the best book on Stackoverflow community poll for C++.
5th edition is updated and re-written in 2012 for STL and C++11.
But this actually is a good book for beginers and intermediate programmers.
That's my own research, use google wisely for better reviews
Wojak
Dima
Wojak
😂😂
Roxifλsz 🇱🇹
Wojak
Valentine
Mar!o
𝒜𝒷𝒹𝓊𝓁𝑀𝒶𝑒𝒷𝑜𝓊𝒹
Talula
What is this nude dog doing on your bed?
Pooja
How can i print minimum no. Of word from sentence using array in C.