Search:
Type: Posts; User: blinksumgreen
Search:
Search took 0.05 seconds.
-
A speaker recently gave a talk at the university I attend on a language he had created called Frink. It's great when dealing with measurement conversions, which it could do on the fly. It was also...
-
For anyone who may have come across this via a Google search, or just perusing the forum, there was a pretty good answer given to the same question when I asked it on StackOverflow.
Response...
-
April 26th, 2011, 08:37 PM
I've written some image analysis software that can determine the basic shape, color, and dimensions (in cm) of what it considers to be the most dominant object in the image.
I've also created a...
-
I've been tasked with writing a concise bit of code for a microchip and have been using the MPLAB IDE. I have a little experience with Assembly, but it was with MASM. I've got the pseudo code and my...
-
June 21st, 2010, 11:08 PM
Thank you! That solved the problem!
-
June 17th, 2010, 09:18 PM
Thank you, and sorry for not seeing that earlier.
cout << "Input employee name" << endl;
string input = "";
//cin.get();
getline(cin, input, '\n');
std::cin.ignore(...
-
June 17th, 2010, 08:26 PM
#include <iostream>
#include <string>
using namespace std;
void inputEmployeeInfo(string name[], float hours[], float payrate[], int & size){
bool k = true;
int i = 0;
while(k == true){
-
June 17th, 2010, 02:27 PM
That's pretty much the code for it.
-
June 17th, 2010, 02:21 PM
Below is the output I get with the cin.get() in there, which is exactly what I want, with the exception of not having the first letter.
Input employee name
Bill
Input hours employee worked
45...
-
June 17th, 2010, 03:08 AM
while(true){
string input = "";
cin.get();
getline(cin, input, '\n');
cout << "NAME: " << input << endl;
}
For some reason the code above cuts off the first character entered.
Example:
-
February 10th, 2010, 12:47 PM
I am using Visual Studio and its built in debugger.
I'm not necessarily working on the main portion of the program, I'm just responsible for writing the sorting algorithm using quicksort, and I'm...
-
February 3rd, 2010, 02:42 PM
I've done the code below to try and implement Quicksort and it works... almost. It switches the positions of the last two items to be sorted.
Example: (using some randomly generated numbers)
- it...
-
October 30th, 2009, 01:02 PM
I need to replicate the ascii portion of what the
http://technet.microsoft.com/en-us/sysinternals/bb897439.aspx
strings.exe program does. From the description of the file it says, "Search for...
-
October 30th, 2009, 01:00 PM
Sorry, accidentally did a multipost.
http://www.codeguru.com/forum/showthread.php?t=487330
-
October 8th, 2009, 01:00 PM
I understand.
Output:
'Hello'
'how'
'how'
'you'
'how'
'you'
-
October 8th, 2009, 09:52 AM
I think it would work just fine, why, does something not seem right in the code?
-
October 7th, 2009, 07:57 PM
I ended up doing something kind of like that.
When it reads in the file, if the beginning of the line starts with ! or does not contain a single quote, then it doesn't even bother appending it to...
-
October 6th, 2009, 10:38 PM
Thank you for all the help!
-
October 4th, 2009, 02:09 PM
Thanks, that did the trick.
I have one more question. I need to be able to print all string literals that appear in a file. The problem is that a line can contain multiple string literals.
...
-
October 3rd, 2009, 06:02 PM
I want to be able to read in a text file and then print it out. That in itself is fairly straight forward. But I also need to be able to eliminate a line of text if it starts with a certain...
-
September 30th, 2009, 08:35 PM
When I try this method it says that it cannot create the java virtual machine. I've attached an image of what it tells me.
Batch file consists of: java - jar printStatement Input.txt >> output.txt...
-
September 29th, 2009, 11:53 AM
I know when using C++ you can do the following to read in a list of commands from a text file, run them against the program, and output the results to a text file:
ExampleProg < test.txt >...
-
September 21st, 2009, 05:50 PM
Does anyone know of ways in which an anagram could be used for security purposes?
-
September 17th, 2009, 01:48 PM
-
September 15th, 2009, 09:53 PM
I'm in the final stages of a project and I have a question.
Recape + New info - keyword has any non unique characters removed.
"Alphabet (without J, so as to keep it to 25 letters, and therefore...
|
Click Here to Expand Forum to Full Width
|