Search:
Type: Posts; User: ttrz
Search:
Search took 0.06 seconds.
-
November 18th, 2012, 01:52 AM
In Runway::can_land(const Plane ¤t), you have the following:
result = takeoff.append(current);
takeoff is an object of type Extended_queue, which inherits append() from Queue....
-
November 17th, 2012, 12:09 AM
Is it possible to use a combination of PNG images (with transparency) as the graphic for a button control?
For example, let's say I have 3 PNG files: main.png, transparent1.png, and...
-
January 6th, 2011, 10:49 PM
Okay, thanks. I wasn't sure if a feature like this was built into VS 2010. Based on the responses, it seems that it isn't I'll take a look at DOxygen thanks.
-
January 5th, 2011, 09:26 PM
hello,
If I recall Java has a tool, I believe it's called Javadoc or something of that nature, that allows you to conveniently document your code. If I remember correctly, it generates HTML files...
-
December 8th, 2010, 04:58 PM
What is wrong with the following code?
D3DXPLANE mirrorPlane(0.0f, 0.0f, 1.0f, 0.0f); // xy plane
D3DXMATRIX R;
D3DXMatrixReflect(&R, &mirrorPlane);
When I run the program, it crashes...
-
November 24th, 2010, 04:56 PM
When using the class view in VS 2010 Pro, it seems to show available classes but it does not let you browse the member variables/functions. Is there another view which does this? If so, I can't seem...
-
November 3rd, 2010, 12:11 AM
Yes, you are storing the input in a character array, and designating a maximum number of characters to read in getline(). If the input is larger than the maximum you have specified, you will run into...
-
November 1st, 2010, 03:32 PM
Well, if you were going to do it the way I suggested, you wouldn't write to the output file until the user decided to quit.
Right now you are getting input and then writing directly to the output...
-
November 1st, 2010, 02:37 PM
Well, the easiest way is to probably have a separate string for first and last name:
struct Person{
string firstName,
lastName,
number,
address;
};
-
November 1st, 2010, 12:57 PM
I'm not trying to write the program, I'm only providing ideas for certain parts. If you design it this way, you could add an element to the array/vector whenever you need to add someone to the...
-
October 31st, 2010, 08:44 PM
In the above example, notice that if the user enters a word beginning with q (ie, quit) the program returns from main:
case 'Q':
cout << "Goodbye";
return 0;
As for the...
-
October 31st, 2010, 07:27 PM
A vector is similar to an array, except that is grows dynamically. You don't need to know in advance exactly how many elements the vector will hold. Whenever you need to add an element to the vector,...
-
October 31st, 2010, 06:46 PM
One possible option is to read the entire file into a vector of type Person, perform the needed operations, and then overwrite the file when the program is exiting. If your input file is huge, this...
-
October 31st, 2010, 06:19 PM
Just looking at your snippet of code, I'm not sure why you are designing it this way. Each book has a title, author, publisher, etc.
So why not design a book struct/class, and then create an array...
-
October 31st, 2010, 03:37 PM
Post your code between CODE tags. It is not convenient for anyone to download files.
-
October 29th, 2010, 09:09 PM
I'd also recommend reading and understanding Paul's response before deciding what you want to do. As usual, he is right on target.
And hey, I have nothing against old time C programmers. ;)
-
October 29th, 2010, 08:53 PM
I'm sure that many would argue that a GUI front-end does not have anything to do with the practical uses of a program. In any case, I think it depends on how low-level you want to go. If you are...
-
October 29th, 2010, 02:04 PM
#include <string>
#include <iostream>
using namespace std;
int main () {
string s = "Hello";
cout << int(s[0]);
-
October 27th, 2010, 10:10 PM
Maybe there is a better way to do this, but this is just one way I thought of:
#include <string>
#include <fstream>
#include <iostream>
using namespace std;
-
October 27th, 2010, 08:45 PM
Huh? It prints "What would you like today?" at the beginning of every iteration through the loop. If you don't want that, put it outside the loop.
If you look at my code above, you will see...
-
October 27th, 2010, 03:01 AM
It would probably be easier to use switch/case in this situation. How about something like this?
#include <iostream>
#include <string>
#include <cctype>
using namespace std;
-
October 20th, 2010, 03:27 PM
Hello Paul. Thanks for your suggestion.
I set the window size to 500 x 500 (the 6th and 7th arguments to CreateWindow).
cyChar is 16.
The first time though, the top and bottom of the...
-
October 19th, 2010, 10:13 PM
hi all,
I'm still a bit new to things here, but I am trying to understand the logic behind the processing of the WM_PAINT message in this case. I have put my comments in below, trying to make...
-
October 19th, 2010, 05:56 PM
Name your functions print_1_9, print_2_7, print_3_5, print_4_3, etc. Don't name them myFunction - that is just something I used when giving you an example.
To keep it simple, implement the...
-
October 18th, 2010, 02:53 PM
Just to let you know, Visual Studio is free for students to try. Click here if you'd like to find out more.
|
Click Here to Expand Forum to Full Width
|