- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 22
- Posts with Upvotes
- 22
- Upvoting Members
- 6
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Sr. Software Engineer
Here's a question for you: I often use remote desktop to connect to my office pc. Often times, I'm writing a document on the office pc and I need to include a screenshot of an application etc. Over RDP, how do I make the office pc take a screen shot … |
|
Is there a standard algorithm that can take the output of difftime (which is in seconds) and use it to print out the number of minutes, hours, days, weeks, etc.? I was going to try and calculate this myself by using the modulo, etc. but thought that something might pre-exist.. |
|
Re:
Below is my code for printing prime numbers up to a given input by user. However, my calculations are not working correctly and my output is printing twice. Any idea? :sad: #include <iostream> #include <cmath> using namespace std; void prime_num(int); int main() { cout << " Enter a number and … |
|
Re:
Hello ladies and gents, Was wondering if any of you could help me out, how can I count the amount of numbers(digits) there are in one integer, for example: int integer = 123; integer has three digits. int secInteger = 10; secInteger has two digits. The reason for asking is, … |
|
Re:
Can't seem to figure this out. [CODE] string *array; void addNodes(string names[]) { array = names; //how many elements in the array??? } [/CODE] |
|
Re:
hello! I need a program that validates the imput of dates. (Checks for leap years etc.) The user enters: mm/dd/yyyy The problem is, I have trouble with complex programs. I came up with this program, but i know it's too basic for what she wants. I need to have arrays … |
|
Hi Guys, So I'm trying to experiment with threads, though I'm running into some problems. Basically I'm trying to create multiple threads, where each thread is passed a different set of data. In my small example below, I'm starting off with a vector<string> of data. Each element of the vector … |
|
Re:
I HAVE LOADED ORACLE 8i ON WINDOWS XP. IT HAD LOADED SUCCESSFULLY AND I HAD WORKED ON IT. BUT ON NEXT REBOOT WINDOWS IS NOT ABLE TO START THE SERVICE CALLED OracleServiceORCL. WHEN I TRY TO START IT AGAIN IT ENDS WITH AN [quote] ERROR:- Could not start the OracleServiceORCL … |
|
Re:
Hmm I was lookin through a recursion program in this book i have here and the only thing I'm having trouble with is the modulus operator. I know that it returns the remainder of 2 numbers. But, suppose I have this: x % y If x > y then the … |
|
Re:
I am a brand new programmer (took a semester of it during the winter at college) and it really kicked my butt. I want to major in computer science, so i know that i'll be taking a lot of programming classes and will need to better all of my skills. … |
|
Re:
i want to generate non repeated random numbers from 0 to 156. here is the code for the purpose. but when i try to generate the random numbers more then 1 time by using a for loop, the same pattern on numbers repeats. how to solve this problem ? #include … |
|
I am trying to write a variable argument function on SUN solaris. According to MSDN, the _vscprintf function that I'm using on windows should work on unix as ANSI is listed. [b]_vscprintf[/b]<stdio.h>ANSI, Win 98, Win Me, Win NT, Win 2000, Win XP [size=2]However, including stdio.h doesn't seem to help. Is … |
|
I sometimes get a lot of traffic from certain ip's that are clearly trying to break in/snoop. Is there a way in IIS to block access for certain ip's? (or ranges?). I can do this in my ftp server software (non IIS)... |
|
Re:
how to check there exist number in string using isalpha.if number exist, display "only alphabetic,please input again" example : user input = i had to 2 number |
|
Re:
Here is my code : #include <iostream.h> int main (int argc, char * argv[]) { struct { short Signture; long FileSize; short Reserved1; short Reserved2; long ImgDataStartOff; long InfoHeaderSize; long Width; long Height; short Planes; short NumbOfPix; long Compression; long SizeOfImgData; long HRes; long VRes; long NumOfCol; long NumOfImpCol; } … |
|
Re:
Ok, I'm probly going to sound like a bit of an idiot, but I'm new to the programming world. Whenever I attempt to run this program, I get a long list of error messages. //DATATYPE.CPP //Examples of variable declaration and //initialization. #include <iostream> main () { //declare a constant for … |
|
Re:
im having trouble creating a random number generator (like say a dice rolling game) if anyone could possibly show me some code for a random number generator that would be greatly appriciated :mrgreen: |
|
Re:
I have some kinda problem each time i create a vector of strings. There is no error if I create vectors of other data types such as int, double, etc. Though there's no error...but there's warnings...and sometimes the program hangs if i do sortings. Here's an (without sorting but still … |
|
Re:
Hello, I'm new to C and having this problem. What I need to do is add a single integer (0-9) to an (obviously char) string. More specifically, I want to add the value of a function that returns an integer (0-9) to a string. I don't want to change the … |
|
Re:
hi i am having a problem with this code.for every input i am getting the same answer 32.any help would be highly appreciated [CODE]/*program to find the factorial of a given number*/ #include<stdio.h> main() { int n,fact; int facto(int ); printf("\nenter the number for which you want to find the … |
|
Hi, I'm trying to write some code that will validate if we are trying to write to nfs and if so, complain. From what I've read, the stat() call populates the st_dev with value of the file system type. On an nfs mount it tells me that it's '14'. I'd … |
|
Re:
I am doing an assignment that has to use a class dayType. The program has to set the day, print the day and return the next day. I am receiving the error: --------------------Configuration: Program9 - Win32 Debug-------------------- Compiling... Program9.cpp C:\Documents and Settings\Faculdade\ISM3232\Assig9\Program9\Program9.cpp(45) : error C2447: missing function header (old-style formal … |
|
Consider this working code: [icode] #include <iostream> using namespace std; class Base { public: void print(string val) { cout<<val<<endl; } virtual void print(int val) { char temp[1000]; sprintf( temp, "%d", val ); string tempstring = temp; print ( tempstring ); } }; int main() { Base a; string whatever= "BLAH"; … |
|
Hi, Trying to play with multithreading by taking some of my existing apps and converting them over. In doing so, I noticed a strange phenomenon that I've been able to reproduce in a very simple program. let's say I create 2 threads. Each thread simply does a for loop from … |
|
OK - so I installed windows 2003 server on my desktop, which is in the basement. I have a laptop upstairs (xp) which I want to connect to the desktop over remote desktop. This is working ok (networking, etc), except the way that 2003 server is working, it's making it … |
|
Hi, I have a swing app where I am using (among other things obviously) an editable JComboBox and a jButton. when the JButton is clicked, it does some processing and uses the value in the JComboBox as one of it's inputs. I'm finding that everything is fine when: - The … |
|
Re:
I'm having real trouble getting my script to work, it's about 3 pages long and I'm having trouble with one of my if...then constructs. The code for the sub is as follows: [CODE]check_a_b () { CHECKA="634274" CHECKB="512274" if [ CHECKA=CHECKB ]; then echo "Match" echo "$CHECKA" >> "$LOGFILE" echo "$CHECKB" … |
|
Re:
Hello everyone, I ahd to make a program for initializing members of a class and displaying them.The members were name , bank account no, account type and current balance. Well , the program works well except for that null pointer assignment is displayed on the screen after correct output.Could you … |
|
Hi, If I have a JComboBox which has a list of Strings which can be selected, is there a way to insert a line/horizontal rule inside to indicate some sort of grouping of values? If so, how do I do it? (Also, the actual line ------ should not be selectable … |
|
Re:
I like the idea of receiving a return on what I keep in my PayPal balance, but how safe is doing this? Is it safe to keep a lot of money in my PayPal account (which I have had hooked up to two credit cards and two bank accounts for … |