Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
67% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
~10.8K People Reached
Favorite Tags
c++ x 57
perl x 5

28 Posted Topics

Member Avatar for lAmoebal

I need to create a basic program for work that utilizes the snmpget command. It needs to be usable in both windows and solaris as our clients use both. What's the best snmp library to use? I tried to download a number of them but I can't even get the …

Member Avatar for vijayan121
0
4K
Member Avatar for kux

If a vector is passed by value, the data will be copied for use locally. If the vector is small, there is no problem, but if it is large, then the parameter-passing itself could consume a lot of resources. You should probably pass it by reference, and use the const …

Member Avatar for kunal kislay
0
2K
Member Avatar for lAmoebal

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 programming, and how long with C++? The reason I'm asking is I'm curious as to …

Member Avatar for stephen84s
0
362
Member Avatar for lAmoebal

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 array of 16. Then another 4 …

Member Avatar for Ancient Dragon
0
142
Member Avatar for big24fan

You need to use cin.getline in order to include the spaces. Here's a tutorial on it. [url]http://www.cplusplus.com/reference/iostream/istream/getline.html[/url] strlen is also a Cstring function, so instead of string, you would need to include string.h. Then after setting L = strlen(Fname), in your cout statement, you can just cout L, rather than …

Member Avatar for buddy1
0
163
Member Avatar for sisi

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 change [code] sum=sum+(2*counter-1); [/code] to [code] if (counter%2 != 0) { sum = sum + counter; } [/code] If you …

Member Avatar for lAmoebal
0
79
Member Avatar for lAmoebal

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 (0x0150002). Click on OK to terminate the application." I've installed the Microsoft …

Member Avatar for Ancient Dragon
-1
236
Member Avatar for Yaka

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 than int.

Member Avatar for mitrmkar
0
332
Member Avatar for amitahlawat20

[url]http://www.minich.com/education/wyo/cplusplus/cplusplusch10/getfunction.htm[/url] google is your friend.

Member Avatar for henpecked1
0
83
Member Avatar for IT Girl

[QUOTE]try to put this function instead of the last one printcheck. may be the reply is too late but it could be useful for others. best regards[/QUOTE] Only about a year late..

Member Avatar for lAmoebal
0
451
Member Avatar for c++noob

I think you meant this, rather than what you had. [code] divisor=pow ((rate+1),(numberofpayments)); [/code] If this doesn't fix it, let me know. I only looked at that line, and not at the rest of your code.

Member Avatar for lAmoebal
0
142
Member Avatar for nani_amb

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 copy the error exactly please? Also - You never read in choice, so it's always …

Member Avatar for amitahlawat20
0
115
Member Avatar for dreamgirl
Re: Help

A void function receives values just like any other function, it just doesn't return any.

Member Avatar for Lerner
0
84
Member Avatar for jeffige

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 you're looking for a class on it, I'd say only take that class if it's …

Member Avatar for lAmoebal
0
120
Member Avatar for Havik82

[QUOTE=technogeek_42;556717]i have one of that do you that just mail me or help me in my problem.... diz my e-add <snipped email>[/QUOTE] Is this English?

Member Avatar for technogeek_42
0
178
Member Avatar for lAmoebal

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 my coworkers had a really basic script that I've been trying to …

Member Avatar for lAmoebal
0
171
Member Avatar for ckins

Putting your code in the [code] tags for readability. [code=cpp] #include <iostream> //put additional include lines here as needed //include <packageName> using namespace std; int cardNums(int array[5][5]) char bingoGrid(char bingoCard[5]) { char bingoCard[5] {'B', 'I', 'N','G', 'O' } { int array[6][5]; for(int i = 0 ;i < 15 ; i++) …

Member Avatar for VernonDozier
0
288
Member Avatar for cosmos22

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 assume that the playsound command doesn't just cause the program to hang there until it's …

Member Avatar for cbattagler
0
148
Member Avatar for digitz101

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.

Member Avatar for Joatmon
0
931
Member Avatar for digitz101

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 for, but remember to subtract one since the array …

Member Avatar for lAmoebal
0
93
Member Avatar for cosmos22

Are you just trying to implement a simple sort of calendar program where the user enters a date and it says what information that is entered for that date, or are you trying to actually have the system automatically perform tasks once it reaches that date the user has entered …

Member Avatar for lAmoebal
0
82
Member Avatar for purepecha

Correct me if I'm wrong, but it seems as though this is just the code that the professor gave to you, and it's all written out what to do in comments. Take a stab at it before just posting here and trying to get a solution.

Member Avatar for ithelp
0
111
Member Avatar for Exo1337

Prompts the user to input 2 integers firstNum and secondNum // Easy Output all odd numbers between firstNum and secondNum // No idea how to start that. Outputs the sum of all even numbers between firstNum and secondNum Output the numbers and their squares between 1 and 10 Output the …

Member Avatar for carnage
0
211
Member Avatar for Exo1337

When do you get the error? Also, could you please use the CODE tags from now on?

Member Avatar for Exo1337
0
108
Member Avatar for Lalarukh khalid

The only way to get better at programming is to work at it really. You can know every last piece of syntax, but if your logic is flawed, your programs will never run. And the reverse applies too. The only way to get better at either is to just practice, …

Member Avatar for lAmoebal
0
154
Member Avatar for hyperzero4

In order to make a function that repeats over and over again, you'll just need to loop it until a certain condition. In your case, until a space is found. You could accomplish this with a do/while or a while loop. You can nest a loop inside of the main …

Member Avatar for lAmoebal
0
113
Member Avatar for Lutzee

I'm not sure how to do directly what you asked but if you put the information into a database, you can easily pull the information back out and populate the form with it using PHP.

Member Avatar for Ancient Dragon
0
85
Member Avatar for shadowfire36

As far as the problem with re-entering the name if they messed up, just put a do/while loop around where they enter the name, like below. [code=cpp] char ans="n"; do { cout << " Please Enter Your Fighters Name: " << endl; cin >> playerName; cout << "You have entered …

Member Avatar for lAmoebal
0
116

The End.