Syntax error for C++ coding
-
Hi there,
I just install the enlighter for my internal blog (wordpress) for highlighting C++ code, here is my block<pre class="EnlighterJSRAW" data-enlighter-language="cpp"> vector<int> A, B; int C = 13; // constant for (int i=1; i<=10; i++) { A.push_back(i); } B.resize(A.size()); std::transform(A.begin(), A.end(),B.begin(),std::bind(std::plus<int>(), std::placeholders::_1, C)); for (int i=0; i<A.size(); i++) { std::cout << A[i] << " "; } </pre>
I find that the C++ syntax with
<int> and [i] and <A.
mess up with the html tags so the page formatted all wrong.
The page I need help with: [log in to see the link]
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Syntax error for C++ coding’ is closed to new replies.