213 Topics

Member Avatar for
Member Avatar for Mr Programmer

Hi... :) I have only [B]1 LABEL[/B] in my form. There is [B]no text in Label1[/B]. I want that when i run the project, the label has any [B]word or number[/B] in it like '[B]1[/B]'. I want that when i run the project [B]AGAIN[/B], the [B]word or number[/B] in the …

Member Avatar for trpsjt2008
0
115
Member Avatar for DelilahDemented

I'm doing this simple program that checks for number validation and I have an infinite loop in it. I can't figure out how to stop it. It's supposed to check for numeric digits only, but when it finds something other than the above, it hangs up in the loop. Could …

Member Avatar for DelilahDemented
0
234
Member Avatar for Sandhya212

Hi, I would need to create unique filenames appended by the iteration number. For eg. [CODE]for( i=0;i<iterations;i++){ ofstream outfile("iterfile"+"i"); // i.e filename should be iterfile0 for 1st iteration. } [/CODE] I need to cast "i" from int to char so I tried [CODE]ofstream outfile("iterfile"+(char)i)[/CODE] but it did not work. How …

Member Avatar for Sandhya212
0
217
Member Avatar for leverin4

I am working on updating a database where some measurements are stored as text. The updates I'm making are to let the engineers that use it convert their measurements into different units. Long story short, the numbers must be kept as text for a couple reasons that I won't go …

Member Avatar for jhai_salvador
0
183
Member Avatar for pringles08

[code] //to check if numeric public boolean checkNumeric(String user_input) { for( ; x <= user_input.length() ; x++ ) { if(!Char.isDigit(user_input.charAt(x))) { return flag; } } return noError; }[/code] it says: cannot find symbol variable- char Help please.

Member Avatar for BestJewSinceJC
1
151
Member Avatar for nwhitesel

Hi everyone! I am working my way through some problems from projecteuler.net and came across one that has stalled me. The task is to find the sum of all primes under 2,000,000. I am attempting to use the Sieve of Eratosthenes algorithm for identifying prime numbers. Here is my code …

Member Avatar for nwhitesel
0
214
Member Avatar for slejeivw

I am trying to store a single random number from 0 to 99 to a variable. This is what I used in my code to do that: [code]time_t t; time(&t); srand((unsigned int)t); int rTSB(rand() % 100);[/code] I am trying to make a single random picture show up when you start …

Member Avatar for WolfPack
0
254
Member Avatar for HiHe
Member Avatar for TrueCoding

Hi, ok the problem is that when a button is click I want it to add 1 (+1) to a textbox. This process will keep on going on till I tell it not to...How would I just keep a running total of whats happening in the textbox...What I mean to …

Member Avatar for kvprajapati
0
95
Member Avatar for shep32

Hi, I am writing a code for a restaurants online order service so that products can be delivered to customers. I have completed the code but the owner has said that they have recieved bogus orders and i have decided that a validation on the order form is needed for: …

0
78
Member Avatar for vino4all

How to get the following output using c? ---1 --12 -345 6789 Please guide me with the code. It can be a blank space instead of '-'.

Member Avatar for 0x69
0
358
Member Avatar for jonyshub

Hi everybody! Sorry for my bad english! I have a matrix of integers with a maximum length 6 digits. I must to write program, that checks whether a number is found in the section above the main secondary diagonal of this matrix. I'm beginner in C + + and I …

Member Avatar for farag
0
142
Member Avatar for Chelp261

I have a program which is as follows: We'll extend the Search and Rescue Simulator. You will implement a class to represent the location of a person, and add searchers to the simulation. A Person class that will be used to represent both the missing person and the searchers, details …

0
104
Member Avatar for bertyhell

I'm looking for a package that can convert a phone number to its country code i know how to write it myself but beter to check the net first anybody ever heard of something like this? eg: 0032586987 > Belgium please give me a link it would save me enormous …

Member Avatar for bertyhell
0
4K
Member Avatar for gabrielhuebsch

I am exporting a large amount of data from SQL Server 2005 to Excel. Most of the data appears as I want it to- without the exponential notation. Any values [I]smaller [/I]than 0.0001 (i.e. four zeros to the right of the decimal) are displayed as, for example, 7E-05 rather than …

0
107
Member Avatar for Whoever90

Hi, I try to convert a tuple into binary number but I keep getting the error like"ord() expected string of length 1 but tuple found" Can anyone help me in this?

Member Avatar for bumsfeld
0
75
Member Avatar for tchiky

Hello I would like to create a reference field. I would like it ti have a fixed number of charaters/numbers, just like the videos reference of YouTube. Is there a mysql/php function to handle that? I mean a function that generates a unique string that doesn't exist already in the …

Member Avatar for tchiky
0
161
Member Avatar for The Pobo

Hey, I'm a student with rudimentry knoledge of VB6 and I've a college project where I have to develop a blackjack game. Unfortuanately I've a problem with the method I call the cards I was wondering if any of you would be able to shed some light on the problem. …

Member Avatar for The Pobo
0
212
Member Avatar for rahul8590

Well ,it may sound a bit preposterous , but i have a pretty weird problem (which i have solved many times , dunno why it isnt working for me this time ) . I have a data file from which i randomly pick up row nos . The data file …

Member Avatar for WaltP
0
196
Member Avatar for pamelaanne05

[CODE]if(num/100>=1) { x=num/100; switch(x) { case 1: cout<<"one hundred "; break; case 2: cout<<"two hundred "; break; case 3: cout<<"three hundred "; break; case 4: cout<<"four hundred "; break; case 5: cout<<"five hundred "; break; case 6: cout<<"six hundred "; break; case 7: cout<<"seven hundred "; break; case 8: cout<<"eight …

Member Avatar for EngSara
0
138
Member Avatar for hydersha

hey guys.. greetings to all please help me regarding my problem i want to find how many times a digit has occurred in a number. for example i have an array which consists of numbers 1011 1022 1033 number of 1's= 5 number of 2's= 2 number of 3's= 2 …

Member Avatar for jonsca
0
835
Member Avatar for devnar

Hi, I'm trying to call a bunch of methods during run-time using reflection, but I'm getting an exception saying "IllegalArgumentException: wrong number of arguments". Here's some information on the variables used. - All elements of mailTestClass[] are classes that extend AbstractTestCase. (FirstTestCase extends AbstractTestCase and FirstTestCase.class is the first element …

Member Avatar for devnar
0
944
Member Avatar for rrvs331

So I made this coin flipping program. It generates a random number between 1 and 2, and checks to see how many "flips" it would take for it to get 15 flips in a row. However, every time I run it, I get the same number, 13505, every single time! …

Member Avatar for rrvs331
0
225
Member Avatar for cVz

I get the following message when executing a stored procedure. [COLOR="Red"]The query has exceeded the maximum number of result sets that can be displayed in the results grid. Only the first 100 result sets are displayed in the grid.[/COLOR] However , i cannot change the fact that the SP uses …

0
98
Member Avatar for xxunknown321

I need help with writing a program for converting int numbers to words. For example, the number 713 would be translated into the string "seven hundred thirteen", and 8203 would be translated into "eight thousand two hundred three". The class should have a single integer member variable: - int number; …

Member Avatar for pulizziva
-1
168
Member Avatar for XStrong

Here is the code I'm working on. The user should be able to type in a number and then after clicking the button, list (in a listbox) of all the prime numbers leading up to the number (including the number if it's prime) MY ERROR/PROBLEM: When i input a number …

Member Avatar for XStrong
0
251
Member Avatar for ChaseRLewis

Newbie Here Edit: This is not homework, I am a chemical engineering student and a math minor. I'm doing programming on the side to help me automate certain calculations later in my career. Also always had a healthy interest in programming. I just read the not doing homework for people …

Member Avatar for vegaseat
0
206
Member Avatar for Ryujin89

I am trying to create a program that has a class with a method that accepts a charge account number as an argument. Then the method should determine if the account number is valid by comparing it to the list of accounts in a text file (Accounts.txt). Then method should …

Member Avatar for BestJewSinceJC
0
1K
Member Avatar for masterofpuppets

hi all, I am designing a text editor program in Python using Tkinter and I was wondering if there's any way to get the current line number when the mouse is clicked somewhere on the text field, i.e the mouse position should determine the current line, like in the python …

Member Avatar for masterofpuppets
0
887
Member Avatar for opatut

Hi Community! I have already searched the whole web about this Problem, and I didn't find anything. Maybe you can help... I want to show the number of all SQL queries I executed to load a web page. It is a very complex system I programmed, and I don't want …

Member Avatar for opatut
0
236

The End.