Search Results

Showing results 1 to 25 of 25
Search took 0.01 seconds.
Search: Posts Made By: shadwickman ; Forum: C++ and child forums
Forum: C++ Aug 30th, 2009
Replies: 7
Views: 327
Posted By shadwickman
Thank you siddhant3s.


Yeah, I already Googled around but for some reason combining both the template part and the variadic part got me confused. Thanks though, I'm straightening it all out!
Forum: C++ Aug 29th, 2009
Replies: 7
Views: 327
Posted By shadwickman
Seriously? There's no options that do this for regular functions, the same way it can be done for the main function when it's handed command-line arguments? I thought it was possible to do:

//...
Forum: C++ Aug 28th, 2009
Replies: 7
Views: 327
Posted By shadwickman
Hello, I've just recently tried to make a class template whose constructor should be able to accept a variable amount of arguments of the class passed to the template. I have something like this,...
Forum: C++ Jul 10th, 2009
Replies: 17
Views: 456
Posted By shadwickman
Ohh ok. I just thought syntactically that it was incorrect because I just hadn't ever seen int main(void) before. So then why are there compilers in C++ that accept this, even if it conflicts with...
Forum: C++ Jul 10th, 2009
Replies: 3
Views: 199
Posted By shadwickman
MinGW is what I use so that I can use GCC's G++ on Windows.
Forum: C++ Jul 10th, 2009
Replies: 17
Views: 456
Posted By shadwickman
Why does your main function accept the keyword void as an argument?

EDIT:
Wow I'm retarded. Please excuse this.
Forum: C++ Jul 9th, 2009
Replies: 14
Views: 492
Posted By shadwickman
I'm not.... I'm following the rules for posting questions on this forum. Maybe you should take a look at them.
Forum: C++ Jul 9th, 2009
Replies: 14
Views: 492
Posted By shadwickman
So... what have you tried so far? You need to show effort (http://www.daniweb.com/forums/announcement8-2.html) as we're not some sort of request forum that just whips up all the code for you. Post...
Forum: C++ Jul 4th, 2009
Replies: 4
Views: 256
Posted By shadwickman
And as a side note, you shouldn't be using stdio.h or stdlib.h as those aren't standard C++ headers. Use cstdio and cstdlib which are the standard C++ headers.

And as u8sand said, you're only...
Forum: C++ Jul 3rd, 2009
Replies: 8
Views: 454
Posted By shadwickman
I'd definitely suggest going with G++. MinGW is the port of that for Windows. And as Ancient Dragon said, please don't go for DevC++. That died back in 2005 and so it hasn't been updated since.
Forum: C++ Jul 2nd, 2009
Replies: 9
Views: 697
Posted By shadwickman
He said he was running it on Dev C++ in his post a few up. Hence my suggestion to use MinGW or a non-dead compiler to keep up to date.
Forum: C++ Jul 2nd, 2009
Replies: 2
Views: 212
Posted By shadwickman
It seems you are just laying down a flat-out request for us to code you something. Not gonna happen. Post the code you have come up with so far and where you got stuck, etc. and I'll try helping from...
Forum: C++ Jul 2nd, 2009
Replies: 5
Views: 182
Posted By shadwickman
I'll formulate this below code based on the presumption that you're printing this and not storing it in a 2D array.

void displayBox ( int width, int height, char FillChar )
{
for(int y = 0;...
Forum: C++ Jul 2nd, 2009
Replies: 5
Views: 182
Posted By shadwickman
This still makes no sense. You can't "call" the other functions to get the variables they had. And besides, you already passed them on to that last function anyways. And what exactly do you mean by...
Forum: C++ Jul 2nd, 2009
Replies: 5
Views: 182
Posted By shadwickman
By the way, please use tags around your code instead of typing "Code" and "end of code".

Anyways, I don't see what your problem is exactly. Don't you just need to actually code in whatever you...
Forum: C++ Jun 29th, 2009
Replies: 9
Views: 697
Posted By shadwickman
@XTRobot

I know your problem's solved, but I thought I felt like saying that I'd advise against using DevC++. I used to use it, but it's been dead since 2005, so I'd use something like GCC or...
Forum: C++ Dec 16th, 2008
Replies: 4
Views: 355
Posted By shadwickman
please edit your first post and place your code in CODE=cpp tags.
Forum: C++ Dec 16th, 2008
Replies: 4
Views: 272
Posted By shadwickman
You can't use:

float theta, float cotheta, float sitheta, float distance, float velocity, float time, float height;


Instead, just put float once before the whole line. Like cikara21 said:
...
Forum: C++ Dec 14th, 2008
Replies: 6
Solved: Vector Help
Views: 595
Posted By shadwickman
Ok great, sounds like everything's solved for me. Thanks everyone!
Forum: C++ Dec 14th, 2008
Replies: 6
Solved: Vector Help
Views: 595
Posted By shadwickman
I don't understand that part you added to your post... I eliminated the possibility of rand() duplicating cards in the deck by erasing each index rand() selected from the deck. The range for rand()...
Forum: C++ Dec 14th, 2008
Replies: 6
Solved: Vector Help
Views: 595
Posted By shadwickman
Oh! Wow that was a stupid mistake. I didn't realize I had been trying to use deck[ i ] = i; on the vector without a length specified. Another option would be to replace line 32 with deck.push_back( i...
Forum: C++ Dec 14th, 2008
Replies: 6
Solved: Vector Help
Views: 595
Posted By shadwickman
Hi, I was wondering what was wrong with the following code. It creates a vector <int> and assigns it the values 0 - 51. Then it shuffles these values and prints it to the screen. When I compile it,...
Forum: C++ Dec 14th, 2008
Replies: 8
Views: 1,003
Posted By shadwickman
Ok, thanks! I had guessed through C++ 'strictness', there was a boost in performance, as opposed to something like Python (or Ruby, etc.) which is highly interpreted. I think I'll go with the vector...
Forum: C++ Dec 14th, 2008
Replies: 8
Views: 1,003
Posted By shadwickman
Ok, these are great suggestions, but just out of curiosity, why must C++ be so difficult/strict with this? My favourite language by far is Python, partly due to how utterly simple arrays and...
Forum: C++ Dec 13th, 2008
Replies: 8
Views: 1,003
Posted By shadwickman
Hi, I'm really confused now about how to return an int[] from a C++ function. Inside the function, I need to dynamically resize the array, but at the end I want the variable returned to be an array,...
Showing results 1 to 25 of 25

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC