64,152 Solved Topics
Remove Filter ![]() | |
Hi all I was working on a program and really need some help with my coding. Here is code I'm working on thanks for your advice in advance. 'this program will Display Year of age and days on earth assumming the current date is 12/31/2006, the user types 1980 into … | |
Hey, sorry if this question is really really simple and silly to ask here but I can't find a suitable answer anywhere else and nobody out there so far is willing to help me out so any help would be greatly appreciated. Simple thing I want to do: I have … | |
With std::queue I've been using this: [code] std::queue<int>::iterator pos = std::find( q.begin(), q.end(), 5); [/code] But when I try that with std::stack : [code] std::stack<int>::iterator pos = std::find( s.begin(), s.end(), 5); [/code] I get [code] error: ‘iterator’ is not a member of ‘std::stack<int, std::deque<int, std::allocator<int> > >’ [/code] Anyone know … | |
![]() | I want to add some while() loop to a windows form app, the problem is that when I try its freezing the window because of the loop. There is any way or method to add a loop that won't freeze the window? ![]() |
Hello, I've been going through K.N. King's [url=http://knking.com/books/c2/index.html]C Programming: A Modern Approach[/url] and, after completing the first 10 chapters, I wanted to give my knowledge a try and write something I've always wanted to: a Hangman game. It turned out more of a "Mystery Word" game, as I haven't created … | |
HI guys !! I am new to jsp so pls do help me in solving this .. I am getting error at the highlighted part as: Syntax error,insert ": Expression" to complete Expression [code]<% ---- --- ----- UrlGen urlg = new UrlGen(request.getQueryString(), "UTF-8"); String url = "Contacts.jsp"+"?"+urlg; %> <a href="[B]<%=url%>[/B]"><img … | |
Ok, I did search on this site and found nothing that really helps with my issue. I am doing assignment - JPartyPlanner - I have the applet complete, it compiles and shows in IE great, BUT when I add the image code it still compiles but I get nothing showing … | |
I have an array of strings as follows: [CODE] char *sCmdInt[8];[/CODE] I am filling this array by tokenizing a line of text from a file. I then want to check if element 0 of the array is equal to a value. Eg: [CODE] if (sCmdInt[0] == "ReadMemory32") { // do … | |
I want to compare a DateTime date & time in a GridView to a smallDateTime date & time in a database table. I'm not sure what goes wrong, but I get the error message "incorrect syntax near 'whatever time'" every time. An example: A DateTime datumStartTid could be '2010-07-25 19:00' … | |
I have completed my applet code and it compiles fine - when I try to open it in explorer I get my welcome message but the applet does not fully open - all I get is the little box with the red X in top left corner. Help! Here is … | |
My title says it all! I'm completely mystified by this - have been working at it all day with no resolution. The fundamental assumption under which I am laboring is that when a Dll is loaded into a host's process, the Dll will receive a DLL_PROCESS_ATTACH message. I have been … | |
hello guys? i was recently studying how ajax work, problem is i followed some codes on the net and check if they work..they work on the site,but the time i tested those codes it wont work anymore..any ideas?ive tested js and it works on my browser... [code] <html> <head> <script … | |
Can anyone help? I want to execute a function depending on what select dropdown is chosen. The select name is dynamic so I need it to happen in one function loop For e.g. The following function works and returns the correct class but its not going to work for my … | |
I am very new to development and have been sinking my teeth into C#. I have an application that was written in C++ which is out of my depth, and I was wondering if someone could explain how I would recreate this in c#. The application sends message to linux … | |
Hi frnds.... i need Javascript Validations...these validations by using [B]onchange or onblur[/B] events..i mean when focus out from a textbox or any field then immediatley shows the error msg and focus will be at error field(not after submitting the form)..i want error immediatley focus out from the field...plz provide 4 … | |
Dear All, I have a problem i have made setup of my project when i install it and run the program it asks for the complete path of database like this "C:\Paymentsystem\PaymentSystem\bin\Debug" is there any way i want to change the path i mean i want to place database in … | |
Does anyone know an easy way to do array's of arrays? I'm not 100% sure this is the thing I want though because I just need a simple way to make a loop able to change the list it's comparing. I have the loop done, I just can't figure out … | |
H! There! I have a problem in c# that require sorting of names of students in a sql database and i want it to be specific, i used data grid view to view the data of the students as shown below: Students First Name: Ann Antoinette Bernadette Brenda Jeannette Judith … | |
Hi everyone, Creating a software with C#, does it require many forms? because I want to create a elementary grade 4 math courseware, but I only know how to create a basic calculator with C# >_<. I just started 3rd year computer science and, our group's thesis proposal has been … | |
![]() | Hi there, I want to make a program with visual C++ 2010 using windows form. My problem is that I want to include "windows.h" and I can't find out how to do that. I want to include "windows.h" to use functions such as SetPixel() and some others... If it's possible, … ![]() |
Hello... I am pretty new to Java and I am experiencing some frustration with loops. I have a few problems here and I hope that you guys could point me in the right direction. My first problem is with the looping in the program below. No matter what is input … | |
hi.. i m getting parse error ...... can anyone help me how can i remove it........... [B]Parse error: parse error in c:\apache\htdocs\newhr\attendnce.php on line 21[/B] [CODE] <?php mysql_connect("localhost","root","root"); mysql_select_db("master"); $dates = array(); $employee = array(); $attendance_record = array(); $getdates = "select * from mar10 order by Date" or die(mysql_error()); $dates_resultset … | |
so i have written a c program...my question; is it possible in any way that it will execute itself whenever say a flash disk is in input or the file that contains it is opened?? | |
:cool: hi Friends,.,. !! i want to know a perfect time consumption for a given particular program.. [B][COLOR="red"]IN MILLISECONDs[/COLOR][/B] I know the way of using following method: [CODE=c] start=clock(); /*... ... my programming logic . . . ... */ end=clock(); difference=(end-start);[/CODE] But it gives time in seconds , which is … | |
hi, In this example: [CODE]public void init() throws ServletException { bookDB = (BookDBAO) getServletContext() .getAttribute("bookDB"); if (bookDB == null) { throw new UnavailableException("Couldn't get database."); } }[/CODE] As it is not instantiating the BookDBAO instance and the connection with entity manager is done in the constructor: [CODE] public class BookDBAO … | |
this is my table structure [CODE]CREATE TABLE IF NOT EXISTS `test` ( `id` int(11) DEFAULT NULL, `disable` timestamp NULL DEFAULT NULL, UNIQUE KEY `id` (`id`,`disable`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;[/CODE] Assume values as [CODE]INSERT INTO `test` (`id`, `disable`) VALUES (1, NULL), (2, '2010-07-27 15:52:20'), (3, '2010-08-03 00:00:00'), (5, '2010-07-28 15:53:39'), … | |
Hi I have a question with regards to storing and retrieving a players location in a game. At the moment I'm working on a text based dungeon game, and one of the things I am having trouble implementing is, a way to move between rooms in the game world (I.E. … | |
I have an Update query to update a MySQL database. Everything seems to work fine except one form field..."bulbDesc". When I enter data into this field, which is longText type in MySQL, it disappears. Meaning when I go back to my view page, the bulbDesc in that particular record is … | |
hi all, i have a code that add dynamic row and it has an option that it allow to delete rows by checking checkboxes. can anyone help me to check all checkoboxes at here is my code [CODE]<HTML> <HEAD> <TITLE> Add/Remove dynamic rows in HTML table </TITLE> <SCRIPT language="javascript"> function … | |
[ICODE]class classA: #saved as classA.py def __init__(self): print "class A" printB() def printB(): print "B"[/ICODE] [ICODE]>>> classA() class A Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> classA() File "C:\Documents and Settings\Owner\Desktop\timetable\classA.py", line 5, in __init__ printB() NameError: global name 'printB' is not defined[/ICODE] Using the class … | |
Hi there, I couldn't find a solution to this small problem so posting it here. I have some hardcoded values I want to send back to the browser. When I have this code: [code=php] ... $cr1 = '{"date_added":"8/3","type":"1","contact":"John Smith"}'; $cr2 = '{"date_added":"8/7","type":"2","contact":"Jane Smith"}'; $company_reqs[0] = json_decode($cr1,1); $company_reqs[1] = json_decode($cr2,1); $company_data['reqs'] … | |
Hey guys, iam assigned a program that has to read in 3 values (sides of triangles) at a time and find the area. The values have to be read from a file, they are in a loop as there can be as many sets of triangles as the user wishes, … | |
Nevermind, simple solution | |
I posted a thread a bit earlier about a simple error, but this is more of my main issue. I have a struct: [CODE=C++] struct Inventory { string ItemName; int ItemQty; float ItemPrice; }; [/CODE] with the intention of creating an array for storing an inventory array. I can't seem … | |
So I have this two dimensional array in my class, and I'm trying to create an accessor group for it. But the compiler doesn't like what I'm trying to do at all. [CODE] private int[,] _resource = new int[5, 2]; public int Resource[int idx1, int idx2] { get { return … | |
Dear Friends, Please help me with this issue. the design of my database isnt well normalized, but due to the ammount of work done based on this queries i found it more difficult to have to change the whole design . Instead im trying just to solve it. i have … | |
Hi, I just struggeled all day how can I build JavaFX Application made with visual composer plugin in Nebeans. Every other application worked but this doesn't. When I build it says can't find [I]javac[/I]. Of course, javac .exe is not located in the JRE... [CODE] Cannot run program "C:\Program Files\Java\jre6\bin\javac.exe": … | |
hi, I use: [code=java] fOut = thecontext.openFileOutput(filename, Context.MODE_PRIVATE); [/code] Does the private mean that unless you have the phone and are the user of the phone or otherwise got your hand on it, that no program can read the file I'm writing? I.e no installed program could request any permission … | |
Hi. I am new to C# and a little stuck on arguments to pass to an external function. The intelisense tells me the function has these parameters [code]void LPP.XRS_Search(int x, int y, int w, int z, int cl, int vr, int sp, int[] PointResult)[/code] here is my call [code] int[] … | |
Now, knowing I'm fairly new on this whole PHP, MySQL, and HTML project. I'm working as an intern and my boss has run out of things for me to do so I'm creating a data driven website for him. I'm having a hard time with getting to work right. Here … | |
Hi, I've been trying to make a poker game, i got the basic things running like giving the cards to the player and dealer, but i am having trouble coming up with a way to compare the 2 hands... I'm new to python, i tried different ways and didn't really … | |
Hi, I am outputting a query into a table. I am listing titles of workshops, and dates and times. If there is more than one date/time for a workshop, I add a separate row for each date/time. I would like to have all the rows for each workshop be the … | |
Hello, I could use a spot of help today. I am very new to python (n00b) and I have a rather specific Issue I am trying to resolve. This problem can be solved using ArcGIS (for those who know it) I simply desire to know more about python so I … | |
Hi I have created two tables in MySQL using Navicat. When running an update query, I noticed that first, when I am entering a price for a product, the price is rounded to whole numbers it seems. Secondly, one field that I enter data in to be added to the … | |
Here Is My Code i am done with it and it works fine but i want to make this run in loop . like i want this program to ask Would you like to enter another Student Grade <Y/N>... Here Is the Code .. If Any 1 Can Help Plz … | |
I'm really new to javascript how do I make it that when I click a button a number on my page in the <p> tag with the Id of num gets 1 added to it so it i like 2,3,4,5 each time I click | |
In my application I use a class that extends a JDialog. When my application encounters certain errors this diaglog should popup with the appropriate message. The problem I have is that after the message appears, when I click the OK button, the message reappears one or sometimes two more times … | |
I don't know if there is something unstable about using $_SESSION variables or not, but I've written user management scripts for my website, most of the time everything works okay but sometimes my server goes off on it's own and I can't load any pages on my server until I … | |
Hi everyone This is my first post here and it would be great if someone could help me with this small problem. I have a PHP script which inserts form data into a MySQL database. But clicking on the Submit button produces the following error:- [COLOR="red"]Database ERROR: You have an … |
The End.