Forum: C++ Apr 16th, 2009 |
| Replies: 14 Views: 526 What do you think the code is doing? Add some comments. |
Forum: C++ Apr 16th, 2009 |
| Replies: 29 Views: 1,395 Errr, ignore that last part. Sometimes I'm unclear.
Student student;
for(int subject = 0; subject < 4; subject++){
string code;
int cu;
char pass_or_fail;
inFile >> code;
... |
Forum: C++ Apr 10th, 2009 |
| Replies: 7 Views: 866 Hey guys,
I was wondering, with this code:
main.cpp
#include <iostream>
using namespace std;
class car { |
Forum: C++ Jan 3rd, 2009 |
| Replies: 5 Views: 312 Here are two examples I created and use as a reference, maybe they are of help:
/*
** Playing around with WinSockets
*/
#include <stdio.h>
#include <winsock.h> |
Forum: C Nov 17th, 2008 |
| Replies: 12 Views: 1,833 It is only a pointer, don't worry. It's a pointer that points to pointers.
The struct declaration indeed only reserves one pointer, not an array or anything.
However, I guess you want to have... |
Forum: C Aug 12th, 2008 |
| Replies: 6 Views: 804 By the way blrjohn, you could also try and fire up a console and execute your program from there. It won't disappear then. I dunno on which OS you are, but guessing it's Windows (80% market share or... |
Forum: C Jun 17th, 2008 |
| Replies: 4 Views: 1,791 That's a C++ program btw, not C.
To make it C:
#define _WIN32_WINNT 0x0500
#include <windows.h>
#include <stdio.h>
#include <math.h> |
Forum: C May 23rd, 2008 |
| Replies: 13 Views: 1,479 Not to be an ******* but poster says he wants to capture and store image data from a webcam. That's pretty specific, not? |