141 Topics

Member Avatar for
Member Avatar for Iamthecheese

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

Member Avatar for Iamthecheese
0
151
Member Avatar for Iamthecheese

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 …

Member Avatar for Ezzaral
0
2K
Member Avatar for arun_taurean

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 …

Member Avatar for jingda
0
117
Member Avatar for samgodcreation

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 …

Member Avatar for jingda
0
232
Member Avatar for daniel7912

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 …

Member Avatar for lyrico
0
239
Member Avatar for Nevillelajru

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 …

Member Avatar for Mitja Bonca
0
1K
Member Avatar for Sudo Bash

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 …

Member Avatar for zelkea
0
274
Member Avatar for agr8lemon

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 …

Member Avatar for agr8lemon
0
140
Member Avatar for appsrox

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

Member Avatar for richieking
0
947
Member Avatar for Kadafiz

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 …

Member Avatar for lyrico
0
2K
Member Avatar for danholding

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 …

Member Avatar for danholding
0
173
Member Avatar for jlivvers

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 …

Member Avatar for Ketsuekiame
0
171
Member Avatar for lasano

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 …

0
106
Member Avatar for cirno

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 …

Member Avatar for cirno
0
5K
Member Avatar for arctushar

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?

Member Avatar for faulkj
0
224
Member Avatar for tcon

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 …

Member Avatar for Luc001
0
2K
Member Avatar for saad749

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 …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for sallubhai

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

Member Avatar for TrustyTony
0
139
Member Avatar for Pokenerd

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 …

Member Avatar for Pokenerd
0
140
Member Avatar for tastyTreeHUGGER

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

Member Avatar for tastyTreeHUGGER
0
297
Member Avatar for gis-brad

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 …

Member Avatar for gis-brad
0
282
Member Avatar for Sunshineserene

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

Member Avatar for Sunshineserene
0
2K
Member Avatar for qazplm114477

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

0
97
Member Avatar for SSSD

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 …

Member Avatar for khakilang
0
375
Member Avatar for jtok

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

Member Avatar for BrianHelp
-1
150
Member Avatar for phummon

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 …

0
144
Member Avatar for hindu times

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 …

Member Avatar for iceandrews
0
409
Member Avatar for crackerjacker

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 …

Member Avatar for karabomoeng
0
237
Member Avatar for Dingbats

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 …

0
501
Member Avatar for golansha

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 …

Member Avatar for nick.crane
0
850

The End.