Forum: C++ Nov 12th, 2008 |
| Replies: 4 Views: 509 C# and vb but it may be of interest
http://stackoverflow.com/questions/175836/systemwindowsformswebbrowser-open-links-in-same-window-or-new-window-with-same |
Forum: C++ Nov 10th, 2008 |
| Replies: 4 Views: 509 take a look at tools->internet options->tabs->settings->open links from other programs in : the current tab or window
this might not fix it, but first things first |
Forum: C++ Oct 29th, 2008 |
| Replies: 2 Views: 358 also you will crash out past once x hits 10, your table is only of size 10 |
Forum: C++ Oct 29th, 2008 |
| Replies: 20 Views: 1,070 Myself, I wouldn't normally go the formatting route for examples just for readability, very nice touch though. |
Forum: C++ Oct 29th, 2008 |
| Replies: 20 Views: 1,070 Nice one ddanbe
Here's c++ version, i stayed with separating couts rather than using formatting
for (int x = 0; x <= 8; x+=3)
{
cout << x << "\t" << x+1 << "\t"... |
Forum: C++ Oct 29th, 2008 |
| Replies: 20 Views: 1,070 nice explanation waltp
the variable col is "column"
as waltp said when you are at position(column) 3 which will be the numbers(2, 5, 8), it will break the line, otherwise it will add tab |
Forum: C++ Oct 28th, 2008 |
| Replies: 20 Views: 1,070 my bad misplaced col++, was in a rush, but you still shouldn't be getting 0
int col = 1;
for (int x=0; x<=8; x++)
{
cout << x;
if(col == 3)
{
col = 1; |
Forum: C++ Oct 28th, 2008 |
| Replies: 20 Views: 1,070 and btw, i left the \n endl because you had it in there
normally you would use one or the other, but for this i would say drop the \n and stick with the endl |
Forum: C++ Oct 28th, 2008 |
| Replies: 20 Views: 1,070 for it is then
int col = 1;
for (x=0; x<=8; x++)
{
cout << x;
if(col == 3)
{ |
Forum: C++ Oct 28th, 2008 |
| Replies: 20 Views: 1,070 oh boy
along with ddanbe, if you need to "change" the value do not modify the loop
cout << x << endl;
cout << x + 1 << endl;
cout << x << endl; // x is the same
cout << x++ << endl; //uh... |
Forum: C++ Oct 27th, 2008 |
| Replies: 3 Views: 301 Lol the paper method, I like that one.
I assumed you meant unit tests, here are some links for them.
... |
Forum: C++ Oct 27th, 2008 |
| Replies: 3 Views: 301 not sure what your methods look like, but lets say you have a method that will add a number and return the sum
your test case, will provide the number and ensure it is the correect result when its... |
Forum: C++ Aug 28th, 2008 |
| Replies: 7 Views: 2,056 Very good.
That is the general concept of object oriented programming. Although, everything works together, they are still separate entities that are used to communicate with each other, and only... |
Forum: C++ Aug 27th, 2008 |
| Replies: 7 Views: 2,056 A good way to think about top level objects, is what ways you 'access' this object.
You interact with the top level objects, for the top level objects to interact with low-level objects.
An... |