- #1
chandubaba
- 39
- 0
...
int main () {
...
comp c1,c2,cs,cm,cd;
...
cs=add (c1,c2,cs);
...
}
comp add(comp c1,comp c2,comp cs)
{
cs.r=c1.r+c2.r;
cs.i=c1.i+c2.i;
return cs;
}
...
...
int main () {
...
comp c1,c2,cs,cm,cd;
...
cs=add (c1,c2);
...
}
comp add(comp c1,comp c2)
{
comp cs;
cs.r=c1.r+c2.r;
cs.i=c1.i+c2.i;
return cs;
}
...
chandubaba said:should I delete my website?
The purpose of visiting the following for c++ programs is to learn and practice writing programs in the c++ programming language. This can help improve programming skills and understanding of the language's syntax and structure.
Some basic knowledge of programming principles and concepts is helpful, but no prior experience with c++ is necessary. The programs provided can be used as a learning tool for beginners or as a reference for more experienced programmers.
To run and test the c++ programs, you will need a c++ compiler installed on your computer. Some popular options include GCC, Clang, and Visual Studio. You may also want to have a text editor or integrated development environment (IDE) to write and edit the code.
Yes, the c++ programs on the website are available for personal and commercial use. However, please be sure to check the license or terms of use for each individual program as some may have specific restrictions or requirements.
The frequency of new c++ programs being added to the website may vary. It depends on the contributors and authors who share their programs on the platform. You can also contribute your own c++ programs to the website to help expand the collection.