Search:
Type: Posts; User: spiritualfields
Search:
Search took 0.04 seconds.
-
April 10th, 2015, 04:02 AM
Thanks for the information about cin.putback. A string stream should be perfect. I tried this:
char c[3] = { '2', '+', 'a' };
char a, b, d;
stringstream...
-
April 10th, 2015, 02:23 AM
I have no idea what's happening here. I have a vector<char> called vOriginal. I load 3 chars into the vector, and in a loop attempt to cin.putback the 3 chars
into the stream. Only the first two...
-
March 17th, 2015, 05:09 PM
If this post should have been posted in the C++ thread, let me know. It involves Visual Studio 2013, so I posted it here. There's something annoying going on with Visual C++ 2013 intellisense and I'm...
-
February 26th, 2014, 05:01 AM
EDIT: NEVER MIND, I totally blanked out and didn't realize that I was actually trying to delete an array that WASN"T created on the heap! IGNORE -> I can't figure out why I'm getting a...
-
December 7th, 2012, 04:33 PM
That's EXACTLY why I wanted to work with vectors. The user will not be able to delete elements (which themselves are arrays of strings), but they will be able to insert new elements, and write into...
-
December 7th, 2012, 01:20 AM
I've been hearing about MFC being legacy for years now. I'm thinking that that rap is more urban legend and MSFT wishful thinking than anything else. The other day I downloaded and installed...
-
December 6th, 2012, 04:33 PM
I don't know. My knowledge of STL is weak. What I need is a container of string arrays, like this:
SOME_CONTAINER_WITH_ELEMENTS_ACCESSIBLE_BY_INDEX
{
{"hello", "string", "string", "", "",...
-
December 6th, 2012, 01:42 AM
I thought that C++0x made it possible for vectors to be initialized with an initializer list, such as:
vector<vector<string> > vv {{"hello", "goodbye", ""}};
I tried this syntax in both VS...
-
November 12th, 2012, 09:19 PM
Thanks! That was the problem.
-
November 12th, 2012, 02:21 AM
This is a c program that is failing to compile. The error occurs in the calcLabs() function. The error called out is (btw, I'm using VS 2010): Error 4 error C2143: syntax error : missing ';' before...
-
July 18th, 2010, 08:54 PM
I ended up like that by luck because I hadn't done any real programming since around 2002 but had still kept up with the Visual Studio versions, just not installing the service packs because I wasn't...
-
July 18th, 2010, 08:08 PM
It just so happens that I also have VS 2005 and VS 2008, so I did a comparison between the three. The conditions: Console program with MFC with static linking, no additional code to what was...
-
July 18th, 2010, 04:46 AM
One thing you could do is start off the line of code with just _tprintf, and add the VERIFY wrapper after you've coded the string. However, all you'll get for popup help for _tprintf is: (const...
-
July 18th, 2010, 01:05 AM
If the literature on the site you get explicitly mentions that you can upgrade to VS2010 professional from an Express edition of Visual Studio, and if you have none of the recent versions of VS and...
-
July 17th, 2010, 07:41 PM
According to a picture of the box on the U.S.A. page, the upgrade only applies to VS2005 and VS2008 users.
...
-
July 17th, 2010, 04:43 AM
The online microsoft store is selling the upgrade version of VS2010 professional for $299. To see what's available in Germany, you could select the Germany as the country, and you'll be shown the...
-
July 12th, 2010, 01:08 AM
I'm using Visual Studio 2010, so technically this seems the best forum to ask my question. If I run a console app from the dos command line, I can redirect the input to come from a text file, which...
-
Two things:
1. You should initialize numtimes to 0 before you use it
2. Compare word[i] to letter[0]
-
Hmm ... using Spy++ shows that the the framework is .NET (WindowsForms10 is the top namespace for the controls). Yet the only requirements listed on the site's web page is: "System Requirements: Any...
-
I downloaded an application for my own personal use, and am quite impressed by the GUI associated with it. I don't know if it was written in a .NET language or native C++. If the former, I don't know...
-
November 30th, 2007, 10:28 PM
I've got Window Vista Home Premium. From what I understand, to "install" .NET 3.0, all I need to do is go to the control panel, select Programs and Features, then click on Turn Windows Features on or...
-
April 28th, 2007, 01:41 PM
Yes, you should be very specific in your information. Strictly speaking, it isn't 8 numbers that the user should input, but one number containing 8 digits. I only gleaned this from your
line...
-
April 27th, 2007, 03:31 PM
On second thought:
It would be less complicated to do it this way:
(int)(.11 * 100 + .5)
(int)(.9 * 10 + .5)
(int)(.359 * 1000 + .5)
-
April 27th, 2007, 03:10 PM
It seems that all you want to do is take a fractional decimal number and turn it into an int with the same digits? For example:
.11 to 11
.12 to 12
.17 to 17
.359 to 359
.7 to 7
and so on?
-
April 26th, 2007, 03:32 PM
Here's another thought. Based on the results that I got from my test of GetTextExtent in MM_TEXT mode, and assuming that in all modes it returns the true length of the string regardless of angle,...
|
Click Here to Expand Forum to Full Width
|