199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nagarjuna844

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; …

Member Avatar for np complete
0
351
Member Avatar for Alsobhi

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 …

Member Avatar for NormR1
0
502
Member Avatar for semicolon

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 | …

Member Avatar for semicolon
0
141
Member Avatar for erik216

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~

Member Avatar for lambing
0
137
Member Avatar for mmcdonald

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 …

Member Avatar for leviathan185
0
275
Member Avatar for rbsmith333

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 …

Member Avatar for rbsmith333
0
195
Member Avatar for rtyui

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 …

Member Avatar for L7Sqr
0
278
Member Avatar for BoulderMen

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. …

Member Avatar for sachi059
0
290
Member Avatar for fRodzet

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 …

Member Avatar for fRodzet
0
69
Member Avatar for fariajan.siddiqui

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 = …

Member Avatar for JamesCherrill
0
108
Member Avatar for supravat

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 ?

Member Avatar for M.S.
0
312
Member Avatar for darkenmac

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 ... ![Inclose1](/attachments/large/3/Inclose1.jpg "Inclose1") ![Iscanonical1](/attachments/large/3/Iscanonical1.jpg "Iscanonical1") These are the two algorithms i wanted to implement and the expected result is Concept - 1 [0,1,2,3,4] [] …

Member Avatar for darkenmac
0
308
Member Avatar for Hazuan Nazri

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 …

Member Avatar for Hazuan Nazri
0
1K
Member Avatar for Termid

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 …

Member Avatar for Termid
0
134
Member Avatar for jonsan32

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 …

Member Avatar for jonsan32
0
252
Member Avatar for jim.lindberg1

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 …

Member Avatar for hughesadam_87
0
138
Member Avatar for Fedhell

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, …

Member Avatar for NormR1
0
220
Member Avatar for abelingaw

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 …

Member Avatar for AndreRet
0
187
Member Avatar for san.ssj

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 …

Member Avatar for AndreRet
0
240
Member Avatar for mgmahilum18

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?

Member Avatar for AndreRet
0
73
Member Avatar for jonny93

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, …

Member Avatar for jonny93
0
248
Member Avatar for jdadkn

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 …

Member Avatar for nitin1
0
107
Member Avatar for Kieran Y5

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 …

Member Avatar for Kieran Y5
0
2K
Member Avatar for adamrpostjr

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 …

Member Avatar for Reverend Jim
0
119
Member Avatar for System Networks

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. …

Member Avatar for NormR1
0
265
Member Avatar for kovidd

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 …

Member Avatar for ~s.o.s~
0
230
Member Avatar for somjit{}

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[]) …

Member Avatar for somjit{}
0
4K
Member Avatar for crishein14

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 !

Member Avatar for M.S.
0
104
Member Avatar for crishein14

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 ..

Member Avatar for M.S.
0
3K
Member Avatar for crishein14

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 ..

Member Avatar for M.S.
0
173
Member Avatar for crishein14

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 .. …

Member Avatar for M.S.
0
174
Member Avatar for mmcdonald

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 …

Member Avatar for diafol
0
271
Member Avatar for johnef_sh

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 …

Member Avatar for phorce
0
581
Member Avatar for XerX

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 …

Member Avatar for Bob
0
637
Member Avatar for bflack

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

Member Avatar for SoreComet
0
4K
Member Avatar for System Networks

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, …

Member Avatar for ~s.o.s~
0
678
Member Avatar for Sahil89

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 …

Member Avatar for Sahil89
0
3K
Member Avatar for nitin1

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 …

Member Avatar for Bob
0
172
Member Avatar for lewashby

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 …

Member Avatar for ~s.o.s~
0
146
Member Avatar for m1n1m3

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 …

Member Avatar for peter_budo
0
238
Member Avatar for Hemanth.Satkuri

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..?

Member Avatar for JamesCherrill
0
185
Member Avatar for MrHatchi87

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 …

Member Avatar for WaltP
0
2K
Member Avatar for joeweks
Member Avatar for jww1232002

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 …

Member Avatar for L7Sqr
0
465
Member Avatar for kRod

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. …

Member Avatar for kRod
0
2K
Member Avatar for bruizer

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; …

Member Avatar for NormR1
0
285
Member Avatar for weeraa

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 …

Member Avatar for Reverend Jim
0
307
Member Avatar for Hemanth.Satkuri

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 …

Member Avatar for dmanw100
0
130
Member Avatar for harris24

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 …

Member Avatar for harris24
0
163
Member Avatar for DavidTPotterNY

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 …

Member Avatar for dmanw100
0
2K

The End.