199,114 Archived Topics
Remove Filter ![]() | |
Hi, I'm new to C++. plzz help me with this error. #include <cstdlib> #include <iostream> #define clauselength 85 //we will use index number to find out the clause number. //there are 88 clauses. as we start using index from 1 we have to add one to 89. using namespace std; … | |
Hello I'm new learner in java, and I'm facing a problem to develop a Java application that will ask the user for the time in terms of hour and minutes and display the time by drawing a clock. I have created two classes, and the code is below. Please could … | |
Hello i have a database table | col1 | col2 | col3 | col4 | col5 | | val | val | val | val | val | | val | val | val | val | val | | val | val | val | val | val | … | |
I need to make a web component There have a link to control show / hide a div When user mouseover the link. The div will drop down. When mouse out of the div. The div will hide. Where can I find this script? Thanks~ | |
Sorry people but I'm really struggling with this and I don't know why... but still. I have a stored unix timestamp. [a] I have the current timestamp not in unix format (YYYY-MM-DD HH:MM:SS) [b] I need to: 1) convert the current timestamp [b] into a unix timestamp 2) I need … | |
Having a hard time getting this to work. options = [ 'option 1', 'option 2', 'option 3' ] for x in range(len(options)): Opt = str(x + 1) print('(' + Opt + ')', options[x]) while True: try: playerOpt = int(input('input ')) check = 'fail' for x in range(len(options)): Opt = x … | |
How can we know the name of the stream to which output is being redirected through a C++ program? For example, I have a program 1.cpp whose output is being redirected to a file a.txt i.e., a.out > a.txt Now, I want to know the name of the file to … | |
I am trying to write a program to make a list of books using linked list. I am using C language. My program crashes as soon as I finish entering the list. It is supposed to print the list before exiting. Any ideas ? //Defining what libraries should be included. … | |
How do i make a Vertical Scrollbar work for a Form ? i Tried Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load VScrollBar1.Maximum = (Panel1.Height - Me.Height) + 500 VScrollBar1.SmallChange = 50 VScrollBar1.LargeChange = 100 End Sub Private Sub VScroll1_Change() Panel1.Top = 0 - VScrollBar1.Value End … | |
hey iam writing this code in button's actionPerformed but it doesn't displaying any image . Can you identify what is problem in it??? JFileChooser chooser = new JFileChooser(); FileNameExtensionFilter filter = new FileNameExtensionFilter("Images","jpeg", "jpg", "JPG", "JPEG", "gif","GIF", "png","PNG"); chooser.setFileFilter(filter); if (chooser.showOpenDialog(this)== JFileChooser.APPROVE_OPTION) { File file = chooser.getSelectedFile(); ImageIcon icon = … | |
Hi, I am writing some code for android using python. I want to control the visibility of bluetooth ( i.e on or off of the bluetooth visibility) using some python script. Can you please help me ? | |
Guys I have to implement two algorithm using Pseudocodes in order to genarate formal concepts... but the implemented code doesn't give the expected results i want ...   These are the two algorithms i wanted to implement and the expected result is Concept - 1 [0,1,2,3,4] [] … | |
Hello, i got this error when i click my button save. Error: .Net SqlClient Data Provider: Conversion failed when converting datetime from character string. please help me... this is my save button code: Private Sub btnSimpan_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSimpan.Click Dim check As Integer Dim … | |
Straight to the point. I want to create a software, as a self motivation to do more programming. A SOFTWARE, doesn't matter how ugly it is, how simple it is, as long as software and not just a simple 'HELLO WORLD' program. The question is, if i have a source … | |
Can my dropdown menu produce a link instead of textbox? Is it possible? If so, how? <script type="text/javascript"> function fifa() { var frm = document.forms[0]; var abc = frm.browsers.value; if (abc === "A") frm.text1.value = "https://ical.bookeo.com/20212KWWNLA1396F7FEA1BWFW3J6/LHRAKRK63FAMPJP6/Z/I212JNW9WR139D70085E3/ical.ics"; else if (abc === "B") frm.text1.value = "https://ical.bookeo.com/20212KWWNLA1396F7FEA1BWFW3J6/LHRAKRK63FAMPJP6/Z/I21263C4FA139C15D7BAC/ical.ics"; else if (abc === "C") frm.text1.value … | |
Hi! I have a beginners problem I really need some help with. First of all, here is my current program: def texten(): filehandle=open ( 'savetonight.txt', 'r' ) text=filehandle.read() return text def smabokstavertext(): texten() print text.lower() I basically want my function smabokstavertext() to call the first function texten() and then print … | |
Hey guys, its been quite a while since ive posted here :-( Im making a game in java (nope not for school, just for fun) Anyway, ive created some logic for an enemySuicideBomber(spaceship game, prolly not what your thinking) to select the closest location. It works for the most part, … | |
Would be implementing a system which database is shared accross LAN nextweek. Scenario: All 5 units are of the same OS (Windows XP) * 1 Server * 4 Client Database is MSAccess 2007 * (but 2003 format in case of compatibility issues) Now here's my checklist: * Make sure all … | |
Hello, Im a student doing my final year mini project and am facing a problem related to searching data in the datagrid. The error im getting is : > Run-time error : '3001' > Arguments are of wront type, are out of acceptable range, or are in conflict with one … | |
I have a problem for my system Registration in times of printing a record of student. any one here can help me? or give me idea about it ? and im using visual basic 6.0 Im looking forward to you Guys.. help me please? | |
I am trying to work on an assignment that allows you to create an entry for a phone book, but there are a few things confusing me: #include <string> #include <iostream> #include "entry.h" using namespace std; entry::entry() { p_fname = ""; p_lname = ""; p_phone = ""; } entry::entry(std::string fname, … | |
Write a program to input a sentence until user presses esc or enter key. Calculate the number of spaces, small letters, capital letters and vowels. It should also print the length of the sentence. If user enter a character other than space or alphabet, it should not be displayed on … | |
Hi, I decided that my operating system needs some graphics. I have seen loads of tutorials on drawing pixels, and I have used some. I now want to use 32bit protected mode (before I was using real mode) and I can't find any tutorials or documentation on drawing with VESA … | |
Alright so im creating a visual os in vb 2010 and im creating a resgistration form.. the problem is i only want the registration form to only show the first time that they start the program and not everysingle time they open the program.. and i also want the for … | |
When I write in my terminal, java -jar myJar.jar, it gives me an error "Resource Not found res/playNow.png" When I run it in eclipse, it does not give me any errors about this image. My folder in my eclipse is outside my package called res and inside it are images. … | |
I and my friend are starting aur project based on java . We are planning to create a java based forum software . But we are confused to wheather make it a app on windows communicating a DB server ...Or to make it based on serverlets/jsp etc (somthing like vbulltein … | |
i want to take the 1st argument from commandline, ie argv[1] and assign it to a `char target[80]` i know im making some very stupid beginer mistakes... but just cant understand what :( this is my code: #include <stdio.h> #include <string.h> void converge(char *targ, char *src); int main(char *argc[],char *argv[]) … | |
hi guys .. Im here again ! I dont know how to explain this .. Here's my example : [url]http://desmond.imageshack.us/Himg228/scaled.php?server=228&filename=screenshotzjj.jpg&res=landing[/url] i want to know how to make a code like my example .. An icons and a cursor ! Im using s60v2 os8.1 .. Thanks ! | |
Hello everyone .. Im new in python and i have a question ! How to compile myfile.py to myfile.pyo ? Can you give me an example script coz i dont know were to put python -0 to compile it into pyo ! Thanks a lot .. | |
it is possible to start a python apps when you start your phone ? Im using s60v2 N70-1 .. Is there a python code autostart for my phone ? Please help .. | |
Can anyone HELP me for my problem .. Im a newbie in python ! I want to create a script to rename files in a dir. that dir has 400 files .png .. startswith 001.png , 002.png to 400.png ! I want to rename them startswith 000.png to 399.png .. … | |
Hi all, I have two dates: 1 = $last_check = YYYY-MM-DD HH:MM:SS (A SQL value) 2 = $datetime = YYYY-MM-DD HH:MM:SS (Called using PHP) How can I take away 1 from 2 and convert the minutes and seconds left over into seconds? Basically I'm running an uptime counter script that … ![]() | |
Hey, I'm running a mysqli query, and would like to run a script if the query returns no results. this is my code <?php $SM_pro_info="SELECT * FROM special_marketing_ads ORDER BY id desc LIMIT 4"; $QSM_pro_info = $db->query($SM_pro_info)or die($db->error); $SM_pro=mysqli_fetch_array($QSM_pro_info); if($SM_pro){ while($SM_pro=$QSM_pro_info->fetch_object()){ ?> <table width="208" border="0"> <tr> <td width="129" height="35" align="right"><span … | |
Hello! Can someone please give me some advice where to begin this program from and how. Thanks in advance. [quote]Given set of points in the plane, you have to write a program in C++ that computes the following values: 1. The minimum distance between two points. 2. The maximum distance … | |
This snippet could be a problem solver for a tricky programing problem in entrance exams. Hoping that this has no buggs. haha. Didn't use compiler for this ![]() | |
How do I access My jar in the mac os terminal. I have a jar in my desc top called System FRONT.jar First, I put `cd desktop` then i put java -jar System FRONT.jar It says unable to access jarfile system Then I tried another jar which does not exist, … | |
Hi, How can I detect new line from string. I tried Environment.NewLine but its not working. Initially I tried to replace it directly but it was not working after I tried to detect new line. Then I came to know that its not detecting new line. As temporary solution I … | |
hi, actually I am learning C from past 1 year now and have learnt alot in C. I have read many many books and have solved alot problems in C. now, i am thinking so as to do some kind of project in C/C++. can anyone suggest me some kind … | |
movies = ["The Holy Grail", 1975, "Terry Jones & Terry Gilliam", 91, ["Graham Chapman", ["Michael Palin", "John Cleese", "Terry Gilliam", "Eric Idle", "Terry Jones"]]] print(movies[4][1][3]) In the above code, how does [4][1][3] result in "Eric Idle"? It looks to me like the 4 selects Eric Idle becaue it's the 4th … | |
Hey! **Im here to ask for Your advice.** For a school project we choosed to create a android application that uses a database. As we are thrid year studens we have some experiance. But it is not as notable. We have **seen some**: **Access SQL** only on acess. How to … | |
Hi, I have created a table with first column as checkbox. Using the below Code.. TableColumn tc = constructedTable.getColumnModel().getColumn(0); tc.setCellEditor(constructedTable.getDefaultEditor(Boolean.class)); tc.setCellRenderer(constructedTable.getDefaultRenderer(Boolean.class)); tc.setHeaderRenderer(new CheckBoxHeader(new MyItemListener())); I sometimes get stackoverflow exception. Is This beacause of the above code..? | |
![]() | I'm stuck with this one. I need help drawing a tree in C++. Weird right? I've posted the parameters below and my response has my code so far. Write a program that draws a pine tree of a specified height How tall should the tree be?: 6 1. Prompt the … |
Please help me to code an infinity number in VB | |
I'm required to write a packet sniffer in the C programming language and Identify the Packet as IP, ARP, or Broadcast and count how many packets of each. I'm able to get IP packets identified and counted, but don't seem to be seeing any ARP or Broadcasts correctly or count … | |
I am hoping this is not inappropriate to do on here if it is I apologize in advance and will let the thread die a slow agonizing death. Here goes: I have a little TextBox app that's supposed to only allow numeric’s positive and negative and allow 2 decimal places. … | |
import javax.swing.*; import java.awt.*; import java.text.*; import java.awt.event.*; public class SchoolApplet8 extends JApplet implements ActionListener { double userAmount; double userInterest; double userTerm; int month = 0; double remainBalance = 0; double interestPayment = 0; double principalPaid = 0; JPanel row1; JLabel lblAmount; JTextField txtAmount; JLabel lblInterest; JTextField txtInterest; JLabel lblTerm; … | |
This my code in button click event. I want to add dynamic text boxes. It is focused to line no 7 and show "Object reference not set to an instance of an object." Dim txtBx() As TextBox Static x As Integer Static i As Integer x = x + 20 … | |
Hi , Is it possible to have loaders in Swing. By Loaders i mean, showing a loader image with masking on the application till the data is retrieved from DB and displayed in TextArea. Just like we have ajax loaders Not allowing to access other screens in the application with … | |
Hi, need help on finding why code won't run. Keep getting code error: No overload for 'DisplayXML' matches delegate 'System.Web.UI.WebControls.SqlDataSourceSelectingEventHandler' Would appreciate any help...... System pointing to the following code saying its the cause, but don't know how to fix it: <asp:SqlDataSource id="srcProducts" SelectCommand="SELECT * FROM PRODUCT" ConnectionString="Data Source=.\SQLExpress;AttachDbFilename=|DataDirectory|MyDatabase.mdf;Integrated Security=True;User … | |
My issue is that after public static void Head() { each of the following sets is highlighted red for an illegal start expression error. I've tried moving the bracketts around removing words like static or public. (I'm 3 classes into java). I just need help in getting that issue to … |
The End.