Anonymous
no not build
Anonymous
debug run give the args
Islom M1Ö
Hello everyone I'm installing cpp to vs code but it says settings.json End of file expected problem How can solve it
klimi
debug run give the args
like... ./mybinary argument1 argument2 ?
Anonymous
Is any function in standart C library to copy from 'string' to another 'string' text without leader zeros "00655789" to "655789". Count of zeros may be different.
Aliran
How to make a program about matrix multiplication program using 3D arrays?
klimi
How to make a program about matrix multiplication program using 3D arrays?
you just write the math formulas into some programming language
paa
Someone talk to me in private if they know how to work with processes in c Someone talk to me in private if they know how to work with processes in c
paa
Sorry
scar tissue
Sounded like less code to write. No conditions either, so should be faster. But I'm a noob.
Anonymous
my visual studio at windows remote linux get this error -var-create: unable to create variable object please help me
Egro
anyone want to collaborate on a group project to improve our c++ skills so we can put it on GitHub for proof of our skills to potential employers ? i am suck at c++ but i am willing to learn and put in work
Muqiu
project based learning, sounds good
Xxxx
#include <iostream> using namespace std; int main () { int S = 1; int F = 2; float K = 1.5; cot sum - Cout << “Enter the number of S that the costem wants to buy “; Cin >> S; cout << “Enter the number of F that the costemr wants to buy”; Cin >> F; Cout << “Enter the number of K that the costem wants to buy”; cin > K; sum = S + F + K; cout << "your bill amont is : " << sum; }
Xxxx
The customer could buy many product how can I add the totall bill?
Guilherme
Hello, I would like to run my c++ program, and finish it, but when I run it, I get the screen "Press any key to continue", how do I do it ??
Guilherme
#include <iostream> #include <stdio.h> #include <stdlib.h> #include <windows.h> #include <string> using namespace std; int main() { unsigned char c; system("C:\\iniciaPHMYADMIN\\iniciaPHMYADMIN.vbs"); system("exit"); }
𝕾𝖗𝖚𝖑𝖎
Hi, can I get some tips plz? I have certain assignments I need to do for school, and I’m new to this, so if I have a program written out in words, what are the steps for building an algorithm?
klimi
Hi, can I get some tips plz? I have certain assignments I need to do for school, and I’m new to this, so if I have a program written out in words, what are the steps for building an algorithm?
well i think you were told how to do this but... you get pen and paper (or table or whatever) you write some inputs, some outputs... try to calculate it by hand, see what it does and then you think of a way to do it as some function and then you just rewrite it in software
Anonymous
/getoptpp/getopt_pp.h:576:33: error: ISO C++17 does not allow dynamic exception specifications void end_of_options() const throw(GetOptEx)
Anonymous
hi bro, i just get the error
Anonymous
i need help, please
Anonymous
cmake -DCMAKE_CXX_STANDARD=11 .. i alredy give DCMAKE_CXX_STANDARD, but i still get the error
Anonymous
who can help me
Anonymous
@Madhu @Cesar ah, bro, the problem alredy solve.
Anonymous
tks u so much
Anonymous
but i has get a new error😅😅😅
Anonymous
/home/diesel/Desktop/code/ssh2/bin/ssh2proj: error while loading shared libraries: libssh2.so.1: cannot open shared object file: No such file or directory when i vscode launch.json debug the cpp program. i get this error.
Anonymous
if dont debug, the program is fine.
Gregory
try using vcpkg to install the required library or framework
Anonymous
i alredy install libssh2 at /usr/local/lib and my CMakeLists.txt add this link_directories("/usr/lib64") link_directories("/usr/local/lib")
Gregory
https://pastebin.com/0KF5UwBP
Anonymous
ah, i alredy solve
Gregory
Gregory
https://pastebin.com/0KF5UwBP
I'm having problems with vcpkg now, maybe someone can help
Anonymous
sorry bro, i dont know what is vcpkg
Anonymous
if i know, i will help u
Gregory
sorry bro, i dont know what is vcpkg
no problem apparently the problem was that I had to update my powershell
Gregory
In the end I had to read the library and framework documentation to get the hang of it, I can't keep asking questions and bothering people lol
● Igor
constructors and destructors are added to your program in compile time, right? does it have any extra runtime cost?
● Igor
the compiler can know when a stack allocated variable goes out of scope
Gregory
but why?
Constructors and destructors do not take up much space
Pietro
Does anyone know where I can find a tutorial to write from c++ to ods file?
klimi
Does anyone know where I can find a tutorial to write from c++ to ods file?
something like this ? https://stackoverflow.com/questions/9484489/c-class-to-read-and-write-opendocument-spreadheets-ods
Pietro
something like this ? https://stackoverflow.com/questions/9484489/c-class-to-read-and-write-opendocument-spreadheets-ods
Yes but I was looking for something like an in depht tutorial on how to do this. Couldn't find anything on YT
SALIHU
Hello👋
SALIHU
Anybody got a C++ roadmap, I kinda wanna go deeper but don't have a path
zelika
is there someone to help me about embedded system using stm32 for mpu6050 sensor calibration on cubeide
Anonymous
Hello. Does anyone know where I can get a free certificate in C++?
zelika
How to help?
how can i make calibration
zelika
is it automatic
Александр
Hey there! I'm just trying to understand this thing. I have this statement "gladLoadGLLoader((GLADloadproc)glfwGetProcAddress);" in tutorial. gladLoadGLLoader is function with attributes, and if I understand correctly function without parentesis return pointer to this function, so in this case how can it be that this pointer casts to GLADloadproc?
Александр
I wanted to ask if someone have something to read regarding this thing ?Or maybe I misinterpreted it?
Александр
I already managed it, I forgot that this is delegate in c++
Gregory
Anonymous
Yes but I was looking for something like an in depht tutorial on how to do this. Couldn't find anything on YT
In general you won't find language specific tutorials for each specific file type. what you need to do is understand the file type (metadata, formatting details, how the contents are stored) which is language agnostic and then write a program in a language of your choice to manipulate this file accordingly. OpenOffice's file formats are well documented all over the web. Just read about it.
Mohammad
I need to Sum the numbers how?? #include<iostream> using namespace std; int main() { int n,i,sum=0; cin >> n; for(i=1;i<=n;++i){ if(i%4==0) cout <<i<<endl; } sum = n/4; cout <<sum<<endl; return 0; } For EX: n 12 4 8 12 And I need to Sum these numbers
Mohammad
In out put I enter 12 Then it cout to me 4 8 12 And the answer should to be 24
Mohammad
Write a program that enters n integers, then the program prints the numbers that are multiples of 4 and calculates the arithmetic mean of these numbers that are multiples of 4.
Mohammad
and where are you inputting n integers?
the user inputting n like 4 And the output 4,8,12
klimi
so user inputs not "n integers" but "integer n"?