64,152 Solved Topics
Remove Filter ![]() | |
![]() | Hello, I have a class named Time and when I run it I can enter the time, increase the hours and minutes, the minutes and hours will stored in their fields. I have another class called TimeTest, when this class is running, it needs to display the test results of … |
I have this Java program which gives an output that runs into 10000s of lines. I use Windows. When I run the program in cmd, It doesn't show more than around 500 lines, how do I see all my output? | |
Hi everyone. I'm currently working on a project with c#, and had some questions about classes. I'm a python programmer, so bear with me ;) How would I make a class that has pre defined arguments? I.e. even if the user doesn't pass that arguement, the default value of it … | |
[CODE]$output[] = '<td><IMG SRC="../cart-demo/images/1.jpg" WIDTH="100" HEIGHT="100"></td>';[/CODE] hi, i am facing a small problem. can any one hint me or help me with the image property i wanna increase the 1.jpg to 2.jpg and so on.. kindly help With Regards danny | |
hey folks can someone help me how to use or connect database to visual basic hoping for your kindness. God bless !!!!!! | |
I'm now stuck on trying to figure out why my letterGrade function isn't working....I'm trying to take the numerical values found right before it, in the Avg colum, and turn it into a letter grad (which I assume needs to be as a string). Any suggestions? [code] Total Number of … | |
Hey everyone, can I create a folder using c++, just the way we create a file? | |
Hi all, I need to draw simple lines on JFrame/JPanel. What is the easiest method to go? Also what do I need to display an image on JFrame/JPanel Thanks | |
For some reason this is killing me, I am trying to update the field available to '-1' and don to '0' when the user submits the correct string into the input box, the thing I cant work out is why available wont update but don will the code is below … | |
I am trying to figure out why my letterGrades and highest function aren't working.....I'm more clueless on the letterGrade portion, as I believe that my highest function is a simple fix that I'm just not seeing. With the letterGrade function I am trying to assign a letter grade to each … | |
Hi! I need to split a list if item A is followed by item B. I'm really stuck at this and the only thing i could think of is that i should use regex, but i dont know how. Example of list: list = ['email@email.com', 'email@email.com', 'email@email.com', 'REF123', 'REF123', 'email@email.com', … | |
I noticed that when i posted programs on here people gave me their versions, and had [CODE] import * def somethng_here(): while True: Try: pass except ValueError #or some other types of things liek that [/CODE] I don't understand how a function can be FALSE, as well as how these … | |
As I am working on my first application the thought occured to me: 1) Are "plug-ins" a common thing for applications to support? As in..."copy this .dll (or whatever) to this folder and bam! you get more features!" 2) How do most people handle updates? Replace the entire executable or … | |
I don't understand where the last line of my input is coming from....The program should stop reading with Hebb,Emily, but it seems that it's trying to bring in another line of information...any ideas? [code] Total Number of Students: 73 ID LName FName Q1 Q2 Q3 MT Q4 Q5 Q6 F … | |
Hi, I'm trying to incorporate a program title and welcome message into my code and I'm not sure if I have done it correctly. I would also like to know how to incorporate the following function calls into my code: Call Personnel Age Call Calculate Average Age Call Display Average … | |
can anyone help me determine it? from the looks of pages on google. it's just a bunch of 90 degree angles that are constantly rotated 45 degrees about it's axis. thanks. | |
My assignment is to write a c++ program which does statistical analysis of a group of exam scores. Up to 100 scores may be entered. All scores should be validated within the range of 0-100. A (-1) will be entered to signify the end of data. Scores may be decimal, … | |
Okay, this is what I am trying to do. I am attempting to create my own encrypter. I have the base encryption running, used just to encrypt a string you put in. I am going to add functionality to open a text file's contents and encrypt them, outputing them into … | |
So my listname is men =[] How can i print just the 10 first elements of the list? It contains 15... And it's a matrix... I thought about making a while-loop while i > 9: but it didn't work. Can anybody help me please? :)[code]for gender in men: print gender[0] … | |
My form's KeyPreview is set to True. I want to allow my users to use the Enter Key instead of just the Tab key. I have the following code in my form's KeyPress event: [code] Private Sub frmDesigner_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress If e.KeyChar = … | |
Hi dear all I have 2 question to be asked 1. everything is working fine but I couldnot understand [ICODE]$page = $_GET['page'];[/ICODE] what function is performing in the script? 2. when I change limit greater then 2 its not echo any record but for limit=1 or limit=2 its working perfectly. … | |
First off I apologize for being a newbie to MySQL but one must learn somewhere... I am attempting to create a stored procedure that take input (primary key) and finds a field for that record and output to a variable... my code so far: [CODE]CREATE PROCEDURE sp_dealer_name( IN dealerID CHAR, … | |
Hello All, I am new to PHP and the requirement is, i need to design a form with multiple checkboxes with same name. I tried using arrays and the code is [code] <td> <input type="checkbox" name="eroom_status[]" value="empty" <?php if(isset($_POST['eroom_status'])) { if (in_array('empty',$POST['eroom_status']) { $check = 'checked';} } echo $check;?> > … ![]() | |
hello all! :) Well this is my code: [CODE] for ($i=0; $i<5; $i++) { $random= array_rand($ids); echo "<br> $random generated"; if ($check[$random]<>0) { $i--; echo " number generated again"; } else { $check[$random]=1; // set check to 1 to know the array number has been used } } $rnd_num[]= $ids[$random]; … | |
I'm a PHP guy so I still struggle with Javascript. The answer to this is probably easy. I need to add some animation effects and I'm experimenting with JQuery [B]animate[/B]. The sample routine is set up to run when you click on the Run link. I want to change the … | |
Hello everybody, i'm new in C# and i have a problem: how to make a loop(what will be in paranthesises?) that asks user to enter a word (then my method checks whether it is a palindrome or not) [COLOR="Red"][B]until user presses [I]Ctrl+Z[/I].[/B][/COLOR] PLZ help, i'll glad to any advise. | |
My professor wants us to write a script that will do the following: -Catch him online and output the time/day -Where did he login, ie College or Home (ip address provided is ok too) -What was he doing The crontab should run every 30 mins and automatically email him all … | |
hi all i am newbie in Excel VBA i created list in Excel and i wrote into ([B]a1[/B] cell-income, [B]b1[/B] cell-expence, [B]c1[/B] cell-kredit and [B]d1[/B] cell-debet) i enter a2 cell income (for ex:1000) and b2 cell expence (for ex: 100) and I give condition in VBA that if income greater … | |
Hi, I have this annoying problem in my project program.It simulates a Library.From the data stored in a binary file,the information about books are to be displated as: [U] Sl.no Book code Book Name Author no. of books[/U] 1 ES101 Sherlock.. A.C Doyle 10 2. SF200 Harry Potter J K … | |
when i use <?php echo $_SERVER['PHP_SELF']; ?> in my forms the get values disappears. How to fix that? Is there some function? | |
Hello, I want to add integer value in specify integer from mix character TextBox, For eg, I have two TextBoxes first's name Textbox1 and second's name Textresult1 Textbox1.Text = "blabla 2 bla" Now after a empty space and before a empty space i want to + 1 in integer value … | |
Hi guys! I'm pretty new to C++. I am currently on freshman year at college, and have a programming problem (not homework, it's actually a side project of mine) that consists on implementing some algebra-related functions on C++. I'll go straight to the point: [code] int switchlines(int i, int j, … | |
Hey :D I wanna make a small program which changes the Desktop Wallpaper. Ok ehm. I found many things but nothing is working! Maybe because of my os: Win 7 x64 Ok here is the code which should run when someone click on the button. [CODE=C++]SystemParametersInfo(SPI_SETDESKWALLPAPER, 0,"C:\\wallpaper.bmp", SPIF_SENDCHANGE);[/CODE] Tried it … | |
Hey guys im hoping someone can please help me. I'm trying to get my website to have a simple feed back from and it just won't work for me. This is the script i'm using [CODE]<?php if (isset($_REQUEST['email'])) { $email = $_POST['email'] ; $subject = $_POST['subject'] ; $message = $_POST['comment'] … | |
Howdy, those of you who remember me may be happy to know my 2D game engine was finished and I'm now working on a 3D engine. My engine has been going rather spiffingly well, after some battles with DirectX and OpenGL i managed to get them working side-by-side. Wrote a … | |
[B]What I want to code:[/B] 1.Given: -A range of integers iRange from 1 up to iRange -A desired number of combinations 2.Find the # of all possible combinations and print it out. For example: Given: iRange = 5 and n = 3 # of combinations = iRange! / ((iRange!-n!)*n!) = … | |
Hi, I just want to find out which is better? Thanks [code] ...... echo "Database connection error"; exit; [/code] OR [code] ...... die ("Database connection error"); [/code] | |
I have looked around and not been able to find a definitive answer to this. Prototype does not work in IE 7 or lower. All other browsers work just fine. Even something as simple as [icode]toggle();[/icode] will not work in older versions of IE. I don't get any errors or … | |
Hello, I have an assignment to make a tic tac toe game using 1-9 in a grid (but without 1 l 2 l 3 and instead, 1 2 3 etc.). I'm having an impossible time figuring out how to redisplay the new x or o (see function comments). Is there … | |
Hey guys, I have to write a program to check the ranking of the top 1000 boy and girl baby names using linked lists and pointers. The POINT of the PROGRAM is if you enter a name it will tell you what the name ranks among the list if it … | |
I did make some attempts to search for this problem but was not sure exactly what to search for and being after 1AM my eyes wouldn't take reading through the 11+ pages of unrelated search results, so I will just ask the question... New to Java, want to use one … | |
I have a line of code that looks like this: [code] _data = new (nothrow) T[_size]; [/code] This code is inside a classe's constuctor The problem is that it initializes each element to zero which I don't want it to do. Is there to just have it reserve the memory … | |
I made a poker game and when I run it I get these errors... [CODE=syntax] Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at PokerGame.Hand.getPairs(Hand.java:82) at PokerGame.Hand.whichHand(Hand.java:28) at PokerGame.DeckOfCards$1.actionPerformed(DeckOfCards.java:67) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.Component.processMouseEvent(Component.java:6263) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6028) at java.awt.Container.processEvent(Container.java:2041) at java.awt.Component.dispatchEventImpl(Component.java:4630) at java.awt.Container.dispatchEventImpl(Container.java:2099) at java.awt.Component.dispatchEvent(Component.java:4460) … | |
Hi, I want to display data which i have entered through form(html or jsp) into database. I have a servlet and a bean with a function of database retreival. I have got one attribute value in servlet through session transfer into bean's method to retrive data with respect to that … | |
Hi Im having a problem when it comes to dynamic memory allocation.I have a program that lets me pick the size of my array,and then input numbers into it. That all works well,it is when I try to add another int to this array that im having problems with,could anyone … | |
I have a question, and it is: How create win32 application in Microsoft Visual Studio 2008 ?? I do not want to select " Empty project " in " Additional options: ". i.e. I want use visual window for my program. Please help me. My language is C++. | |
Hello, Please help me in selecting a database to use with VB6. my application will store some 20-25 values each second (24 X 7) along with date-time stamp...and i would need to access this data for over 1 year period... Keeping this in mind...which database should i select? also please … | |
Hi all, If I want to read an image and split them into pixel of rgb(red green blue) regarding their color. Is it possible to do it in vb? Or I need to use the different program? if you have any clue, please let me know, thanks. | |
It won't work! [CODE]def get_user_choice(): from string import digits user_choice = input('Type a number, 1 to 6.\n\n') if user_choice == '': print 'Not a valid choice.' raw_input() main() check_if_true(user_choice) def check_if_true(): import random comp_choice = random.randint(1,6) if comp_choice != userchoice: print 'The computer won :(' return comp_choice, user_choice else: print … | |
I want to creat a button that when I click on it it will generate a TextBox ,please tell me how |
The End.