Search found 1 match

by arnie
Sun May 01, 2011 4:03 pm
Forum: Text Formatting
Topic: C++ Code in LaTeX
Replies: 1
Views: 2185

C++ Code in LaTeX

Hello
How to put the C++ code in Latex? For example this code:

#include <list>
#include <iostream>

using namespace std;

typedef list<int> LISTINT;

int main(void)
{
LISTINT listOne;
LISTINT listAnother;
LISTINT::iterator i;

// Add some data
listOne.push_front (2);
listOne.push_front (1 ...