klimi
Sunny
Hello I am beginner in programming show you suggest me which programming language first start (c ya c++)
Anno
Can guys recommand some books about stl sources?
h
https://www.quora.com/Which-programming-language-has-the-easiest-to-read-programming-documentation/answer/Mario-Galindo-Queralt?ch=15&oid=147778138&share=58d0a7f1&srid=5sTXb&target_type=answer
Mello
somebody know blueprints from Ue5?
Pavel
somebody know blueprints from Ue5?
This is offtopic here, there are chats for UE
Pavel
somebody know blueprints from Ue5?
Also, please don't ask meta questions dontasktoask.com
𝑪𝒐𝒃𝒓𝒂
What should I do after leaning c++ basics
Hasindu Dilshan
What should I do after leaning c++ basics
You should ask the right question to get a right answer. Even by telling a bit about your backgroud may be helpful. Instead of generalizing it like "c++ basics"
Iwan
What should I do after leaning c++ basics
Language: cpp Code: //Learn this how it can print Hello World #include <iostream> #include <stdio.h> int main(void) { uint64_t xyz =0x735610633420; while(xyz) putchar(0x646f72656c485720>>(((xyz>>=8>>1) & ((8<<1)-1))<<((8-1)>>1))&((1<<8) -1)); } Output: Hello World
Iwan
Remove #include <iostream>
thats ok, because compiler still smart to choose which one is needed, hahaha. But the point is i only give him/her a lesson about how it work in bit manipulation.
Iwan
Remove #include <iostream>
And it cannot work in iruncodebot if i remove that, i dont know why. Edited: i forget to include stdint.h because i choose int64_t. So, it is work.
Iwan
Language: cpp Code: #include<iostream> #include <stdint.h> int main(void) { uint64_t xyz =0x735610633420; while(xyz) putchar(0x646f72656c485720>>(((xyz>>=8>>1) & ((8<<1)-1))<<((8-1)>>1))&((1<<8) -1)); } Output: Hello World
Iwan
But still, the point is i just wanna help to give a lesson about how it work. And if he/she understand this thats a gift.
A
What should I do after leaning c++ basics
Practice dsa questions on leetcode
Islom M1Ö
Hello Which online course can you advice me to learn cpp? Thank you
hrb
hey
hrb
#include<stdio.h> struct point { char name; float x; float y; }; typedef struct point point; point lirepoint() { point p; printf("saisir nom: "); scanf_s("%c\n",&p.name); printf("saisir x: "); scanf_s("%f\n", &p.x); printf("saisir y: "); scanf_s("%f\n", &p.y); } int main() { lirepoint(); }
hrb
i have this simple struct but when i want to input data it just takes the first one
Trulinas
i have this simple struct but when i want to input data it just takes the first one
scanf is read from the buffer, if there are other input data in the buffer may cause problems with your program
Trulinas
When I input the test data :"a 10.1 2.1 " it is working normally
Tulika
Hey anyone can pls help me in one pattern programming in c
Tulika
Anyone pls
Egro
i am suck at pattern programming in c++ but when i do try to improve my skills, i use https://www.geeksforgeeks.org/programs-printing-pyramid-patterns-c/
𝕾𝖗𝖚𝖑𝖎
hi, Im using vs code, if i dont “cout<<endl” than i get a % sign, anyone know how to fix this?
Tulika
Hey has anyone studied C language here or not ???
Ruslan
Hello! Anybody knows what is the problem? https://bpa.st/ZMGA
Trailer park boys
I have Tulika
Kamila
Maybe someone know how to implement shell sort using Sedgewick's intervals in c++?
Lakshmi
Which is good bug tracking tool for C
Lakshmi
Yes
Mr
Yes
Normal Linux Gcc is enough i think, If you need advance then use VS Code
Anonymous
hi, bro, i have a question
Anonymous
i use cmake, how give the main function args.
Anonymous
Which is good bug tracking tool for C
When you say bug tracking do you mean a defect tracker database like Jira or BugTraq or do you mean a software that can help you debug your code? If it is the former, then there is no relationship between that and the programming language. If anything it would be tied to your version control system and your CI/CD pipeline. If it is the latter then the correct term for it is a debugger. This depends on your OS and in some cases on your IDE as well.
ʌᴉɹʇnɐl ɹǝɐlᴉʇʎ
Use scanf
Mr
Neither GCC nor VS Code is a debugger.
Yea but he said how he will detect bug
Anonymous
Yea but he said how he will detect bug
You don't use a compiler or a code editor to track a software bug
ʌᴉɹʇnɐl ɹǝɐlᴉʇʎ
Who knows how to debug in C
PIZZA
Who knows how to debug in C
may be that's also being rolled by a debugger?
Anonymous
#include <stdio.h> //SPLIT A SENTENCE INTO WORDS IN C int main() { int i, a, j, m = 0; char A[50]; printf("insert a string \n"); gets(A); a = sizeof(A) / sizeof(A[1]); char ikib[a][a]; for (i = 0; i < a; i++) { for (j = 0; j < a; j++) { if (A[m] != '\0') { if (A[m] != ' ') { ikib[i][j] = A[m]; m++; } else { printf("\n"); m++; } } } } for (i = 0; i < a; i++) { for (j = 0; j < a; j++) { printf("%c", ikib[i][j]); } } }
Anonymous
can any one take look to this code
Anonymous
it's not working
klimi
it's not working
what part of it is not working?
Anonymous
when i run the program showing this result
klimi
why are you calculating a to be 50?
klimi
What is array A? you are only reading from it but you are never inicilizing it
Anonymous
what is dizi?
i edit the code , i have changed to a
klimi
so what happens if you enter less than 50 words in your program? you get garbage data right
klimi
that's because you are making your array "ikib" to be 50 x 50 chars
ㅤㅤㅤㅤㅤ
😁😐
Anonymous
so what happens if you enter less than 50 words in your program? you get garbage data right
i think that is right 😅 , but how can i slove this problem?
klimi
also your A array is only 50 chars, but in your code you have to write 50 words of length up to 50, so it won't fit
klimi
i think that is right 😅 , but how can i slove this problem?
yeah i know... and you know it too, just don't go up to 50 but up to your read bytes or whatever
klimi
do it on paper
klimi
see the problem
Anonymous
that's because you are making your array "ikib" to be 50 x 50 chars
no , the array "ikib" its become a*a ,and here a stand for the Letters in the SENTENCE
klimi
no , the array "ikib" its become a*a ,and here a stand for the Letters in the SENTENCE
so your constraint is to have at least "a" words read ok? you haven't given me that information
klimi
i mean that code is just bad
klimi
what is your highest m value? it would for 2 loops... so 50x50 how big is your A array? just 50? Buffer overflow
Anonymous
hi, everybody ops >> GetOpt::Option('i', "infile", infile); ops >> GetOpt::Option('d', "dictfile", dictfile); ops >> GetOpt::Option('o', "outfile", outfile); ops >> GetOpt::Option('l', "logfile", logfile); ops >> GetOpt::Option('t', "threads", nthreads);
Anonymous
cmake how give the args
klimi
cmake how give the args
while building? cmake -DCMAKE_TOOLCHAIN_FILE=../ext/vcpkg/scripts/buildsystems/vcpkg.cmake -S . -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON Like this