How NOT to Ask Questions (For Dummies)

Feel free to add more excerpts.

Excerpt 1

Guys, I need to find the sum of all the multiples of 3 below 1000. Here is my code:

int main(){int sum=0;for(int i=3;i<1000;++i){if(i%3=0){sum+=i;}}std::cout<<sum;return 0;}

However, it is giving me the error: lvalue required as left operand of assignment. What am I doing wrong?

Please format your code!

Excerpt 2

Guys, my linked list is not inserting elements properly; it is giving me such and such symptoms. Here is my code:

/* Ten thousand lines of code go here. */

What am I doing wrong?

Please post only relevant code!

Excerpt 3

Guys, my program is not working properly. Here is my code:

/* Code goes here. */


Guys, help me write a game.

Please do not be vague! Be specific! Define "not working properly!"

Excerpt 4

/* Code goes here. */

Advice goes here.

Excerpt 5

Write your question here.

hi guys brogram my no work cuz i try singly link list C programming? please the help c++ help me with pointer and progrma yes kthxbye

/* Random code goes here (optional). */

Please be literate!
Last edited on
Excerpt 6

I am trying to find the sum of all odd numbers below 100. However, I am obtaining an incorrect result. What am I doing wrong?

#include <iostream>

int main()
int sum = 0;

for (int i = 0; i < 100; ++i)
if (i % 2 == 0)
sum += i;

std::cout << sum;

return 0;

Please learn to use the [.code][./code] tags!
or just read the sticky maybe???

Topic archived. No new replies allowed.