199,114 Archived Topics
Remove Filter ![]() | |
[I]Dear experts, I am trying to code out my assignment but i made a problem with my [CODE]break;[/CODE] within my [CODE]if (operator.equals(zero))[/CODE]. i have received compilation error stating the following: [/I] [B]HelloWorld.java: break outside switch or loop[/B] [I]Appreciate if someone can point out my mistake. Thank you.[/I] [CODE] import java.util.*; … | |
So from what I've been taught, in school and in books, all C programs(I assume C++ too) always have main(). That's very explicitly mentioned. However in my poking around with some relatively large open source projects in hopes of learning something, it isn't as straight forward. What I've encountered was … | |
Hi all :) I got some serius problem that I've tried to solve in almost two days. I've try to send a request to a URL from a android app, [URL="http://web.hjalmar.nu/~morgan/webpage/test.php"]http://web.hjalmar.nu/~morgan/webpage/test.php[/URL]. the problem is, that it isn't working. ANDROID-file [CODE]package morgan.request.test; import java.io.BufferedReader; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import … | |
Hello Everyone! A new thread i have started and this is how the problem goes... I want to display record of a user something like profile details based on the user who has logged in to member's page! So when the user has logged in and clicks on the view … | |
I wrote a procedure to read integers(unsigned) from stdin and store it in a variable. I wanted it to handle backspaces too. so I made some adjustments but unfortunately it didn't work.--see line 14 in the code [CODE]get_num: ;(function get_num: read integers from stdin) push ax ;save all registers push … | |
Hi I have a script that is scheduled to run with task scheduler will download a file via FTP and import it to a mysql DB How would I go about handling the retries if there is either a problem with the connection or something. I tried going about it … | |
how can i use to show the selected value from data set i think there is a problem of dataset use to take out value from data set my code is [code] protected void Page_Load(object sender, EventArgs e) { SqlDataAdapter adap = new SqlDataAdapter("SP_selectallbooks", con); adap.SelectCommand.CommandType = CommandType.StoredProcedure; //DataSet ds … | |
Hi Experts, I have asp.net application already published with x86 ( i am not sure but can not working properly on windows server 2008 64 bit with oracle), through googling i found that i need to change application to Specific CPU through VS2005. There is also solution: To explicitly set … | |
Hi all! I am using Visual Studio 2008 and I was wondering is there a way to get the colour of text in a menu item to change color during a mouse over. So for example, if I was cycling through a list of items, the item that was currently … | |
i need a sample program to implement synchronization concept for a website... i have an application connected with oracle database. i have to open the same application simultaneously in two visual studio ide to perform the same operation or different operation accessing the same database in a synchronized manner using … | |
hi i made an image slider. it loads all the images from the data base using php and for sliding and timing intervals i used javascrpt and ajax. through back end of the systems can edit these images and upload new , update and delete. i want to reflect the … | |
please help me. this my trouble Notice: Undefined index: p in C:\wamp\www\index.php on line 7 and soure [CODE]<?php session_start (); include ("function.php"); $title = "Trang chá»§"; include ("header.php"); $p_now = intval($_GET ['p']); $total = mysql_result ( mysql_query ( "SELECT COUNT(id) FROM baiviet WHERE kieu='post'" ), 0 ); $numofpages = $total … | |
So this is my first post and I have only begun using python. One of my first assignments is to design a program which will count the most used words in the given text file. In my case we are using the Declaration of Independence. Here is what i have … | |
I know C++, but I'm trying to learn C. Anyways, what am I doing wrong here. If I delete the line with 'scanf', it will compile so obviously I'm doing something wrong there. Anyways... [CODE]#include <stdio.h> int main() { int x; printf("enter a number\n"); scanf("%d", &x); printf("Your number is: %d\n", … | |
need a[CODE][/CODE] in C that converts any given BCD to GRAY Code, and any given GRAY to BCD. I am a started so little halp ;) | |
Who can teach me the purpose of stringStream, and how to use it, please. I have read some paper about this, but I still have something don't understand. | |
Here is the assignmnent I need to complete: "Write a program to calculate and print the result of the following two operations: 1/1 + 1/2 + 1/3 + 1/4 + 1/5 + ... + 1/99999999 + 1/100000000 and 1/100000000 + 1/99999999 + 1/99999998 + 1/99999997 + ... + 1/3 + … | |
Here is the code I have so far. I'm not sure how to proceed from here. My goal is to make a program that outputs the probability of n amount of coin tosses, where n is the user input. [CODE]import java.util.Scanner; public class toss{ public static void main(String[] args){ Scanner … | |
I tried to use the code on MSDN to create Rawinput but i kept getting this error: RAWINPUTDEVICE was not declared in this scope. I am writing in c++ and direct x and i am using Code Blocks [ICODE] void RawInput(void) { RAWINPUTDEVICE Rid[2]; //keyboard Rid[0] .usUsagePage = 1; Rid[0] … | |
I am writing a program that writes log entries to an external text file and returns them upon request. When called, the return function should output the log entries between two user- submitted dates or outputs the last 100kb of the file if that's what's requested. The logfile stores each … | |
[code]#include <direct.h> int main(){ mkdir("C:\\Program Files\\Bacon"); }[/code] Creates a folder in the folder that the .exe file is in, and is called "Program FilesBacon". I think it's obvious what I wanted it to do. Help please? I'm using codeblocks if it matters. | |
Im an AP computer science studen (we started two weeks ago so I dont know much). For homework we had this problem: " Write a program that will let you enter your gender (M or F) and your height in inches and will then tell you wether you are tall,medium … | |
I'm programming a program that add feet and inch together(assume feet and inch are integer). I run into a compiler error. I know the problem is I'm missing the returning statement. But I don't know what to return. [CODE]public class Distance { private int feet; private int inch; public Distance() … ![]() | |
Dear all; I have the following code below and I have been spending time trying to debug it but I can't understand why I am getting the illegal character error message. See my code below. Thank you. workheader.master.cs [CODE] using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using … | |
Hi guys/gals, I've recently developed a piece of software and it currently uses 1 external .txt file (located in the bin\debug folder of the project folder) that is used to store data long term. The program works wonderfully when i use the visual studio 2008 debugger, but when i either … | |
I am building an excel address parser. Column B = streetnumber Column C = UnitNumber Column B is my streetNumber and What I need it to do is anytime it finds a letter attached to the number it needs to move it from column b to column C. So if … | |
Any thoughts on a clean way to modify an extant (and otherwise "ordinary") listBox such that it has more than one column? Further, once so altered, how to populate said listBox? example: listBox1.MultiColumn = true; ... now, I'm stuck! :( | |
I just finished a program, it worked perfectly, then I changed a bit of it, and now it won't work at all, even if I change it back. [CODE]self.secret_txt = Text(self, width = 35, height = 5, wrap = WORD).grid(row = 3, column = 0, columnspan = 2, sticky = … | |
hello, i started programming again after a while and i made this just to pass time/relearn the basics and stuff there is a weird issue that i can't figure out, when i input row 0 column 2 or row 1 column 2 it will fill the spot for both the … | |
Ok, working on a blog engine. Small and somewhat unimpressive, basically following along with a tutorial. The tutorial basically has me write a little MySQL to query some test fields that we filled in manually. And here is what I get. (see attachments) The first one shows the read out … | |
Hello Can you please help me with this easy cake, On a form I have 4 listboxes listbox1 listbox2 listbox3 listbox4 What I need is to count the listboxes which values selected are = 1. and display the result in a textbox1 For example : if listbox1 and listbox3 are … | |
Hello everyone! I have been working on a sudoku generator. My main aim is to create a completed 9x9 grid that follows the rules of sudoku. The grid should display unique numbers every time it is run i.e the numbers have to be randomised. My logic in tackling the problem … | |
Greetings, I made a simple "restarter" app... However, I need to close multiple instances of an application. For example, if I have three windows of paint, or three windows of Word open, how do I check if it is still open before I open a new instance? Here is my … | |
hi i have a datetime picker in user control form in C#. when i load the user control i want the datetime picker to disply no value in the datetime picker box. the code is below. [CODE] dpEDate.Format = DateTimePickerFormat.Custom; dpEDate.CustomFormat = " "; [/CODE] and when the user control … | |
hello i wanted to display the nultiple image in the webpage from mysql database. I am new to php. till now it only displays one image at a time. Please help . Here is the code snippet: [CODE]<?php $db = mysqli_connect ('localhost', 'username', 'pwd', 'databasename'); $query = "select * from … ![]() | |
[CODE]<?php $datax = $db->get_results("SELECT katid, katparentid, katadi, katsira, katdurum FROM sql_kategori WHERE katparentid='0'");?> <form action="index.php?menu=com.kategori:ekle.kod" method="post" name="formx" id="formx"> <table id="tablexcaption" width="600" border="0" cellspacing="2" cellpadding="2"> <tr id="caption"> <td width="40" align="center" valign="middle">Id</td> <td width="40" align="center" valign="middle">P.Id</td> <td>Kategori Adı</td> <td width="40" align="center" valign="middle">Durum</td> <td width="40" align="center" valign="middle">Sıra</td> <td width="40" align="center" valign="middle">Düzenle</td> <td width="40" … ![]() | |
hi, Iam developing the website in ipad,using html5 database and html5 concepts...i am facing trouble in integrating my website which is developied in php and xslt..here we are using soap to get the articles and displaying it using xslt and php...here iam loading those articles in html5 database in php … | |
Well, I recently got a program from csharp . But im not familiar with c# . I only got codes from vb.net . Is it possible if you guys help me to translate these following codes to C# ? First set of codes, it will download the file from the … | |
If I have a list of strings, for example here's a small part of my list: [CODE]small_list=['HETATM 2142 O DUM 2142 -26.000 -8.000 12.300','HETATM 2143 O DUM 2143 -26.000 -6.000 12.300'][/CODE] Is there a way to remove the 12.300 from a string in this list and then replace it with … | |
I'm try to make a program that will ask a user to input a string then the string gets masked (by asterisks) and later, guess every letter (character) of the masked word until the string is fully unmasked (a la Hangman). But my problem is, after the first unmasking, the … | |
Hey, I need to know what identifier i can use instead of string that will output all of the words that you type in the program. For example: if i was to use string ans1; cout <<"How are you?: "; cin >>ans1; and for my answer i typed "very good"...it … | |
i have the folowing code in my jsp page: [CODE]String[] name = null; String[] manufacturer = null; String[] description = null; String[] category = null; String[] price = null; String result = null; String connectionURL = "jdbc:mysql://localhost:3306/syte"; Connection connection = null; Class.forName("com.mysql.jdbc.Driver").newInstance(); connection = DriverManager.getConnection(connectionURL,"root",""); Statement statement = null; statement … | |
I'm having an issue displaying images in tkinter, I've tried the methods suggested by effbot and a couple other sources to no avail. Here are a couple ways I've tried so far:[CODE] gmail=PhotoImage('gmail.gif') self.glab=Label(self,image='gmail.gif') self.glab.image=gmail self.glab.grid(row=3,column=4) gmail=PhotoImage('gmail.gif') self.glab=Label(self,image=gmail) self.glab.image=gmail self.glab.grid(row=3,column=4) self.glabim=PhotoImage('gmail.gif') self.glab=Label(self,image=self.glabim) self.glab.grid(row=3,column=4) gmail=PhotoImage('gmail.gif') self.lab=Label(self,image=gmail) self.lab.image=gmail self.lab.pack() [/CODE]the last one … | |
Hi, I got a doubt about for loop while i was thinking about time complexity.... Is increment operation in for loop a two steps operation i.e., increment i and assign it the i or an one step operation just like just incrementing it? Is there any pointer operation involved in … | |
Hi, I have two servers. The question is i want to select the information form one server's table and insert it into other server's table. for that how many files i need. I am able to select table data form server one but i don't know how to insert it … ![]() | |
I want to display last 6 months from the current month. For example This month is september, I want to display April, May, June, July, August, September Can anyone help me with this ? ![]() | |
Hey. I'm creating a second degree equation solver in the windows form application.(In the form ax^2+bx+c= 0) And the basic programming is complete but I'm having problems making it bullet proof, in case the user type in the wrong number and type in a =0. So basically i have an … | |
I've been trying to modify the following code so that it only displays one scrollbar for 3 radio buttons but so far I just can get it to work right. After the modification the gui should have 3 radio buttons at the top, one scrollbar for all 3 buttons, and … |
The End.