- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
28 Posted Topics
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 … | |
Re: 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 … | |
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 … | |
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 … | |
Re: 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 … | |
Re: 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 … | |
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 … | |
Re: 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. | |
Re: [url]http://www.minich.com/education/wyo/cplusplus/cplusplusch10/getfunction.htm[/url] google is your friend. | |
Re: [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.. | |
Re: 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. | |
![]() | Re: 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 … |
Re: A void function receives values just like any other function, it just doesn't return any. | |
Re: 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 … | |
Re: [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? | |
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 … | |
Re: 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++) … | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: When do you get the error? Also, could you please use the CODE tags from now on? | |
Re: 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, … | |
Re: 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 … | |
Re: 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. | |
Re: 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 … |
The End.