Forum: C++ Nov 23rd, 2008 |
| Replies: 1 Views: 1,708 A fun little program that uses your internal motherboard speaker or "Beep" speaker and your keyboard to make a musical instument very similar to a musical KeyBoard. |
Forum: C++ Jan 17th, 2008 |
| Replies: 14 Views: 2,586 This is a nice idea, but you should know that you're noy gonig to get any help just by asking, you need to show some effort. So how about you make a program up as best as you can and we can help.... |
Forum: C++ Jan 17th, 2008 |
| Replies: 1 Views: 1,931 The easiest way that I've seen to make sounds with C++ is with Beep (frequency,duration); But, I've run into a snag. This command only outputs to the internal speaker which was all good on my old... |
Forum: C++ Jan 15th, 2008 |
| Replies: 14 Views: 2,628 I have Windows Vista and my compiler is Dev-Cpp. What is the stderr output stream? |
Forum: C++ Jan 14th, 2008 |
| Replies: 14 Views: 2,628 I was just wondering if there was another way to out put text besides cout? I know this probablt sounds weird because cout works perfectly fine and stuff, but I just want to know if all of the... |
Forum: C++ Jan 14th, 2008 |
| Replies: 15 Views: 3,308 #include <iostream>
#include <string>
using namespace std;
int main ()
{
string ques = "\0";
int yes; // to keep track of yes answers
int no; // to keep track of no answers |
Forum: C++ Jan 14th, 2008 |
| Replies: 14 Views: 3,659 So once I open it how do I know whats in it? Do I have to declare std::functionname (); for that object to be in the box? |
Forum: C++ Jan 14th, 2008 |
| Replies: 14 Views: 3,659 Yeah I just forgot to put using namespace std;, which would open the box, right? |
Forum: C++ Jan 14th, 2008 |
| Replies: 14 Views: 3,659 So, what does it mean to say std::pause? |
Forum: C++ Jan 14th, 2008 |
| Replies: 14 Views: 3,659 Excuse me for sounding like a total noob here for a second, but what is a "console namespace". To tell you the truth I've been writing: using namespace std; at the beginning of all of my programs for... |
Forum: C++ Jan 14th, 2008 |
| Replies: 16 Views: 1,742 Yeah, I does, that's why I sent her a PM appologizing and saying something to the same effect. ^_^ |
Forum: C++ Jan 14th, 2008 |
| Replies: 14 Views: 3,659 Yeah, I know, but I couldn't think of anything short and descriptive. XD Do you have any seggestions for a better name? |
Forum: C++ Jan 14th, 2008 |
| Replies: 15 Views: 3,308 You're welcome, but you should take a look at my new thread about replacing system("pause");, trust me it's a bad habbit to pick up!! =] |
Forum: C++ Jan 14th, 2008 |
| Replies: 14 Views: 3,659 I hear alot of people saying not use:
system("pause");
system("cls");
system("title");
I think you get what I mean, so I'm trying to make functions that will replace all of these, and for... |
Forum: C++ Jan 14th, 2008 |
| Replies: 15 Views: 3,308 Ok, so yeah the tallying is really easy.
#include <iostream>
#include <string>
using namespace std;
int main () |
Forum: C++ Jan 14th, 2008 |
| Replies: 15 Views: 3,308 Okay, a few things here.
1 What compiler and OS are you using.
2 You've over complicated this too much. You don't need the
std::string baby1_yes = "yes";
std::string baby1_no = "no";
Instead... |
Forum: C++ Jan 14th, 2008 |
| Replies: 15 Views: 3,308 Show me what you have for code and I'll help you develop it more. Remember that help is only given if you show that you actually want to do some work. ^_^ |
Forum: C++ Jan 14th, 2008 |
| Replies: 16 Views: 1,742 Yes, Narue I do, but I'm not going to argue this with you as you always so to end up with person attacks instead of proffesional advice. As for peeta, if you just just look at the bottom of the... |
Forum: C++ Jan 14th, 2008 |
| Replies: 16 Views: 1,742 Oh, thanks!! ^_^ I've always wondered why people told me not to use it. But seriously, most people (that I know anyways) use windows. I know one person who uses Linux and the only place that I ever... |
Forum: C++ Jan 14th, 2008 |
| Replies: 16 Views: 1,742 If you're using Dev-C++ or a similer compiler on a computer running windows as an OS, and the output somes up in a cprompt window, then you can use:
system("cls");
For some reason people... |
Forum: C++ Jan 12th, 2008 |
| Replies: 4 Views: 794 Thanks, it worked perfectly, but what is the sizeof function? |
Forum: C++ Jan 12th, 2008 |
| Replies: 4 Views: 794 Thanks for the correction of the code syntax and I'll try these and get back to you!! =] |
Forum: C++ Jan 12th, 2008 |
| Replies: 4 Views: 794 I'm trying to write some code that will take each individual part of a 2D array and put it into the same part of a different array. Here's the code, tell me what you think!! ^_^ Thanks in advance for... |
Forum: C++ Jan 10th, 2008 |
| Replies: 6 Views: 3,211 Thank you for the help Ancient Dragon, but I guess I didn't explain my problem correctly. I've figured out and tested a solution that work for what I need. For the problem I had the for loops would... |
Forum: C++ Jan 9th, 2008 |
| Replies: 6 Views: 3,211 Thanks for the help from both of you, and sorry about writing "\0". I kind of wrote it quickly and forgot to use single quotes. Also thanks for informing me that '\0' only clears the first byte, that... |
Forum: C++ Jan 9th, 2008 |
| Replies: 6 Views: 3,211 Does anyone know how to use a for loop to clear a 2D array? To clear a 1D array, for example you might do this:
char array[10];
for (int ct; ct<=10; ct++)
{
array[ct] = "\0";
} |
Forum: C++ Dec 25th, 2007 |
| Replies: 9 Views: 1,459 I think it's a console program.
I don't have any code trying to show this yet because everytime I copy and past the character into a "cout" statement it just shows up as a questionmark. |
Forum: C++ Dec 24th, 2007 |
| Replies: 9 Views: 1,459 If A is the letter that you are finding the integer of then how am I suppose to find the interger for a character that I can't input? |
Forum: C++ Dec 24th, 2007 |
| Replies: 9 Views: 1,459 I don't think I understand. In the example you show are you showing how to find the integer of the character A? |
Forum: C++ Dec 24th, 2007 |
| Replies: 9 Views: 1,459 I want to how to use a character that isn't on the keyboard in the out put of my program. I've gone into eudcedit.exe to create characters that I want to use in my program and saced them under the... |
Forum: C++ Dec 11th, 2007 |
| Replies: 13 Views: 4,930 Thanks Duoas, but system() still seems to be a very strong function to me. It just seems a little to useful for me to give up just yet. But I'll try to avoid using it as I advance my programming. ^_^ |
Forum: C++ Dec 11th, 2007 |
| Replies: 13 Views: 4,930 Well way to shoot me down off of my pedastal, thanks guys. >.< |
Forum: C++ Dec 11th, 2007 |
| Replies: 13 Views: 4,930 I just wanted to start a list of system(" ") funtions. I'll write all of the ones I know and if you know any more please post them. Thanks for contributing!!! ^_^
system("pause"); - This displays... |
Forum: C++ Dec 11th, 2007 |
| Replies: 5 Views: 683 Do you know cout or other out put? If so you could do a text based RPG or a quiz game. |
Forum: C++ Dec 11th, 2007 |
| Replies: 7 Views: 4,463 If your question wasn't already answered by Ancient Dragon, and you're using text, then try using system("cls"); this should work to clear the screen. |
Forum: C++ Dec 11th, 2007 |
| Replies: 4 Views: 1,731 Yes, do you have the code for all of the keys? |
Forum: C++ Dec 11th, 2007 |
| Replies: 4 Views: 1,731 Does anyone have a list or know how I can get a list of the bit addresses of keys used in the getch (); fuction.
For example:
F1 is 59
F2 is 60
F3 is 61
F4 is 62
F5 is 63
etc. |
Forum: C++ Dec 11th, 2007 |
| Replies: 3 Views: 4,868 This program uses snipets from a couple of other programs that I put together in order to make a program that displays the time and date and refreshes the time and date every second. I commented... |
Forum: C++ Dec 2nd, 2007 |
| Replies: 4 Views: 1,044 Thanks, and it mostly does make sense to me, but I've only been programming for a year and a half so it's not all completely clear. The actual application I was hoping to use to console windows for... |
Forum: C++ Dec 2nd, 2007 |
| Replies: 4 Views: 1,044 I'm using Dev-C++ and my OS is Windows Vista. The output for my programs comes up in a single Cprompt window. What I would like to know is if there is any way to have two or more Cprompt windows to... |