141 Topics
|
|
I'm having trouble formatting a binary tree. In my program, the tree format should print every output as such: 35 30 29 25 24 20 15 This is the code that I have thus far. [CODE]public void treeFormatTraversal(){//begin int level = 0; if(root !=null) treeFormatHelper(root, level); else System.out.println("\nTree is Empty\n"); … |
|
Okay, so I have a rather easy problem that I can't seem to figure out. I'm getting cannot find symbol errors for T item=(T)input.next(); The program is a test file for a Binary Tree program. I was told the input 'item' has to be in T type. Obviously they have … |
|
hi Recently i had formatted my laptop with windows 7 premium OS.I had plugged my usb and i had forgotten about it and i had formatted whole system.Now when I plug my pendrive i'm noty able to access it..I think during formatting the laptop perhaps some files might have been … |
|
I have a HP Pavillion DV6000 laptop,512MB RAM. 160GBHDD with a Windows Vista operating system installed. I want to format it using windows XP but the setup couldn't find harddisk on my computer......while I try to format using Windows 7, it find the harddisk.....Please, anybody with solution should kindly come … |
|
Hi, At the moment I am pulling a record from the database which is in datetime format. Could someone please tell me how I can modify this to just display the time and exclude the date? Many thanks for any help. [CODE]<?php $time = mysql_query("SELECT * FROM gps WHERE imei … |
|
I have a datetimepicker which reads a date as dd-mm-yyyy. the sql im using(sql server 2008) is only reading mm-dd-yyyy. i am having a problem with changing the format of how the date is saved. i put a catch to the code and this came up System.Data.OleDb.OleDbException: Conversion failed when … |
|
I am adding a secondary hard drive to my dell tower. I am wanting to duel boot Windows XP and Slackware Linux. I currently have only Windows XP on my computer, but I am not sure what formating it has on it. My question is: what format should I use … |
|
Hello everyone! I'm trying to get a date from SQL without the year. Every code I've seen has included the year. Here is what I have now. [CODE]SELECT * , convert(CHAR, \"date\", 10) AS ndate from dbo.MYDB where 35 > DATEDIFF(d,\"date\", GETDATE())";[/CODE] I would like ndate to be show like … |
|
Hello, I want to write to a file in a particular format. There should be 2 columns, the first column should allocate 5 spaces to store digits and the next column should allocate 30 spaces to store characters. Ex:- [code] 1 Dave 234 Einstein 100000 Bob . . . [/code] … |
|
i have ID numbers that i want to enter it into my database using filling form by user. so i need to validate this number format. number format should be like this. first 9 numbers and after nine numbers it must have a letter V. (123456789V) i need to validate … |
|
Hi all i have been dancing around this problem for a couple of weeks now and have not got any closer. Description: i have created a crystal report in SQL5 and exported it fine but now i have gone to open it in visual studio 2008 and it does not … |
|
Hi, im my c# windows application i have some reports involving currency. However the way to set the format that I've seen "C" sets the currency symbol to the dollar sign instead of the GBP sound which is the one i need. I've checked my systems regional settings and they're … |
|
I have a calendar and when selecting the date the date format inserted to text box is in the format ' 10/10/2010'. This is not getting inserted into oracle database. Oracle accepts only the format '10-OCT-10' . So please help me to change the format of date that getting selected … |
|
Hello again, codegurus. I need to ask your assistance in converting string to datetype, from 'dd/mm/yyyy' to 'yyyy-mm-dd'. The user could key in either the 'dd/mm/yyyy' format or 'yyyy-mm-dd' format in a textbox. the system would check for both format and convert both to the 'yyyy-mm-dd' date format, to be … |
|
Hello I want to change date format to insert date in mysql. I tried as below code [CODE]<script type="text/javascript"> $(function() { $("#datepicker").formatDate('yyyy-mm-dd'); $("#datepicker").datepicker(); }); </script> [/CODE] but its not working form me. can anybody suggests me how to do it? |
|
hi im sorry if this isnt in the right forum but i cant seem to find any threads in this. i cant seem to create a datetime object in vb.net with datetime string that's in this format "hh:mm:ss tt MM/dd/yy". The error im getting says its not a recognisable string … |
|
Hi, I am trying to make a Picture viewer for my BS Computer Science 1st Year Project in [B]Turbo C Compiler[/B]. I have to stick with this compiler atm. I want to be able to display BMP,PNGs and JPEGs [TIFF and others too if it won't be very difficult]. I … |
|
Hi, How can I print this figure if I have an array like this? It should be a for-loop but don´t know how. [CODE] labyrinth = \ [[0,0,0,0,0,0,1,0], [0,1,0,1,1,1,1,0], [0,1,1,1,0,1,0,0], [0,1,0,0,0,0,0,0], [0,1,1,0,1,1,1,0], [0,0,1,1,1,0,0,0], [0,1,1,0,1,1,1,0], [0,1,0,0,0,0,0,0]] [/CODE] figure: ############. ## ## ##. . . . ## ##. . . ## #### … |
|
I know this is strange, but i have a simple syntax question. Right now I'm working with a thread in the following format. The use of "setDaemon" in the run function does not work, as you apparently must set Daemon before you start the thread. [ICODE]new Thread() { @Override public … |
|
I am writing a calendar in C. I'm still very new to the language. I think i wrote most of the functions/algorithms correctly (it would be nice if you guys could check for any errors too). Now I'm having a tough time printing the calendar out In a correct format. … |
|
Hi, I am a beginner-novice programmer using Python to build custom tools in ESRI's ArcGIS. I have what seems like a simple problem, but I am afraid I'm missing a core concept. Here goes... In this simple example I assign string values to some variables and then change the text … |
|
Hi, I am getting this error for my codes: Exception in thread "main" java.lang.NumberFormatException: For input string: "{ 1.0, 2.0, 3.0, 4.0, 5.0, 1.0, 2.0, 3.0, 4.0, 5.0, 1.0, 2.0, 3.0, 4.0, 5.0, 1.0, 2.0, 3.0, 4.0, 5.0, 1.0, 2.0, 3.0, 4.0, 5.0, 1.0, 2.0, 3.0, 4.0, 5.0}," at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1224) … |
|
I was just wondering if there was a more optimal way to add dates to mysql if I had a drop down for each field. This is the code I use to format the dates [CODE]$date_hired = format_date($_POST['month_datehired'], trim($_POST['date_datehired']), $_POST['year_datehired']); //I have 3 dropdowns in my form, 1 for months, … |
|
Hello, recently i found one of my old USB devices but when i plugged it in and tried to delete a file it told me it was write protected. Now i have decided to format it but it doesnt let me because it is write protected. It doesnt have a … |
|
It used to be, that when I would type: [CODE]#div{[/CODE] and hit "return", Visual studio would autocorrect to: [CODE] #div {[/CODE] as well as a number of other things. That is just the easiest example. It also doesn't automatically indent the next line... I am using Visual Studio 2008 SP1. … |
|
Hi everyone, I'm a moderately experienced C++ programmer who's trying to do a little socket work. Don't ask why, but I'm to write a program which, when activated, sends an HTTP POST request to a remote end server. The socket part of the work is done and successfully tested; all … |
|
Hi there, I'm having some trouble formatting the date that appears underneath each "News" post on the following page - [URL="http://www.rjt-online.com/home.php"]www.rjt-online.com/home.php[/URL] Here is the code for the XSL file that is being pulled into the above page with php. The xsl file is pulling in an RSS feed from my … |
|
Hello- i have a 16gb flash drive, and after installing Portable Apps on it, windows belives it needs to be formated and when i try to formate it (i've tried FAT32, NTFS, and exFAT) it gets to the very end(where it writes the system files) and then errors out saying … |
|
Hello Everyone, my first post - so please don't shoot me if it goes wrong! I'd been looking for this for some time now and have seen a number of related queries but no solutions. I cannot take credit for the whole code here, but I did adapt it to … |
|
Hi, I have a string that might include a date as substring. For example the string may be "Oct 23, 2008 16:41:58 GMT Unassigned". I would like to check if a substring of the given string can be converted to a date. I tried using: [code] public static bool IsDate(String … |
The End.