Faisal
Any one have a c# group
Faisal
Thank you so much bro ❤️
Francisco
no, you just waste your time to satisfy your autism with some checkmarks being green and some numbers looking "okay"
Also, things like testing and analyzers should be a must in every project. You might not agree, but most developers do agree
...
sounds autistic
...
^this
...
and. even dumber example, you write a tool that parses some text and just outputs it in another format, the whole tool is 100 lines, does this really need testing????
Francisco
sounds autistic
Why are you trying to use such a serious topic as an insult? I'm not autistic, but even if I were, what's the matter?
...
or analyzing or automated builds or any of that shit like that
Jussi
of course it is good practice to do unit testing, it always is, but doing unit testing is also not good if you first develop the code and then the tests; you write tests that will pass. Some other people should write tests for your program. Or then write tests before developing
Jussi
of course small projects should not be considered here
Francisco
and. even dumber example, you write a tool that parses some text and just outputs it in another format, the whole tool is 100 lines, does this really need testing????
If you're just doing a proof-of-concept, of course you don't need testing, but it's not the case I'm talking about
...
this is not necesarilly a "proof of concept"
Jussi
I'm interested in those cases
writing an SMM code, for example? How would I test my code without running it on a real hardware (system testing)? Should I code a intel PCH100/PCH200 emulator?
Jussi
I know there is EDK2 and Ovmf which can be run inside an emulator, but they still won't emulate REAL chipsets found on real motherboards
Jussi
it's a niche topic, of course software should be tested. I worked as an test engineer in a software company before
Jussi
I guess that's better than no testing at all
yeah of course it is! But platform-specific stuff still cannot be tested with it
...
no, thats just bullshit, cause there are hardware bugs that some emulator may or may not have
Nicola
Good evening. I've only been using C ++ since yesterday and I'm having some minor problems: I saw "return 0" on the web but I didn't understand what it is for. In addition I don't understand how to convert an int variable into a string variable and lastly because when I click I send the code does not go on like in Python. sorry for my english but i'm italian
...
what the fuck
Jussi
? ? ?
Jussi
I am from Finland. No entiendo Italian
...
no, not italy
Nicola
I compiled it and it works but when I click send Nothing happens. I'll give you an example: When the user clicks send the program closes. In Python it was enough to make input () but here?
Nicola
?
Francisco
Just send your code
Nicola
2 seconds
Jussi
If you are on windows, you can use system("pause");
Jussi
it should then stop there
Nicola
Just send your code
#include <iostream> using namespace std; /* run this program using the console pauser or add your own getch, system("pause") or input loop */ #include <string> #include <iostream> int main(int argc, char** argv) { int n1,n2,n3,max,me,min,somma,media; string x; cout << "inserisci il primo numero " ; cin >> n1 ; cout <<"inserisci il secondo numero " ; cin>> n2, cout<<"inserisci il terzo numero " ; cin>> n3; if (n1>n2) { me=n2; max=n1; } else { me=n1; max=n2; } if ( n3>max) { min=me; me=max; max=n3; } else if ( n3>me) { min=me; me=n3; } else { min=n3; } cout<<"orine crescente: " << min << " "<< me<< " " << max ; cout<<"orine decrescente: " << max << " " << me << " " << min; somma = n1 + n2 + n3; somma1= to_string(somma); cout<<"la somma è " >> str somma ; media=(n1+n2+n3)/3; cout<<"la media è" >> media; cout<<"premi un tasto e clicca invio per terminare"; cin>>x; }
Nicola
46 2 C:\Users\nicol\OneDrive\Documenti\main.cpp [Error] 'somma1' was not declared in this scope
Nicola
46 25 C:\Users\nicol\OneDrive\Documenti\main.cpp [Error] 'to_string' was not declared in this scope
🐉
Is it possible to cout a parameter of an object inside the destructor function?
🐉
Player::~Player() { cout<<"Addio "<<player . name<<" :("<<endl; }
🐉
Thank you bad bot, player . name isn't a link
Surge.rs
Surge.rs
OHHH nvm I get what happened
🐉
I know, bot deleted
Surge.rs
Is it possible to cout a parameter of an object inside the destructor function?
You should be able to use this . name or just call name directly as it's still within the scope of the class and has access to the fields
Surge.rs
Because the destructor doesnt know what player is but it knows what it's own name is as its stored in the same object
Anonymous
Is there a program or tool? It encrypts c++ strings !
🐉
Because the destructor doesnt know what player is but it knows what it's own name is as its stored in the same object
I was thinking that the destructor deletes as soon as it gets to the ~. Then I'll try in the morning
Anonymous
What are checksum differ checksum match Any one of them is responsible for protecting files from modification And to prevent any file being tampered with from loading when running the program
Anonymous
I want to add it to my program
Anonymous
/report
NXiss7
What are checksum differ checksum match Any one of them is responsible for protecting files from modification And to prevent any file being tampered with from loading when running the program
It's called hash functions and you use SHA fsmişy these days. They're special funcyions that even if you change a bit in the whole message, output hashsum will be lot different.
ZukiZest
Hi guys
ZukiZest
I have a question c and c ++ and the same thing?
Surge.rs
..
Asad
hi. while (getline(std::cin, line)) { myfile << line << "\n"; } i wanted to know how can i stop getting input and continue the flow of the program after while statement?
Zel
like if the user presses enter or stops typing for a certain length of time.
Zel
if you are trying for a word processor usually you switch between taking input from the event queue and performing other tasks.
NXiss7
That would break the loop when pressed enter without typing anthimg.
Nirav
Guys I have a test of C. So i wanted to learn it from scratch so do you guys have any video or YouTube link.
Nicola
Hi I started to approach the programming mode recently and I'm starting to have some problems so I thought to write to you hoping for your help. I state that I am on windows and I have installed Dev-C ++ (to program in C ++) but I have not understood how to install a new library. I searched on google but found nothing.
Surge.rs
https://stackoverflow.com/questions/1069602/how-do-i-install-a-c-library-so-i-can-use-it
Anonymous
Hie
Ajitkumar
Hiii
Itadori
Hey can any one tell me which site or YouTube channel is best for DataStructures by using c
Ajitkumar
Ajitkumar
Please anyone help me in the output
Ajitkumar
I searched online but i don't get it
Ajitkumar
Submission is the output
Asad
hi. while (getline(std::cin, line)) { myfile << line << "\n"; } i wanted to know how can i stop getting input and continue the flow of the program after while statement?
guys i have to enter a text. i am working on a notebook project. the user enters the text with new lines and at the end he or she decides to stop writing and saves the text. here i am struggling how to stop the while loop. i tried CTRL+C but this thing breaks the entire program not just the while loop) i googled a lot. but can't understand anything. i would appreciate any help