Forum: C++ Feb 6th, 2008 |
| Replies: 16 Views: 2,546 you dont need to use the visual studio environment for .NET but it sure does make coding a hell of a lot easier :P |
Forum: C++ Feb 5th, 2008 |
| Replies: 16 Views: 2,546 I use Microsoft Visual Studio Professional
if you are just starting out i would recommend the express versions.
I've dabbled around in other IDEs and with other compilers but i happen to like... |
Forum: C++ Nov 30th, 2007 |
| Replies: 3 Views: 4,753 Aside from the major syntax and naming issues:
thats because your array of 20 looks like
Rudolf00000000000000
--------------------
// each 0 is actually a null character |
Forum: C++ Oct 5th, 2007 |
| Replies: 5 Views: 1,430 this statement is entirely different from what you have in your code.
/*
toupper returns an INT value
toupper(a) will return 65 the ascii value for an uppercase A
*/
// the following... |
Forum: C++ Oct 4th, 2007 |
| Replies: 5 Views: 1,430 your code worked and compiled fine for me (besides a typo in your post)
what exactly are you referring to as not working?
cout<<toupper(*pos)<<" "; //without cast it doesn't work, why?... |
Forum: C++ Sep 27th, 2007 |
| Replies: 12 Views: 4,511 Here is a version I wrote based on your code and heavily commented :)
#include <iostream>
#include <fstream>
using namespace std;
int main( void )
{
ifstream inFile; // create a file... |
Forum: C++ Sep 27th, 2007 |
| Replies: 12 Views: 4,511 Make sure to test if the stream is open
inFile.is_open()
if it's not open your vowels.txt file is in the wrong directory.
that being said if you want I can PM you a working version, a... |
Forum: C++ Jul 23rd, 2007 |
| Replies: 11 Views: 2,743 yes it can be a bit of a pain at first but using the windows api it can be done :)
this is of course in windows, you need to specify the OS for a more specific answer.
... |
Forum: C++ Jul 14th, 2007 |
| Replies: 30 Views: 7,129 i did a google on the error you posted but didnt get much (put it in quotes to hope to find someone with the same error)
doing a little rearranging this was the best i could find |
Forum: C++ Jul 14th, 2007 |
| Replies: 3 Views: 3,537 |
Forum: C++ Jul 12th, 2007 |
| Replies: 4 Views: 5,198 since you are using VC++ i am assuming you arein the .NET framework?
do you happen to be working with windows forms?
System::Windows::Forms
if so then you can capture keyboard input... |
Forum: C++ Jul 11th, 2007 |
| Replies: 10 Views: 1,257 http://www.cplusplus.com/
great resource, i use it for the most part. |
Forum: C++ Jul 8th, 2007 |
| Replies: 62 Views: 11,418 great post.
actually gave me some ideas on how i would personally tackle this problem. |
Forum: C++ Jul 5th, 2007 |
| Replies: 6 Views: 1,258 the most efficient method is going to entail determining the difference between what you have and what zero is and then subtracting by that ammount instead of continually removing one unit at a time.... |
Forum: C++ Jul 4th, 2007 |
| Replies: 4 Views: 992 you are correct in that it fails if you assign the itterator before you have placed any values into the vector. |
Forum: C++ Jul 4th, 2007 |
| Replies: 6 Views: 1,258 found the second bug
while( str_time.substr(14,2) != "00")
{
str_time = format_time( input_time );
input_time -= 60;
}
the reason this is incorrect is because the... |
Forum: C++ Jul 4th, 2007 |
| Replies: 4 Views: 992 use this
cout << (*itr++).c_str() << endl; |
Forum: C++ Jul 4th, 2007 |
| Replies: 6 Views: 1,258 i will check it but also you should try running it a few times to see what happens.
EDIT:
also please include any headers and other functions you may have defined :) |
Forum: C++ Jul 2nd, 2007 |
| Replies: 10 Views: 4,710 the information provided in this thread has been an awesome resource.
at first i was going huh? ** or *& but now it makes sense to me :-D
... |
Forum: C++ Jul 1st, 2007 |
| Replies: 18 Views: 7,646 what are random numbers?
just that random numbers :D
http://www.daniweb.com/forums/post394829-10.html
this is an array pointer example i wrote, but it deals with random numbers :) |
Forum: C++ Jun 28th, 2007 |
| Replies: 18 Views: 7,646 now it's time to write your own insertion method :D
no better way to learn than with your very own hands :) |
Forum: C++ Jun 28th, 2007 |
| Replies: 10 Views: 4,710 based on these two methods is there any gain over one, is one safer than another? |
Forum: C++ Jun 26th, 2007 |
| Replies: 10 Views: 1,685 now that im awake i will try to explain this some more lol! :D
#include "stdafx.h"
#include <cstdlib>
#define length(a) (sizeof a / sizeof a[0])
i've included the cstdlib to gain access... |
Forum: C++ Jun 26th, 2007 |
| Replies: 10 Views: 1,685 some code i wrote that basically does what you spoke of
#include "stdafx.h"
#include <cstdlib>
#define length(a) (sizeof a / sizeof a[0])
void ArrayGenerator(int * MyArray, int ArraySize) {... |
Forum: C++ Dec 7th, 2006 |
| Replies: 3 Views: 10,736 without thuroughly going through your code the best i can give you is this:
try not to specificy the location of tyour database from the connection string.
(which is what it appears you are... |