Showing results 1 to 40 of 63
Search took 0.01 seconds.
Posts Made By: lAmoebal
Forum: C++ Apr 21st, 2008
Replies: 5
Views: 581
Posted By lAmoebal
Re: Copying an Array

Doing your previous example, I would still need to go through each index in the array, wouldn't I? Unless I'm just misunderstanding. What I ultimately want to do is take 4 bytes and put them in 0-3,...
Forum: C++ Apr 21st, 2008
Replies: 5
Views: 581
Posted By lAmoebal
Re: Copying an Array

Thanks Ancient Dragon,
That seemed to get rid of my runtime errors, but it still doesn't seem to be filling the array with the correct values. Could you take a look at how I'm doing it and tell me...
Forum: C++ Apr 21st, 2008
Replies: 5
Views: 581
Posted By lAmoebal
Copying an Array

Is there a way to copy a whole smaller array into a section of a larger array? For example, if I have an array of 4 characters, and an array of 16, can I copy the 4 characters into the first 4 of the...
Forum: C++ Mar 20th, 2008
Replies: 1
Views: 146
Posted By lAmoebal
Re: Hello

I'm not sure I completely understand your question. Are you trying to add just the odd numbers up until a certain value? If that's the case, in your while loop...
Forum: C++ Mar 20th, 2008
Replies: 7
Views: 381
Posted By lAmoebal
Re: I need some help with C++ bad.

You need to use cin.getline in order to include the spaces. Here's a tutorial on it.

http://www.cplusplus.com/reference/iostream/istream/getline.html


strlen is also a Cstring function, so instead...
Forum: C++ Mar 19th, 2008
Replies: 2
Views: 1,425
Posted By lAmoebal
The application failed to initialize properly (0x0150002).

Hey guys, I have a problem. When I try to run a program that I've compiled with VS 2005 on a different machine that does not have VS, I get this error.

"The application failed to initialize properly...
Forum: C++ Mar 14th, 2008
Replies: 2
Views: 410
Posted By lAmoebal
Re: need help in cin.get

http://www.minich.com/education/wyo/cplusplus/cplusplusch10/getfunction.htm

google is your friend.
Forum: C++ Mar 14th, 2008
Replies: 5
Views: 683
Posted By lAmoebal
Re: C4715: 'isPrime' : not all control paths return a value

There's no guarantee that it will return anything because your return statements are both inside of if statements. Since you're returning true and false you could also make the function a bool rather...
Forum: C++ Mar 12th, 2008
Replies: 13
Views: 1,392
Posted By lAmoebal
Re: I need your hand

http://www.daniweb.com/forums/thread78223.html
Forum: C++ Mar 12th, 2008
Replies: 1
Views: 204
Posted By lAmoebal
Re: stuck

I think you meant this, rather than what you had.

divisor=pow ((rate+1),(numberofpayments));


If this doesn't fix it, let me know. I only looked at that line, and not at the rest of your code.
Forum: C++ Mar 12th, 2008
Replies: 13
Views: 1,392
Posted By lAmoebal
Re: I need your hand

Only about a year late..
Forum: C++ Mar 11th, 2008
Replies: 4
Views: 324
Posted By lAmoebal
Re: Help

A void function receives values just like any other function, it just doesn't return any.
Forum: C++ Mar 11th, 2008
Replies: 2
Views: 425
Posted By lAmoebal
Re: The Game Institute C++?

I can't imagine a Game Developers course for intro to C++ would be any different than any other intro to C++ course. There's plenty of online tutorials out there...like the ones mosta posted, but if...
Forum: C++ Mar 11th, 2008
Replies: 3
Views: 242
Posted By lAmoebal
Re: problem with class and switch

From just glancing over your code quickly I noticed you're missing a default for your switch. It doesn't seem like that would cause the error you're getting, but you should still fix it.

Can you...
Forum: Perl Mar 10th, 2008
Replies: 5
Views: 1,710
Posted By lAmoebal
Re: Perl SNMP Help

I see what you mean about the modules now. What I had downloaded before was Net SNMP but not the module for perl so I now am running that and am starting to get general grasp on the code. I reworked...
Forum: IT Professionals' Lounge Mar 10th, 2008
Replies: 49
Views: 4,609
Posted By lAmoebal
Re: How long have you been programming?

That sounds like exactly how I started out.

My high school offered Pascal and C++ and I started out with Pascal and then took the C++ course before I moved on to doing it in college, and now trying...
Forum: IT Professionals' Lounge Mar 10th, 2008
Replies: 49
Views: 4,609
Posted By lAmoebal
How long have you been programming?

This isn't a specific question regarding a certain program or anything, so if this is in the wrong forum, feel free to move it. :confused:

I was just curious how long everyone here has been...
Forum: C++ Mar 10th, 2008
Replies: 8
Views: 753
Posted By lAmoebal
Re: Free C++ software

Is this English?
Forum: C++ Mar 7th, 2008
Replies: 39
Views: 1,267
Posted By lAmoebal
Re: so I find myself here again

It's not unless you declared it elsewhere as one. I was going to tell you that.
Forum: C++ Mar 7th, 2008
Replies: 39
Views: 1,267
Posted By lAmoebal
Re: so I find myself here again

I believe that when you pass a 2D array you have to declare it as array[][5]...also, why did you put parens around your arrays?

Are you getting errors? What do they say?

And as Joatmon said, and...
Forum: Perl Mar 7th, 2008
Replies: 5
Views: 1,710
Posted By lAmoebal
Re: Perl SNMP Help

I already downloaded a module that allows me to use the snmp functions, but it's just a matter of implementing them correctly that I have questions about. Unless you linked something completely...
Forum: Perl Mar 7th, 2008
Replies: 5
Views: 1,710
Posted By lAmoebal
Re: Perl SNMP Help

Also, this needs to be usable in both Windows and Solaris. I'm not familiar with Solaris, but would the open file command and such work with it?

Can you append to the beginning of a file too? Since...
Forum: C++ Mar 7th, 2008
Replies: 6
Views: 510
Posted By lAmoebal
Re: .WAV file not playing to it's full extent...

Here's more information on getchar() function http://www.cplusplus.com/reference/clibrary/cstdio/getchar.html

But basically it hangs there until the user presses enter. So it's more or less a 'Press...
Forum: C++ Mar 7th, 2008
Replies: 6
Views: 510
Posted By lAmoebal
Re: .WAV file not playing to it's full extent...

I'm not sure how you do it in Dev C++ actually. In VS you just click the grey space beside the line you want to add a break on, and whenever the program reaches that point, it pauses it where it is,...
Forum: C++ Mar 7th, 2008
Replies: 6
Views: 510
Posted By lAmoebal
Re: .WAV file not playing to it's full extent...

I'm not familiar with the function, but maybe try adding getchar(); right before the return statement? Or add a break there and see if it reaches the break before the song finishes playing. I would...
Forum: Perl Mar 7th, 2008
Replies: 5
Views: 1,710
Posted By lAmoebal
Perl SNMP Help

Hi guys, I'm writing a simple script that uses snmpget statements to check the errors received by ports on a router and have the results going to a file. I've never worked with Perl before but one of...
Forum: C++ Mar 7th, 2008
Replies: 39
Views: 1,267
Posted By lAmoebal
Re: so I find myself here again

You could either just initialize everything to 0 before you pass it, and do the random generation in the function and replace the 0's, or you could just randomly generate the numbers before you pass...
Forum: C++ Mar 7th, 2008
Replies: 26
Views: 2,201
Posted By lAmoebal
Re: SNMP Libraries

Alright yeah, I'll probably just look into doing that and scrapping this whole snmp library thing. It's caused me nothing but problems since I've been trying to get a number of them working....
Forum: C++ Mar 7th, 2008
Replies: 39
Views: 1,267
Posted By lAmoebal
Re: so I find myself here again

It's a little off. If you're going to pass an array in to the function, that's one thing, but if you do that, don't redeclare the array as you do on line 21. And if you're passing it in, you need to...
Forum: C++ Mar 7th, 2008
Replies: 26
Views: 2,201
Posted By lAmoebal
Re: SNMP Libraries

Yeah, there was a really basic PERL script that another guy here wrote a few months back which did the general thing that was wanted but since I've never worked with PERL I thought porting the script...
Forum: C++ Mar 7th, 2008
Replies: 3
Views: 390
Posted By lAmoebal
Re: SCORING SYSTEM C++

You'd probably get better results if you made your whole post Bold, Italic, Underlined, and Bright Red. That way people know you mean business.
Forum: C++ Mar 7th, 2008
Replies: 1
Views: 222
Posted By lAmoebal
Re: C++ PROBLEMS

1.) You want to create an array with 7 values (0-6) and fill it in a for loop. Then you can put the user question in a while loop. ie. while(ans!="No") and just pull which part of the array they ask...
Forum: C++ Mar 7th, 2008
Replies: 26
Views: 2,201
Posted By lAmoebal
Re: SNMP Libraries

I got the snmp++.lib to finally compile but it's only in the debug folder. Is this correct? My main program is still plagued with a bunch of linker errors.


The thing that sucks is our hardware...
Forum: C++ Mar 7th, 2008
Replies: 39
Views: 1,267
Posted By lAmoebal
Re: so I find myself here again

Judging from your error I'd say it's because you don't have the brackets for the function on line 8. Since you're not ready to use it yet, just comment that line out and see if it compiles.
Forum: C++ Mar 7th, 2008
Replies: 39
Views: 1,267
Posted By lAmoebal
Re: so I find myself here again

For one thing, it will probably complain about not having the brackets by the funtion on line 7. Even if nothing is being done in the function you need the open/close brackets and probably the return...
Forum: C++ Mar 7th, 2008
Replies: 39
Views: 1,267
Posted By lAmoebal
Re: so I find myself here again

Putting your code in the tags for readability.

[code=cpp]
#include <iostream>
//put additional include lines here as needed
//include <packageName>

using namespace std;

int cardNums(int...
Forum: C++ Mar 7th, 2008
Replies: 3
Views: 336
Posted By lAmoebal
Re: Using the time and date?

Unfortunately I'm not sure how to help you, but I think the loop idea is probably a bad one. Wouldn't that just eat up a bunch of system resources? You could maybe do a check every 5 minutes or...
Forum: C++ Mar 7th, 2008
Replies: 26
Views: 2,201
Posted By lAmoebal
Re: SNMP Libraries

I got these two errors when I tried to compile
C:\snmp_files\msvc\static\snmp++\snmp++.vcproj in visual c++ 2005.

1>..\..\..\snmp++\src\uxsnmp.cpp(719) : error C2065: 'm_hThread' : undeclared...
Forum: C++ Mar 6th, 2008
Replies: 17
Views: 1,268
Posted By lAmoebal
Re: While Loop Problem, Need Help!

#include <iostream>

using namespace std;

int main()
{
int i;
int firstNum, secondNum;
int evensum = 0;
int oddsum = 0;
Forum: C++ Mar 6th, 2008
Replies: 26
Views: 2,201
Posted By lAmoebal
Re: SNMP Libraries

Thanks, I'll try that when I get back to work tomorrow and let you know how it works out.
Showing results 1 to 40 of 63

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 1:40 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC