Search Results

Showing results 1 to 40 of 43
Search took 0.01 seconds.
Search: Posts Made By: FireSBurnsmuP ; Forum: C++ and child forums
Forum: C++ Jan 17th, 2008
Replies: 7
Views: 1,232
Posted By FireSBurnsmuP
*sigh* you're missing the point. sure, I could do it their way and use the software they give me (which I hear works too slowly on macro commands, which is what I'd be using almost exclusively), or I...
Forum: C++ Jan 17th, 2008
Replies: 7
Views: 1,232
Posted By FireSBurnsmuP
Okay, how would you direct those commands to the device? How do you catch commands from the device? If I can figure out what the keys send to the computer I can pretty much just use cin or something...
Forum: C++ Jan 17th, 2008
Replies: 7
Views: 1,232
Posted By FireSBurnsmuP
No, I'm getting one. And Nothing says "linux compatible" on the box. NOTHING. I'm asking how one would go about programming an interface for a peripheral device like this one. What libraries? Would I...
Forum: C++ Jan 17th, 2008
Replies: 7
Views: 1,232
Posted By FireSBurnsmuP
This is going to sound wierd at first, but I found a really cool usb controller. Let's see if I can find a link to it... here it is...
Forum: C++ Dec 3rd, 2007
Replies: 3
Views: 1,596
Posted By FireSBurnsmuP
Thanks again; that one was a little to simple for me to be so stuck on ^_^U

How do you know so much about iterators, anyways? You must need to use them all the time if you can so quickly come up...
Forum: C++ Dec 3rd, 2007
Replies: 3
Views: 1,596
Posted By FireSBurnsmuP
Great, more iterator trouble.

First we have an iterator of any value. I want to make a second iterator that starts one higher than the first one. Look-see:

for( iterator_type one ; /*...*/)
{...
Forum: C++ Dec 3rd, 2007
Replies: 2
Views: 2,008
Posted By FireSBurnsmuP
Wow, thanks! That allowed me to compile for the first time in a month. ^_^ I wouldn't have thought to make it a const_iterator instead of a regular iterator.

Thanks!
Forum: C++ Nov 20th, 2007
Replies: 2
Views: 2,008
Posted By FireSBurnsmuP
Alright, here's the code:
for ( map<string,int>::iterator word = mostUsed.begin() ;
word != mostUsed.end() ; word++ )


and the error by g++ - (using make)
error: conversion from...
Forum: C++ Nov 7th, 2007
Replies: 3
Views: 597
Posted By FireSBurnsmuP
The reason I'm using these formats is that they're a good place to start off. I'll eventually make this program able to handle many types of pictures, but I've got to start somewhere ^_^

Alright,...
Forum: C++ Nov 5th, 2007
Replies: 3
Views: 597
Posted By FireSBurnsmuP
Alright, I'm developing a program that is going to take in .pbm image files, manipulate them, and output them in .ppm (P3) format.

That's all fine and good; I've got that down.
However, I'm...
Forum: C++ Apr 24th, 2007
Replies: 18
Views: 1,975
Posted By FireSBurnsmuP
I dunno about that... do windoze systems come with compilers on them? If your school uses macs then you might be in business, but I don't think windoze comes with any c++ compilers.

And when I...
Forum: C++ Apr 24th, 2007
Replies: 8
Views: 4,737
Posted By FireSBurnsmuP
Alright, I managed to figure out that 1) my map files might have extra spaces, causing me to have some columns (lines) that have an empty index.
2) the backwards vector was all I needed, my board is...
Forum: C++ Apr 23rd, 2007
Replies: 8
Views: 4,737
Posted By FireSBurnsmuP
Oh, crap. Yeah I ALWAYS mistype that header, and I guess I did forget the vector library, too. My bad.

I know some things are a bit strange... I will try the getline( cin , fileName ); bit, but...
Forum: C++ Apr 23rd, 2007
Replies: 8
Views: 4,737
Posted By FireSBurnsmuP
Salem: The first one does crash before execution of the line function( fileName );. I tested by putting a cout before the function call. The second doesn't crash.

Alright, well let's see here... I...
Forum: C++ Apr 23rd, 2007
Replies: 8
Views: 4,737
Posted By FireSBurnsmuP
Infarction: Well, there's not much necessary, but here's the code that gave the error.
#include <iostream>
#include <string>
#include <sstream>
#include <ifstream>
#include "function.h" /* for...
Forum: C++ Apr 23rd, 2007
Replies: 8
Views: 4,737
Posted By FireSBurnsmuP
c++, Debian linux system, g++ compiler

Alright, I have a serious problem. I keep getting a segmentation fault everytime cin recieves a string with a period in it and stores it into a string. I...
Forum: C++ Apr 22nd, 2007
Replies: 5
Views: 13,924
Posted By FireSBurnsmuP
Sorry for ressurrecting this thread, but Can you guys explain why Wolf's solution works? Like, explain what's going on?
Forum: C++ Feb 5th, 2007
Replies: 3
Views: 1,275
Posted By FireSBurnsmuP
Well... I killed windoze. It displeased me greatly. I can look into it on google, and in adept, but any Linux tools available?
(I always come here first, because it is so much easier to get help...
Forum: C++ Feb 5th, 2007
Replies: 3
Views: 1,275
Posted By FireSBurnsmuP
Well, I guess I'm just here out of curiosity. I would like to know how one would go about outputting an image file.

I thought that maybe you could declare an ifstream, and try to read it in, but I...
Forum: C++ Dec 5th, 2006
Replies: 10
Views: 2,260
Posted By FireSBurnsmuP
Oh, ok. So it really doesn't matter what that says as long as it isn't also defined somewhere else. Well thanks, guys.
Forum: C++ Dec 5th, 2006
Replies: 10
Views: 2,260
Posted By FireSBurnsmuP
wow, thanks. Now I get it, it's the decimal values.

while I'm at it, for the #ifndef stuff, should I be putting the class name in there instead of a TGA_H? I thought I had seen it done that way...
Forum: C++ Dec 5th, 2006
Replies: 10
Views: 2,260
Posted By FireSBurnsmuP
oh... yep. That's a pretty typical typo with me.

The while ( In == NULL ) loop actually works perfectly. That's how I've always done that.

I never did understand the stuff to prevent the...
Forum: C++ Dec 5th, 2006
Replies: 10
Views: 2,260
Posted By FireSBurnsmuP
please god, thanks. Here's the driver:
#include <iostream>
#include <vector>
#include <fstream>
#include <string>
#include <iomanip>
using namespace std;

#include "proj11mineSweeperGame.h"
Forum: C++ Dec 5th, 2006
Replies: 10
Views: 2,260
Posted By FireSBurnsmuP
Alright, my program is giving me some serious problems. I think I have a memory leak, but I shouldn't have any.

I have ifstream In;, followed by In.open(thefile.c_str());, a series of In.get(...
Forum: C++ Dec 4th, 2006
Replies: 5
Views: 8,274
Posted By FireSBurnsmuP
thanks a lot! I do believe "I owe you one, BPS." You may have saved my life.

( and bravo on the BPS avi, I'm a pretty big fan.)
Forum: C++ Dec 4th, 2006
Replies: 5
Views: 8,274
Posted By FireSBurnsmuP
XD lol yeah I know, I don't personally use that file...

and I know, but I am making this implementation file myself, so don't I have to compile that too, in order for the program using the header...
Forum: C++ Dec 4th, 2006
Replies: 5
Views: 8,274
Posted By FireSBurnsmuP
Alright, people. I am writing a simple, command based program simulatin minesweeper, using a txt file for the map. I am getting characters and stuff in from the file, and converting them to integers...
Forum: C++ Nov 2nd, 2006
Replies: 6
Views: 4,447
Posted By FireSBurnsmuP
As for the repetition, each of those loops has to go through the vector a different way. One horizontally, one vertically, and one in both diagonal directions. I could figure it out, I can think of a...
Forum: C++ Oct 31st, 2006
Replies: 4
Views: 2,274
Posted By FireSBurnsmuP
I did notice that you did screw up the string of output, by putting quotes in the wrong places, in line 190, op=16:
cout <<"\nVolume of the Pyramid = " is what I had to change it to.

You CAN...
Forum: C++ Oct 31st, 2006
Replies: 6
Views: 4,447
Posted By FireSBurnsmuP
that's the problem. It doesn't matter what you input. the problem happens during the call to theBoard.winner(),
and it doesn't matter what you input. It has something to do with the winner function,...
Forum: C++ Oct 31st, 2006
Replies: 6
Views: 4,447
Posted By FireSBurnsmuP
Before I post the code, I will say that this is a program to allow two players to play Connect Four. if you don't know the rules, you should probably go find them on google or something.

Alrighty,...
Forum: C++ Oct 31st, 2006
Replies: 6
Views: 4,447
Posted By FireSBurnsmuP
I had to use an enumerated data type in my last program, and I couldn't get my program to stop giving me fatal run-time errors.

here is the enumerated data type:
enum piece {EMPTY, BLACK, WHITE};...
Forum: C++ Oct 23rd, 2006
Replies: 3
Views: 2,662
Posted By FireSBurnsmuP
Alright, I cannot get the getline function to work. I have iostream included, using namespace std, and here is the syntax I have down:
cin.getline(playerOne, 21);
with playerOne declared previously...
Forum: C++ Oct 17th, 2006
Replies: 2
Views: 2,128
Posted By FireSBurnsmuP
I'm trying to write a destructor function for my class type message, but I can't get the dang thing to delete strings.

So, uhm, Help!

Do I have to go through a for loop and delete each...
Forum: C++ Oct 17th, 2006
Replies: 13
Views: 3,169
Posted By FireSBurnsmuP
Well, it isn't really a good thing that and and && are the same to Dev, but it isn't really a problem if you just follow the rules of C++, now is it?

And even Visual Studio doesn't care if there...
Forum: C++ Oct 8th, 2006
Replies: 7
Views: 6,706
Posted By FireSBurnsmuP
Alrighty, got the function written, thanks!
Forum: C++ Oct 7th, 2006
Replies: 7
Views: 6,706
Posted By FireSBurnsmuP
Oh yeah, this is C++, btw, sorry not to mention that.

I didn't know about the ambiguity with cctype and iostream, that's interesting...

And I was planning on using something similar to your...
Forum: C++ Oct 6th, 2006
Replies: 7
Views: 6,706
Posted By FireSBurnsmuP
You see, I am writing a program that uses strings for input to determine things, and I don't want it to be case sensitive.

So, I know you can go through a string and go char by char to store each...
Forum: C++ Sep 22nd, 2006
Replies: 7
Views: 6,485
Posted By FireSBurnsmuP
In my experience, you could start out with a C++ For Dummies, they are actually quite helpful.
Another you could try is (my actual textbook for class) Absolute C++ by Walter Savitch (second...
Forum: C++ Sep 22nd, 2006
Replies: 3
Views: 1,276
Posted By FireSBurnsmuP
In the prompt for user starting over, your bool finished is assigned true if they want to continue. Although this works, you might consider renaming it to bool continue, just for clarity's sake.
...
Showing results 1 to 40 of 43

 


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

©2003 - 2009 DaniWeb® LLC