-
Hello
I have a question about set and get function in classes, if I have 3 classes have some common data member, can I write one set and get functions in global scope and link it as friend function?
Chat Boss
99 sent a code, it has been re-uploaded as a file
Chat Boss
Dm
孙笑氕氘
Hello everyone, is there any library that can demangle GCC symbols under windows?
Vipul
Programming in ansi
Vipul
Book download
-
Hi I want to append a text in a file according to the line and letter number given by the user.
I open the file in the append mode ,save all the data after the given position (line and letter number),fseek to the given position and then append my text and add the rest of text which was saved in an array by fputc
But my text doesn’t go to the right place.any idea what can I do to fix it ?!
(-__-)
#include <iostream>
#include "BMI.h"
using namespace std;
int main() {
string name("John Doe");
BMI bmi1(name);
name[0] = 'P';
cout << "name from bmi1.getName() is " << bmi1.getName() <<
endl;
cout << name << endl;
BMI bmi2(name);
cout << "name from bmi2.getName() is " << bmi1.getName() <<
endl;
return 0;
}
(-__-)
klimi
(-__-)
Strife
How important is it to learn pointers?
klimi
Strife
yes
I think it is one of the most difficult parts of cpp
klimi
Strife
Oh god😅
klimi
Oh god😅
dw, pointers are quite easy :)
Wolf
Job searching is available here?
Soheil
Hey guys, does anybody know physics engine here?
Jose
klimi
Soheil
yes
Can I DM you from private?
klimi
Soheil
I have no experience in PE and I would like to work with somebody, what do you advise?
klimi
neon 🇮🇳
Hi all
neon 🇮🇳
I am learning C++ plus ASM
Suraj
Hi guys
Suraj
What is lexical value in arrow function
Arvin
neon 🇮🇳
Dm
neon 🇮🇳
Anonymous
Anonymous
klimi
we don't have c# chat
klimi
have you read the rules by any chance?
lumen
https://t.me/programminginc/453966 there
Chat Boss
hafiz shafi sent a huge message, it has been re-uploaded as a file
Is derive of derive class actually can override protected virtual function of base class?
Examp..
An
Beast
Hi
Anonymous
Guys how to use std::generate? I have some range and what to initialize it with default value through it like Type{}
Anonymous
Anonymous
Anonymous
How important is it to learn pointers?
In C a lot. In C++, you can get by by learning to use smart pointers without having to worry about much of the complications about memory freeing and so on. But eventually when you advance into writing allocators and stuff, knowing about raw pointers does help a lot.
Strife
Actually, I have no idea why pointers should be used
Anonymous
Anonymous
I want some one to run my code in its Computer and send screen for output
klimi
Anonymous
why?
I am NOT have Computer now
Anonymous
Anonymous
I want compiler online to run code with spaces Window and opengl
Anonymous
Anonymous
klimi
Anonymous
Anonymous
Anonymous
The same error
Must be something wrong with your code then. Unless you show your code, we can't help you.
This works fine for me.
#include <algorithm>
#include <vector>
#include <iostream>
int main(){
std::vector<double> v(5);
std::generate(v.begin(), v.end(), [&](){return 1.0;});
std::cout << v[2] <<std::endl;
}
Chat Boss
Jillur Rahman Riyad sent a code, it has been re-uploaded as a file
Mahmudul
I'm new in C++ programming can anyone help me how to get started
Mahmudul
I would be very grateful if someone helps me out
klimi
the pinned message
Anonymous
^^^
The channel above has links to video resources and recommended books. If you had read the rules, you wouldn't be asking this question.
Chat Boss
:) sent a code, it has been re-uploaded as a file
Anonymous
Hi
Anonymous
Please can someone help explain for loops in C
I don’t get it well 🙏🙏
Eric Czeladka 🇫🇷
Hi everybody.
Below... Is a small code.
I d like to extract 2 numbers in a string but just the 2 first.
And also while input is incorrect
I ask again and again for input and i want to count the numbers in the string... If more than 2.
This line
c = sscanf(saisie,"%d %d",&a,&b);
Doesn't seems to do the job.
Any idea ? Tks
int main()
{
int a,b,c ;
char saisie[255];
do
{
printf("pls input a string with 2 numbers\n");
gets(saisie);
c = sscanf(saisie,"%d %d",&a,&b);
printf("c = %d\n", c);
} while (c!=2);
printf("you have input%d in first and %d in second\n",a,b);
}
Anonymous
Why are you do that, if you want to delete prevent first , now when he will be online it's not possible to him to see my suggestion
Anonymous
@K11M1 do you agree with something that happened?
klimi