klimi
Mr
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
Anno
Mello
somebody know blueprints from Ue5?
𝑪𝒐𝒃𝒓𝒂
What should I do after leaning c++ basics
klimi
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
EMPEROR
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
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
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/
Tulika
𝕾𝖗𝖚𝖑𝖎
hi, Im using vs code, if i dont “cout<<endl” than i get a % sign, anyone know how to fix this?
artemetra 🇺🇦
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
Trailer park boys
Kamila
Maybe someone know how to implement shell sort using Sedgewick's intervals in c++?
PIZZA
Mr
Lakshmi
Which is good bug tracking tool for C
Mr
Lakshmi
Yes
Anonymous
Mr
Yes
Normal Linux Gcc is enough i think, If you need advance then use VS Code
Lakshmi
Anonymous
hi, bro, i have a question
Anonymous
i use cmake, how give the main function args.
Lakshmi
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.
Anonymous
ʌᴉɹʇnɐl ɹǝɐlᴉʇʎ
Use scanf
ʌᴉɹʇnɐl ɹǝɐlᴉʇʎ
Who knows how to debug in C
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
Anonymous
when i run the program showing this result
klimi
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
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
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
do it on paper
klimi
see the problem
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