# I want to advance and grow

Page 1 of 1

## 3 Replies - 665 Views - Last Post: 18 July 2012 - 05:19 PMRate Topic: 3 Votes //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'http://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=286204&amp;s=9d0b61443086057dac771e17f7ad4948&md5check=' + ipb.vars['secure_hash'], cur_rating: 4, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

### #1 Javant

Reputation: 1
• Posts: 2
• Joined: 18-July 12

# I want to advance and grow

Posted 18 July 2012 - 09:08 AM

I went to a camp called internal drive, wanting to learn as much c++ as i could their. We used visual c++,
this is what i could make out of what i learned.
```

#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
void survivalcraft();
void runCalculator();
int a = 0;
int b = 0;
char keepGoing= ' ';
char redo= ' ';
string userOp100;
string userOp101;
char pass= ' ';
string user= "";
string town= "";
int userOp,userOp2,userOp3,userOp4,userOp5,userOp6,userOp200;
int adding (int a, int B)/>;
int adding (int a, int B)/>{
int sum= 0;
sum= a + b;
return sum;
}
int subtracting (int a, int B)/>{
int difference= 0;
difference= a - b;
return difference;
}
int multiply ( int a, int B)/>{
int multiplied= 0;
multiplied= a *b;
return multiplied;
}
int dividing ( int a, int B)/>{
int divide= 0;
divide= a / b;
return divide;
}

void runCalculator(){

cout<< "Welcome"<<endl;
do{
do{
cout << "-------------------------------------------------------------"<<endl;
cout << "/////////Calculator////////"<<endl;
cout << "-------------------------------------------------------------"<<endl;
cout << "Type in 2 numbers" << endl;
cin >> a >> b;
cout << a  << endl;
cout << b  << endl;
cout << "-------------------------------------------------------------"<<endl;
cout <<"If there was an error, Press E to redo, if not press any other key then enter" <<endl;
cin >> redo;
}while(redo == 'e' || redo == 'E');
cout << "Press 1 to Add, 2 to Subtract, 3 to Divide, 4 to Multiply" << endl;
cin >>userOp100;

if(userOp100 == "1"){
}
if(userOp100 == "2"){
cout << subtracting (a,B)/><<endl;
}
if(userOp100 == "3"){
cout << dividing (a,B)/><<endl;
}
if(userOp100 == "4"){
cout << multiply (a,B)/><<endl;
}
cout << "Would you like to use the Calculator again press Y, Press any other key to end"<<endl;
cout<< "calculator : " << endl;
cin >> keepGoing;
}while(keepGoing == 'y' || keepGoing == 'Y');
}
//---------------------------------------------------------------------------------------------------------------------

void survivalcraft(){
string user;

cout << "-------------------------------------------------------------"<<endl;
cout << "SurvivalCraft " << endl;
cout << "-------------------------------------------------------------"<<endl;
cout<<""<<endl;
cout<<""<<endl;
cout<<""<<endl;
cout<<""<<endl;
cout << "Welcome" <<endl;

cout<<""<<endl;

cout<< " You were flying in a flan's airplane with your friend. Then out of the blue your engine randomly stopped"<<endl;
cout<< "and you crashed into the ground." <<endl;
cout<< "When you wake up, your friend was gone and your plane was burnt to the ground";
cout<< "The only tools you have are your two bare hands."<<endl;
cout<< "But you also can chop down trees, sand,stone, and many more objects with your hands."<<endl;
cout<<""<<endl;
cout<<""<<endl;
cout<<""<<endl;
cout<<""<<endl;
cout<<"  It looks pretty dark out. Will you make a shelter out of dirt or will you look around for"<<endl;
cout<<" some resources"<<endl;
cout<<" Press 1 to make a shelter or 2 to go look for some resources"<<endl;
cin >> userOp;

if(userOp == 1){
cout << "-------------------------------------------------------------"<<endl;
cout << "You decided to make a small shelter out of dirt." << endl;
cout << "-------------------------------------------------------------"<<endl;
cout << " You go to sleep and awake early in the morning"<<endl;
cout << "You look around and you seem fine, but you see that you are starving"<<endl;
cout << "You hear something outside of your dirt home...."<<endl;
cout << "Will you go outside and check what is making that noise"<<endl;
cout << "Or Will you stay inside for a few hours until the noise leaves"<<endl;
cout << "Press 1 to Go Outside or 2 to stay inside for a little bit"<<endl;
cin >> userOp2;

if(userOp2 == 1){
cout << "-------------------------------------------------------------"<<endl;
cout << "You check to see what is outside."<<endl;
cout << "-------------------------------------------------------------"<<endl;
cout << " When you step outside, an group of monsters start to chase you"<<endl;
cout << "you run and your run, and you come across a cave and you hide in it"<<endl;
cout << "you come to a choice.. make a run for it back into the dirt home"<<endl;
cout << "or camp out in the cave for a little"<<endl;
cout << " Press 1 for stay in the cave or Press 2 to make a run for it"<<endl;
cin >> userOp3;

if(userOp3 == 1){
cout << "-------------------------------------------------------------"<<endl;
cout << " You choosen to stay in the cave"<<endl;
cout << "-------------------------------------------------------------"<<endl;
cout << " You camp out for a small amount of time. But you get a little"<<endl;
cout << "sleepy. When you close your eyes, a zombie eats and kills you instantly"<<endl;
cout << "-------------------------------------------------------------"<<endl;
cout << " GAME OVER"<<endl;
cout << "-------------------------------------------------------------"<<endl;
exit(0);

}
else if(userOp3 == 2){
cout << "-------------------------------------------------------------"<<endl;
cout << "You make a run for it to your dirt home"<<endl;
cout << "-------------------------------------------------------------"<<endl;
cout << " You run and you run and you get shot at with arrows by skeletons"<<endl;
cout << " But luckily an arrow just misses you when you close the opening of your home"<<endl;
}
else{
cout << "-------------------------------------------------------------"<<endl;
cout << "INVALID"<<endl;
cout << "-------------------------------------------------------------"<<endl;
}

}//second if--------------------------------------------------------------------------
else if(userOp2 == 2){
cout << "-------------------------------------------------------------"<<endl;
cout << "You decided to stay inside"<<endl;
cout << "-------------------------------------------------------------"<<endl;

}//second else------------------------------------------------------------------------
else{
cout << "-------------------------------------------------------------"<<endl;
cout << "INVALID" <<endl;
cout << "-------------------------------------------------------------"<<endl;
}

}//First if -----------------------------------new--------------------------------------------------

else if(userOp == 2){
cout << "-------------------------------------------------------------"<<endl;
cout << "You decided to go look for some resources " << endl;
cout << "-------------------------------------------------------------"<<endl;
cout << " You go to look for resources, but you hear scary noise, sadly"<<endl;
cout << "you force yourself to make a dirt home to stay in because you know you are"<<endl;
cout << "not ready for the danger"<<endl;

}//first else

else{
cout << "-------------------------------------------------------------"<<endl;
cout << "INVALID" << endl;
cout << "-------------------------------------------------------------"<<endl;
}

cout << ""<<endl;
cout << ""<<endl;
cout << ""<<endl;
cout << ""<<endl;
cout << ""<<endl;
cout << "---------------------------------------------------------------------------------"<<endl;
cout << " So your in your home and it is about noon, and you know it is safe to go outside"<<endl;
cout << "---------------------------------------------------------------------------------"<<endl;
cout << " After a while the sun is up you can see all the plants, tree, terrain, and animals!"<<endl;
cout << "You collect some wood and kill some cows, chickens, and sheep."<<endl;;
cout << "Then, you come across this village"<<endl;
cout << "You ask around where am I, but you get no reply"<<endl;
cout << "Then you hear a man say 'Over hear'"<<endl;
cout << "The man says if you come with me I can help you."<<endl;
cout << " Pres 1 To not trust the man, Press 2 to trust him"<<endl;
cin >> userOp4;
if(userOp4 == 1){
cout << " You have decided, to not to trust the villager"<<endl;
}

else if(userOp4 == 2){
cout << "You have decided to trust the unfamiliar villiager"<<endl;
cout << "you followed the villager in a dark tunnel and your are stabbed to death."<<endl;
cout << "GAME OVER"<<endl;
exit(0);
}

cout << " So you decided to look around and see if anyone else would talk"<<endl;
cout << "when your about to leave a little boy come up to you"<<endl;
cout << "The little boy says, who are you?"<<endl;
cout << "you say"<<endl;
cout << "My name is ";
cin >> user;
cout << " The little boy says where are you from?"<<endl;
cout << "you say you are from"<<endl;
cin >> town;
cout << "Then the little boy says, yeah! No one talked to you because we though"<<endl;
cout << "you were from the nether"<<endl;
cout << " The the little boys says, to the villagers, he's not from the nether"<<endl;
cout << "then the villagers are not longer scared of you and speak to you."<<endl;
cout << " The villagers tell you how another man just like you lives in the southern part of the village"<<endl;
cout << " It is your friend who you lost!"<<endl;
cout << "he must of come upon the village when you were asleep"<<endl;
cout << "your friend has a good established home and offers if you like to stay with him"<<endl;
cout << " Again it looks really dark"<<endl;
cout << " Press 1 if you want to go home snd get your stuff or Press 2 to forget about your old belongings"<<endl;
cin >> userOp5;

if(userOp5==1){
cout << "When you walk a good distance to see your house, you are killed by a creepr sneaking up behind you"<<endl;
exit(0);
}

else if(userOp5==2){
}

cout << "Your friend tells you he have salvaged enough items to create a new plane and fly away" <<endl;
cout << " Do  you want to leave the amazing unknown land you have come upon?"<<endl;
cout << " If you want to leave press 1, If you don't want to leave press 2"<<endl;
cin >> userOp6;

if(userOp6==1){
exit(0);
}

else if(userOp6==2){
cout << "You stay with the villages and begin you life in a whole new world and you find out"<<endl;
cout << "The world is called MINECRAFT"<<endl;
exit(0);
}

}

int main(void){

cout << "---------------------------------------------------------------------------------"<<endl;
do{
cout << "-------------------------------------------------------------"<<endl;
cin >>userOp101;
cout << "---------------------------------------------------------------------------------"<<endl;
cout<< " Incorrect Retry "<<endl;

cout <<"What Would you like to do ?"<<endl;
cout <<" 1 for Calculator, 2 for SurvivalCraft"<<endl;
cin >> userOp200;
if(userOp200 == 1){
runCalculator();
}

else if(userOp200 == 2){
survivalcraft();

}

return 0;
}

```

can you tell me where to go from now?
yes i plan on mastering c++, so i can move into game programming, modeling, etc...

I went to a camp called internal drive, wanting to learn as much c++ as i could their. We used visual c++,
this is what i could make out of what i learned.
```

#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
void survivalcraft();
void runCalculator();
int a = 0;
int b = 0;
char keepGoing= ' ';
char redo= ' ';
string userOp100;
string userOp101;
char pass= ' ';
string user= "";
string town= "";
int userOp,userOp2,userOp3,userOp4,userOp5,userOp6,userOp200;
int adding (int a, int B)/>;
int adding (int a, int B)/>{
int sum= 0;
sum= a + b;
return sum;
}
int subtracting (int a, int B)/>{
int difference= 0;
difference= a - b;
return difference;
}
int multiply ( int a, int B)/>{
int multiplied= 0;
multiplied= a *b;
return multiplied;
}
int dividing ( int a, int B)/>{
int divide= 0;
divide= a / b;
return divide;
}

void runCalculator(){

cout<< "Welcome"<<endl;
do{
do{
cout << "-------------------------------------------------------------"<<endl;
cout << "/////////Calculator////////"<<endl;
cout << "-------------------------------------------------------------"<<endl;
cout << "Type in 2 numbers" << endl;
cin >> a >> b;
cout << a  << endl;
cout << b  << endl;
cout << "-------------------------------------------------------------"<<endl;
cout <<"If there was an error, Press E to redo, if not press any other key then enter" <<endl;
cin >> redo;
}while(redo == 'e' || redo == 'E');
cout << "Press 1 to Add, 2 to Subtract, 3 to Divide, 4 to Multiply" << endl;
cin >>userOp100;

if(userOp100 == "1"){
}
if(userOp100 == "2"){
cout << subtracting (a,B)/><<endl;
}
if(userOp100 == "3"){
cout << dividing (a,B)/><<endl;
}
if(userOp100 == "4"){
cout << multiply (a,B)/><<endl;
}
cout << "Would you like to use the Calculator again press Y, Press any other key to end"<<endl;
cout<< "calculator : " << endl;
cin >> keepGoing;
}while(keepGoing == 'y' || keepGoing == 'Y');
}
//---------------------------------------------------------------------------------------------------------------------

void survivalcraft(){
string user;

cout << "-------------------------------------------------------------"<<endl;
cout << "SurvivalCraft " << endl;
cout << "-------------------------------------------------------------"<<endl;
cout<<""<<endl;
cout<<""<<endl;
cout<<""<<endl;
cout<<""<<endl;
cout << "Welcome" <<endl;

cout<<""<<endl;

cout<< " You were flying in a flan's airplane with your friend. Then out of the blue your engine randomly stopped"<<endl;
cout<< "and you crashed into the ground." <<endl;
cout<< "When you wake up, your friend was gone and your plane was burnt to the ground";
cout<< "The only tools you have are your two bare hands."<<endl;
cout<< "But you also can chop down trees, sand,stone, and many more objects with your hands."<<endl;
cout<<""<<endl;
cout<<""<<endl;
cout<<""<<endl;
cout<<""<<endl;
cout<<"  It looks pretty dark out. Will you make a shelter out of dirt or will you look around for"<<endl;
cout<<" some resources"<<endl;
cout<<" Press 1 to make a shelter or 2 to go look for some resources"<<endl;
cin >> userOp;

if(userOp == 1){
cout << "-------------------------------------------------------------"<<endl;
cout << "You decided to make a small shelter out of dirt." << endl;
cout << "-------------------------------------------------------------"<<endl;
cout << " You go to sleep and awake early in the morning"<<endl;
cout << "You look around and you seem fine, but you see that you are starving"<<endl;
cout << "You hear something outside of your dirt home...."<<endl;
cout << "Will you go outside and check what is making that noise"<<endl;
cout << "Or Will you stay inside for a few hours until the noise leaves"<<endl;
cout << "Press 1 to Go Outside or 2 to stay inside for a little bit"<<endl;
cin >> userOp2;

if(userOp2 == 1){
cout << "-------------------------------------------------------------"<<endl;
cout << "You check to see what is outside."<<endl;
cout << "-------------------------------------------------------------"<<endl;
cout << " When you step outside, an group of monsters start to chase you"<<endl;
cout << "you run and your run, and you come across a cave and you hide in it"<<endl;
cout << "you come to a choice.. make a run for it back into the dirt home"<<endl;
cout << "or camp out in the cave for a little"<<endl;
cout << " Press 1 for stay in the cave or Press 2 to make a run for it"<<endl;
cin >> userOp3;

if(userOp3 == 1){
cout << "-------------------------------------------------------------"<<endl;
cout << " You choosen to stay in the cave"<<endl;
cout << "-------------------------------------------------------------"<<endl;
cout << " You camp out for a small amount of time. But you get a little"<<endl;
cout << "sleepy. When you close your eyes, a zombie eats and kills you instantly"<<endl;
cout << "-------------------------------------------------------------"<<endl;
cout << " GAME OVER"<<endl;
cout << "-------------------------------------------------------------"<<endl;
exit(0);

}
else if(userOp3 == 2){
cout << "-------------------------------------------------------------"<<endl;
cout << "You make a run for it to your dirt home"<<endl;
cout << "-------------------------------------------------------------"<<endl;
cout << " You run and you run and you get shot at with arrows by skeletons"<<endl;
cout << " But luckily an arrow just misses you when you close the opening of your home"<<endl;
}
else{
cout << "-------------------------------------------------------------"<<endl;
cout << "INVALID"<<endl;
cout << "-------------------------------------------------------------"<<endl;
}

}//second if--------------------------------------------------------------------------
else if(userOp2 == 2){
cout << "-------------------------------------------------------------"<<endl;
cout << "You decided to stay inside"<<endl;
cout << "-------------------------------------------------------------"<<endl;

}//second else------------------------------------------------------------------------
else{
cout << "-------------------------------------------------------------"<<endl;
cout << "INVALID" <<endl;
cout << "-------------------------------------------------------------"<<endl;
}

}//First if -----------------------------------new--------------------------------------------------

else if(userOp == 2){
cout << "-------------------------------------------------------------"<<endl;
cout << "You decided to go look for some resources " << endl;
cout << "-------------------------------------------------------------"<<endl;
cout << " You go to look for resources, but you hear scary noise, sadly"<<endl;
cout << "you force yourself to make a dirt home to stay in because you know you are"<<endl;
cout << "not ready for the danger"<<endl;

}//first else

else{
cout << "-------------------------------------------------------------"<<endl;
cout << "INVALID" << endl;
cout << "-------------------------------------------------------------"<<endl;
}

cout << ""<<endl;
cout << ""<<endl;
cout << ""<<endl;
cout << ""<<endl;
cout << ""<<endl;
cout << "---------------------------------------------------------------------------------"<<endl;
cout << " So your in your home and it is about noon, and you know it is safe to go outside"<<endl;
cout << "---------------------------------------------------------------------------------"<<endl;
cout << " After a while the sun is up you can see all the plants, tree, terrain, and animals!"<<endl;
cout << "You collect some wood and kill some cows, chickens, and sheep."<<endl;;
cout << "Then, you come across this village"<<endl;
cout << "You ask around where am I, but you get no reply"<<endl;
cout << "Then you hear a man say 'Over hear'"<<endl;
cout << "The man says if you come with me I can help you."<<endl;
cout << " Pres 1 To not trust the man, Press 2 to trust him"<<endl;
cin >> userOp4;
if(userOp4 == 1){
cout << " You have decided, to not to trust the villager"<<endl;
}

else if(userOp4 == 2){
cout << "You have decided to trust the unfamiliar villiager"<<endl;
cout << "you followed the villager in a dark tunnel and your are stabbed to death."<<endl;
cout << "GAME OVER"<<endl;
exit(0);
}

cout << " So you decided to look around and see if anyone else would talk"<<endl;
cout << "when your about to leave a little boy come up to you"<<endl;
cout << "The little boy says, who are you?"<<endl;
cout << "you say"<<endl;
cout << "My name is ";
cin >> user;
cout << " The little boy says where are you from?"<<endl;
cout << "you say you are from"<<endl;
cin >> town;
cout << "Then the little boy says, yeah! No one talked to you because we though"<<endl;
cout << "you were from the nether"<<endl;
cout << " The the little boys says, to the villagers, he's not from the nether"<<endl;
cout << "then the villagers are not longer scared of you and speak to you."<<endl;
cout << " The villagers tell you how another man just like you lives in the southern part of the village"<<endl;
cout << " It is your friend who you lost!"<<endl;
cout << "he must of come upon the village when you were asleep"<<endl;
cout << "your friend has a good established home and offers if you like to stay with him"<<endl;
cout << " Again it looks really dark"<<endl;
cout << " Press 1 if you want to go home snd get your stuff or Press 2 to forget about your old belongings"<<endl;
cin >> userOp5;

if(userOp5==1){
cout << "When you walk a good distance to see your house, you are killed by a creepr sneaking up behind you"<<endl;
exit(0);
}

else if(userOp5==2){
}

cout << "Your friend tells you he have salvaged enough items to create a new plane and fly away" <<endl;
cout << " Do  you want to leave the amazing unknown land you have come upon?"<<endl;
cout << " If you want to leave press 1, If you don't want to leave press 2"<<endl;
cin >> userOp6;

if(userOp6==1){
exit(0);
}

else if(userOp6==2){
cout << "You stay with the villages and begin you life in a whole new world and you find out"<<endl;
cout << "The world is called MINECRAFT"<<endl;
exit(0);
}

}

int main(void){

cout << "---------------------------------------------------------------------------------"<<endl;
do{
cout << "-------------------------------------------------------------"<<endl;
cin >>userOp101;
cout << "---------------------------------------------------------------------------------"<<endl;
cout<< " Incorrect Retry "<<endl;

cout <<"What Would you like to do ?"<<endl;
cout <<" 1 for Calculator, 2 for SurvivalCraft"<<endl;
cin >> userOp200;
if(userOp200 == 1){
runCalculator();
}

else if(userOp200 == 2){
survivalcraft();

}

return 0;
}

```

can you tell me where to go from now?
yes i plan on mastering c++, so i can move into game programming, modeling, etc...

This post has been edited by macosxnerd101: 18 July 2012 - 09:07 AM
Reason for edit:: Fixed code tags

Is This A Good Question/Topic? 1

## Replies To: I want to advance and grow

### #2 modi123_1

• Suitor #2

Reputation: 10675
• Posts: 41,554
• Joined: 12-June 08

## Re: I want to advance and grow

Posted 18 July 2012 - 09:23 AM

Quote

can you tell me where to go from now?

Go get a book on introduction to programming with c++. Read it.. reread it.. understand the concepts... do the examples and work.. then branch off and sketch out some new projects just for yourself. (We have project lists if you are not creative). Take what you know, the problem solving techniques, and spring board into another area. Lather, rinse, repeat.

### #3 BBeck

• Here to help.

Reputation: 721
• Posts: 1,700
• Joined: 24-April 12

## Re: I want to advance and grow

Posted 18 July 2012 - 11:37 AM

Javant, this is really awesome that you've been doing this. C++ is kind of an "advanced" programming language. It's the language that most professional video games are programmed in and it looks like you're off to a really strong start with it.

modi123's advice is good. Buying a C++ book (intro level) or two, or three, or twelve, would be a great way to continue learning more about C++. But it would be very helpful to find books and tutorials on game programming for C++. Unfortunately, I don't see a lot of books out there like that. A typical C++ book will teach you more about C++ (which is going to be very helpful), but it may not teach you anything about game programming.

I looked around a bit, and I think I've found the book for you:

http://www.amazon.co...e+programming#_

It looks to me like this is a continuation of what you've been doing and will take you a bit further. This combined with an intro to C++ book, would probably take you quite a ways.

This looks like it might be a good book to start learning C++ with:

http://www.amazon.co...ming+beginner#_

I have found that learning something like C++ can't really be done with just one book. But you have to start somewhere. You'll probably eventually end up buying several C++ books as you go, but this one looks to me to be a good place to start. I have not read any of these books. I'm just flipping through them and asking myself whether they would be a really good choice for someone starting out.

So, much like modi123 said, I would get some books like these and read them cover to cover while working through the examples in the books.

At that point, I'm going to give you some totally different advice. Once you get through these books (or some books similar to these) forget about C++ for a couple of years.

I know a lot of people are going to disagree with me on that, but I think it's the best thing to do. Learn it, because this is going to get you off to a great start. Learn it because eventually you will come back to it many years down the road and already be very comfortable with it. Learn it because I think the books I'm showing you here are probably "exactly" the next step for you.

But, then turn around and forget it. Once you've worked up to the level of having gone through a couple of books like these, forget C++ and move to C#. C# is very similar to C++. Once you get comfortable in C++, C# will be so easy to learn that you won't believe it. C# is basically C++ but a whole lot easier.

It might seem strange that I recommend learning C++ and then turning around and going backwards to an easier language. But C# will allow you to do Windows programs and (more importantly) XNA. XNA is Microsoft's game programming "library" for graphics/games programming in C#. Learn C++ and then you will love XNA written in C#.

You don't have to "master" C++ to move to C# and XNA, but I think you will do well to continue a little further into C++, like the books that I mentioned. That should make going into C# a lot easier, and once you've read a C# book or two, you should be ready to move into XNA, which you're absolutely going to love. And to move into XNA you'll just want to find a good XNA book on 2D programming (which is probably most of them).

You probably know that you can download MS Visual C++ Express edition for free from Microsoft. You can also download Visual C# Express from them as well. And then after you install C# there is a seperate download for XNA Game Studio on their website as well. C# 2008 goes with XNA 3.0 (&3.1) and Visual C# 2010 goes with XNA 4.0.

This post has been edited by BBeck: 18 July 2012 - 11:47 AM

### #4 anonymous26

• D.I.C Lover

Reputation: 1
• Posts: 3,638
• Joined: 26-November 10

## Re: I want to advance and grow

Posted 18 July 2012 - 05:19 PM

Investigate the Game Programming Gems series, I'm not expecting you to be comfortable with them but I would expect you to attempt to make use of some of the solutions presented.

Page 1 of 1

 .related ul { list-style-type: circle; font-size: 12px; font-weight: bold; } .related li { margin-bottom: 5px; background-position: left 7px !important; margin-left: -35px; } .related h2 { font-size: 18px; font-weight: bold; } .related a { color: blue; }