if (surfaceArea > 750) //adding 50 dollars to cost if product is
//over 750 sq. inches
{
totalCost t+=50;
}
make a comment line // .
Hope you understood.
To write a multi line comment use /* …. */
More Related Contents:
- program to delete certain text which is predefined in another file from a file in c++
- Why does reading a record struct fields from std::istream fail, and how can I fix it?
- Why can’t C++ be parsed with a LR(1) parser?
- Parsing a comma-delimited std::string [duplicate]
- Regular expression to detect semi-colon terminated C++ for & while loops
- Boolean expression (grammar) parser in c++
- Convert string to int with bool/fail in C++
- Assigning parsers to auto variables
- What is Objective C++? [closed]
- Can I use C++11 with Xcode?
- parsing math expression in c++
- How do you convert a C++ string to an int? [duplicate]
- Good tools for creating a C/C++ parser/analyzer [closed]
- Parsing strings of user input using the cparse library from git
- Parse quoted strings with boost::spirit
- C++ Remove punctuation from String
- Code runs perfect in g++ but not in Xcode – Cannot find File
- Compiling external C++ library for use with iOS project
- Linking Libraries in Xcode
- Configuring compilers on Mac M1 (Big Sur, Monterey) for Rcpp and other tools
- How to provider user with autocomplete suggestions for given boost::spirit grammar?
- Writing a simple equation parser
- std::lexical_cast – is there such a thing?
- Safer but easy-to-use and flexible C++ alternative to sscanf()
- Compile OpenMP programs with gcc compiler on OS X Yosemite
- Constraining the existing Boost.Spirit real_parser (with a policy)
- Missing C++ header after updating OSX Command Line Tools 6.3
- C/C++ JSON parser [closed]
- Parse string containing numbers into integer array
- How can I use C++ with Objective-C in XCode