Search Results

Showing results 1 to 40 of 118
Search took 0.02 seconds.
Search: Posts Made By: chococrack
Forum: C++ Jan 11th, 2009
Replies: 4
Views: 450
Posted By chococrack
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
Posted By chococrack
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
Posted By chococrack
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
Posted By chococrack
Post your code.
Forum: C++ Dec 3rd, 2008
Replies: 21
Views: 1,669
Posted By chococrack
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
Posted By chococrack
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
Posted By chococrack
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
Posted By chococrack
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
Posted By chococrack
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
Posted By chococrack
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
Posted By chococrack
try returning ' ' instead of " ", don't know why but something tells me it might work
Forum: C++ Nov 19th, 2008
Replies: 10
Views: 628
Posted By chococrack
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
Posted By chococrack
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
Posted By chococrack
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
Posted By chococrack
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
Posted By chococrack
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
Posted By chococrack
A common main function appears as

int main()
{
// code
return 0;
}


Yours appears like this:
Forum: C++ Nov 19th, 2008
Replies: 9
Views: 452
Posted By chococrack
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
Posted By chococrack
i = test->info->returnCustomerID();


Did you ever declare 'i' ?
Forum: C++ Nov 8th, 2008
Replies: 14
Views: 1,465
Posted By chococrack
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
Posted By chococrack
Forum: C++ Oct 31st, 2008
Replies: 11
Views: 2,523
Posted By chococrack
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
Posted By chococrack
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
Posted By chococrack
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
Posted By chococrack
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
Posted By chococrack
#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
Posted By chococrack
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
Posted By chococrack
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
Posted By chococrack
Check your braces. There are problems with them.
Forum: C++ Oct 30th, 2008
Replies: 8
Views: 591
Posted By chococrack
That is fairly obvious.
Forum: C++ Oct 30th, 2008
Replies: 8
Views: 591
Posted By chococrack
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
Posted By chococrack
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
Posted By chococrack
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
Posted By chococrack
Running this code

//============================================================================
// Name : mashley09_daniweb.cpp
// Author : chococrack
// Version : 1.0...
Forum: C++ Oct 25th, 2008
Replies: 5
Views: 409
Posted By chococrack
Well it's dead obvious... theres a SMILEY FACE IN YOUR CODE! o.0
Forum: C++ Oct 25th, 2008
Replies: 8
Views: 550
Posted By chococrack
cin >> name >> lastname;

would work just fine too
Forum: C++ Oct 25th, 2008
Replies: 3
Views: 516
Posted By chococrack
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
Posted By chococrack
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
Posted By chococrack
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
Posted By chococrack
//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;
}
Showing results 1 to 40 of 118

 


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

©2003 - 2009 DaniWeb® LLC