This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Node first = new Node { Value = 2 }; | |
Node middle = new Node { Value = 4 }; | |
first.Next = middle; | |
Node last = new Node { Value = 5 }; | |
middle.next = last; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Visit(Node current) { | |
if(current == null) { | |
return; | |
} | |
Visit(current.Left); | |
Process(current.Value); | |
Visit(current.Right); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Runtime exception thrown when one tries to perform operation | |
* top or pop on an empty stack | |
*/ | |
public class EmptyStackException extends RuntimeException | |
{ | |
public EmptyStackException(String e) | |
{ | |
super(e); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ArrayStack<T> implements Stack<T> { | |
protected int capacity; // The actual capacity of the stack array | |
public static final int CAPACITY = 1000; // Default array capacity | |
protected T S[]; // Generic array to implement the stack | |
protected int top = -1; // Index for the top of the stack | |
public ArrayStack(int cap) | |
{ | |
capacity = cap; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
msdeploy.exe -verb:sync | |
-source:iisApp=mydomain.com | |
-dest:iisApp=mydomain.com, computerName=https://webxxx.discountasp.net:8172/msdeploy.axd?site=mydomain.com, | |
userName=cpUsername, password=cpPassword, authtype=basic | |
-allowUntrusted |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map<string, int> m; | |
m["Hans"]=60; | |
m["Fritz"]=23; | |
m["Sepp"]=78; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <set> | |
#include <string> | |
using namespace std; | |
// ... | |
set<string> setStr; | |
string s = "A"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <numeric> | |
// ... | |
istream_iterator<int> eof; | |
vector<int> v(istream_iterator<int>(cin), eof); | |
cout << "Summe: " << accumulate(v.begin(), v.end(), 0) << endl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// addition | |
template <class InputIterator, class T> | |
T accumulate (InputIterator first, InputIterator last, T init) | |
{ | |
while (first!=last) init = init + *first++; | |
return init; | |
} | |
// general Operation | |
template <class InputIterator, class T, Class binaryOperation> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cruisecontrol xmlns:cb="urn:ccnet.config.builder"> | |
<project name="TestProject1"> | |
<sourcecontrol type="svn"> | |
<trunkUrl>https://localhost:8088/svn/TestProject1/trunk</trunkUrl> | |
<workingDirectory> | |
C:\Development\CCNet\TestProject1 | |
</workingDirectory> | |
<username>username</username> | |
<password>password</password> | |
</sourcecontrol> |
NewerOlder