Forum: C++ Jan 11th, 2009 |
| Replies: 4 Views: 450 Referencing the link: http://www.vbforums.com/showthread.php?t=527469
MatEpp's comment lead me to a working solution.
the actual code which eliminates the sound for me is as follows:
if... |
Forum: C++ Jan 8th, 2009 |
| Replies: 4 Views: 450 It's not so much a beep as it is an event sound. I'm writing this for a person who will be running this on his own machine, so disabling the windows sounds is not an option. It sounds as though... |
Forum: C++ Jan 7th, 2009 |
| Replies: 4 Views: 450 I am having trouble finding out info regarding how to stop my application from "Beeping" every time I change focus with the "ENTER" key.
For the sake of clarity here is the specific action and... |
Forum: C++ Dec 4th, 2008 |
| Replies: 6 Views: 501 |
Forum: C++ Dec 3rd, 2008 |
| Replies: 21 Views: 1,669 Also, whats the value of strlen(customer) at that point? Make sure its not falling off the array (just as an extra thing to look at possibly). |
Forum: C++ Dec 3rd, 2008 |
| Replies: 21 Views: 1,669 Well thats not very nice of it then :<
What class is getData function in and what does it look like? |
Forum: C++ Dec 3rd, 2008 |
| Replies: 13 Views: 628 When I want to thoroughly test something I take it one TINY step at a time, but that might have a lot to do with my OCD :D
I would worry about the first step, ensure that works fine, then move on... |
Forum: C++ Dec 3rd, 2008 |
| Replies: 21 Views: 1,669 If its just a problem with retreiving the private member, why not just create a public function within that class to grab the private value and return it:
int getPrivateThingy()
{
return... |
Forum: C++ Dec 3rd, 2008 |
| Replies: 21 Views: 1,669 http://msdn.microsoft.com/en-us/library/6decc55h(VS.80).aspx
So meh.. wants us to look at parameters first I take it |
Forum: C++ Dec 3rd, 2008 |
| Replies: 4 Views: 1,104 define total = 0
define array[n] = {n1, n2, n3, n4, ...}
for 0 to n - 1
total = total + array[n]
print 'Average: '
print total / n
end |
Forum: C++ Dec 3rd, 2008 |
| Replies: 21 Views: 1,669 try returning ' ' instead of " ", don't know why but something tells me it might work |
Forum: C++ Nov 19th, 2008 |
| Replies: 10 Views: 628 alrighty, so with those specific numbers the output looks like this:
How many colors will there be? 3
How many rounds? 5
How many assemblers/painters? 3
Enter start state for game (make... |
Forum: C++ Nov 19th, 2008 |
| Replies: 10 Views: 628 I was prepared for the possibility that they would solve nothing. Alright I'm going to look at your code a little bit more and see if I can find anything else. |
Forum: C++ Nov 19th, 2008 |
| Replies: 21 Views: 32,338 Don't know how useful this is to anyone else, but I made a pdf set up for easy reading on my Irex Iliad digital book reader. I'm sure some of you have some Kindles or Sony Readers or whatever.
... |
Forum: C++ Nov 19th, 2008 |
| Replies: 10 Views: 628 Plu-cha... before I go diving into analyzing 2d arrays and such, I want to see if maybe the following easy fixes help anything:
-- Semi-colons.
while(roundNum<column)
{
cout<<"Enter... |
Forum: C++ Nov 19th, 2008 |
| Replies: 2 Views: 283 I get lots of pretty output, (gcc compiler):
#include<iostream.h>
While it does not really matter if your compiler supports this, its usually a better idea to use the most recent... |
Forum: C++ Nov 19th, 2008 |
| Replies: 9 Views: 452 A common main function appears as
int main()
{
// code
return 0;
}
Yours appears like this: |
Forum: C++ Nov 19th, 2008 |
| Replies: 9 Views: 452 int recursiveGCD(int ,int );
int iterativeGCD(int ,int );
int input;
The first two are fine (function prototypes).
However the last line
int input;
when I was first reading I was... |
Forum: C++ Nov 19th, 2008 |
| Replies: 14 Views: 630 i = test->info->returnCustomerID();
Did you ever declare 'i' ? |
Forum: C++ Nov 8th, 2008 |
| Replies: 14 Views: 1,465 A good way to go about it sometimes is to only consider the first error line. And then if you can't solve that look at the next line and see how that error might relate to the previous one.
You... |
Forum: C++ Nov 7th, 2008 |
| Replies: 4 Views: 2,850 |
Forum: C++ Oct 31st, 2008 |
| Replies: 11 Views: 2,523 for ( int b=x;b>=0;b--)
{
for (int z=1;z<=b;z++)
{
cout<<"a";
}
<<endl
cout
} |
Forum: C++ Oct 31st, 2008 |
| Replies: 11 Views: 2,523 get input height
nunmberOfBlanks = height - 1
numberOfX = 1
level = 1
for 1 to height
for 1 to numberOfBlanks
print " "
endfor
for 1 to numberOfX
... |
Forum: C++ Oct 31st, 2008 |
| Replies: 11 Views: 2,523 A pyramid such as that grows at a rate of (2x - 1), or one less than 2 times x.
***X 2*1 = 2 -1 = 1
**XXX 2*2 = 4 - 1... |
Forum: C++ Oct 31st, 2008 |
| Replies: 10 Views: 1,302 I have a tendency to work away from Visual C++, no idea why. I think its not aesthetically pleasing enough for me and I find it a bit cumbersome.
I usually work with Notepad++ for small pieces of... |
Forum: C++ Oct 31st, 2008 |
| Replies: 10 Views: 1,302 #include <iostream>
using namespace std;
bool Palindrome(string pal, int index, int length)
{
while(index < length)
{
if (length == 0 || length == 1) |
Forum: C++ Oct 31st, 2008 |
| Replies: 3 Views: 406 Don't ever ever try to get cute with your code. Professors really seriously hate that. |
Forum: C++ Oct 31st, 2008 |
| Replies: 6 Views: 535 Heres some great links;
http://www.wikihow.com/Find-Motivation-to-do-Homework
http://www.macs.hw.ac.uk/~pjbk/pathways/cpp1/node42.html
And a possible followup link:... |
Forum: C++ Oct 31st, 2008 |
| Replies: 2 Views: 310 Check your braces. There are problems with them. |
Forum: C++ Oct 30th, 2008 |
| Replies: 8 Views: 591 |
Forum: C++ Oct 30th, 2008 |
| Replies: 8 Views: 591 Well here's the deal. I got really interested in programming around 12 years old or so. I was unable to teach myself, but I still had a bunch of books. I get older, join the military, serve 6... |
Forum: C++ Oct 30th, 2008 |
| Replies: 8 Views: 591 I read a post earlier about C++ books and whatnot.
I have a few books from my yesteryears (10-13 years ago) on C++ mostly. How useful would these books be in terms of the language as it has... |
Forum: C++ Oct 30th, 2008 |
| Replies: 9 Views: 658 I have a 10+ year old Accelerated C++ book covered in oil in the trunk of my car. Want it? :D |
Forum: C++ Oct 26th, 2008 |
| Replies: 9 Views: 681 Running this code
//============================================================================
// Name : mashley09_daniweb.cpp
// Author : chococrack
// Version : 1.0... |
Forum: C++ Oct 25th, 2008 |
| Replies: 5 Views: 409 Well it's dead obvious... theres a SMILEY FACE IN YOUR CODE! o.0 |
Forum: C++ Oct 25th, 2008 |
| Replies: 8 Views: 550 cin >> name >> lastname;
would work just fine too |
Forum: C++ Oct 25th, 2008 |
| Replies: 3 Views: 516 int 2dArray[4][5];
int x = 1;
for(int i=0; i<4; i++)
{
for(int j=0; i<5; i++)
{
2dArray[i][j] = x;
x++;
}
} |
Forum: C++ Oct 25th, 2008 |
| Replies: 9 Views: 562 ifstream current_file;
current_file.open(file.c_str());
// do stuff
current_file.close();
Does that work? |
Forum: Geeks' Lounge Oct 23rd, 2008 |
| Replies: 38 Views: 2,580 My purpose in life is to exist among the innately evil and innately retarded population. |
Forum: C++ Oct 23rd, 2008 |
| Replies: 4 Views: 1,501 //function prototypes
void rev_str();
double Mean(const int Data[5][4], int, int);
void frequency(const int Data[5][4], int,int);
// main
int main()
{
. . .
return 0;
} |