64,152 Solved Topics
Remove Filter ![]() | |
This Code allows you too countdown seconds and minutes but im not sure how to add hours or maybe even days to it:( =========================================================================================== [CODE]Imports System.Threading.Thread Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If InStr(timetowait.Text, ":") Then Dim time() As String time … | |
Hi guys, first off just wanted to say that this website has been immensely helpful to me for my programming class. I asked a question to help with a lab a couple of weeks ago and was able to figure out the issue with the forums help, so thank you. … | |
hello. i have a problem in selecting destination and time. when i select any number in destination the program always tell me that i choose number 1 (taiping). and the time it always show 1030 even i input number that is not 1. please tell me where i'm wrong here. … | |
Hi all, I have region which initially needs to be fixed in a certain position. After data is returned to the page and the user scrolls down to the bottom instead of remaining in its fixed postion I want my region to float to the top of the page, if … | |
Hey, I'm on the rookie side, to Python, and Pygame and new to this community, and I'm confused if this could be possible; I want to change the data type of a list, in Python, from strings to integer (they have to be integer, because I need to sort them … | |
Hi!, I have a text file that contains a 2 dimensional matrix, and I will have to deal with many different files with different matrix dimensions, so I decided to use vector of vectors as they double their size automatically. the problem is that I don't know how to get … | |
public class thermostst{ private float currenttemp(); } I thought in java only abstract classes can contain abstract methods like this! I got this from a algorithms and data structures book and im guessing its a printing mistake and currenttemp should not contain the () . Thank You | |
So both classes are in the folder. How am I able to call variables in one class from another another class. For example, I ahve 2 classes, Class1, and Class2. So in Class1, I have "double a" and its value. How can i refer to this "double a" and its … | |
I have the following html file [CODE]<!DOCTYPE hmtl> <html> <head> <title> Minimum Spec Test </title> <script src="Compatability.js"></script> <script type="text/javascript"> var can, ctx; var img = new Image(); function Init() { can = document.getElementById('canvas'); can.width = 100; can.height = 400; ctx = can.getContext('2d'); img.src = 'Images/_test.bmp'; ctx.drawImage(img, 0, 0); } </script> … | |
I'm modifying a page that handles content addition. I've been tasked with allowing simple PDF file uploads, but can't figure it out. The PDF is to be posted, then uploaded and the title saved into a database field. All this functionality is to be contained within the one content addition … | |
don't go by the size of code. [U]before inserting search function my code was working fine with insert function. but don't know what is wrong with search fn. or declaration of variables in main().[/U] [B]this is what compiler shows. tree.cpp:316:15: error: cannot convert ‘int*’ to ‘redblacktree<int>*’ in assignment tree.cpp:318:15: error: … | |
Hi, this is what i'm trying to do [icode] class a { private: string attribute; string p_msg; public: string& getAttribute() { return attribute; } }; [/icode] above is the class, i want to call function getAttribute() from class a is a linked list: list<a*> aa [icode] void sortFile(Manager& manage, const … | |
Can the value of vertical scrollbar attached to Msflexgrid be made to maximum through vb code. thanks & regards | |
Hello, [[All sample links may not work after the thread is solved, I will keep them up as long as I can though]] I'm trying to make a graph work, which it does, not when CSS is present on a page though... In my setup I use graph.php to create … | |
I need to copy multiple sheets into the template accordingly. well, i manage to copy for the first sheet only. i've tried to modify the code to copy multiple sheets at one time and i couldnt get it right. here's the code for copying the first sheet into the template. … | |
Hi All, I am having a bit of an issue moving back into Java. The issue that I am having is that I am trying to call a method of a custom class that has been instantiated in my main java file from a form that is also in an … | |
I need some help. I'm trying to create a number pad like a cellphone that captures user input by pressing buttons in a panel on the left and displaying what the user punches in the top panel. Then I have a clear button in the panel on the right to … | |
I do not under stand how to get NODE to work. Worked fine with typedef struct but when I changed to template stopped working??? [CODE]template<typename T> struct Node { struct Node(T data) { this->data = data; previous = NULL; next = NULL; } T data; struct Node *previous; struct Node … | |
Hi, i would like to know to retrieve out the date and time from my database to show on the wcf test client and for eg, after choosing a certain date, how to do the coding in order for the events to show that's happening on the date i choose … | |
My Struct was looping and working well, Till i Added in a New Struct and add that to the Loop, Now its not Working that well plus not outputting the Details only the hours. could some one help me with this.. [CODE] struct Trains { int Train_Id; //train ID string … | |
![]() | Hey guys, I am having trouble in writing this code. I don't know where to start other than the beginning basic things. I just need to know how to start this thing because I know it is a loop, but loops are my weakest things as of right now. Here … |
Hey everyone, I am fairly new to the programming world, but I am a quick learner. I am trying to make my "membership area" register.php work properly, but there seems to be a parsing error as follows here: "[B]Parse error: syntax error, unexpected T_VARIABLE in C:\Program Files (x86)\EasyPHP-5.3.8.1\www\register.php on line … | |
![]() | So basically, I'm making a Windows Form Application CLR which calculates a worker's wage. Problem is, when I select the schedule (day,night,afternoon,mixed), I use a button for each schedule respectively, which, upon click, calculates everything on the data you've input. While this is effective, I am being asked to use … |
Hi, there is that thing that i need to handle atoi () function error.. Now for explanation atoi ( some const char * which is int (like '1') ) gives me that int, but if i write like this atoi ( 'n' ) then shit happens and it return's a … | |
hey im trying to create a program where the user will type in a number then choose the units its in and units it will be converted to from 2 comboboxes. The output should be changing as different units are clicked without a button.Please tell me how to fix my … | |
Is it possible to create a stored procedure to delete all records from a table (i.e. DELETE FROM <tablename>), but pass the table name to the procedure as a parameter? My desire is to have only one procedure for deleting multiple tables' records; I would simply pass in the table … | |
Hi, I am NOW doing a short application that installs a program, without the program being embedded into the application. I have found myself at a loss for code, now that I cannont figure out how I can COPY the entire contents of a folder to a new folder, WITHOUT … | |
[CODE]#include <iostream> // required to perform C++ stream I/O #include <iomanip> // required for parameterized stream manipulators using namespace std; // for accessing C++ Standard Library members // function main begins program execution int main(){ double wage = 0, raise = 0, raiseMoney = 0; int years = 0; // … | |
Hi ~ Before posting my code, can someone tell me if it is possible to do a dual sort on an array of chars and an array of int, double or float? Would you have to use two separate sorts? Really confused here. I am trying to sort an array … | |
hey guys lol i spent 5 hrs thinking about building this asterick pattern and i am still getting troubled by the spacing for the 3rd pattern , anyone can help me to reduce 1 spacing so the 3rd pattern isn't out of place?XD [CODE]#include <stdio.h> int main() { int c,c_2,c_3,c_4,c_5,c_6,c_7,c_8; … | |
Does anyone know how I can base my re condition based on it not finding a match. I have the following at the moment ..... [CODE]if re.search(r'123', os.uname()[1]):[/CODE] | |
Hello everyone. I'm trying to code the cd shell command in c. I used chdir function to code it but the problem is that when I execute the program on the terminal it doesn't change the directory. I kept a series printfs and conditions to test if it changes, though … | |
So I was running a simple python program in IDLE, and I got this subprocess error. I looked it up on Google, and found much information about it. None of it really got me anywhere. I think the error has to do with AVG blocking IP 127.0.0.1. (I am using … | |
I get the following Error from the code below: Warning: require_once(JS/Extractor.php) [function.require-once]: failed to open stream: No such file or directory in C:\Users\gross.t\Desktop\choicegrid\jsextractor.php on line 12 Fatal error: require_once() [function.require]: Failed opening required 'JS/Extractor.php' (include_path='.;C:\Users\gross.t\Downloads\pear\;/library/') in C:\Users\gross.t\Desktop\choicegrid\jsextractor.php on line 12 [code]<?php $path = '/library/'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once … | |
Hello all, I am a beginning python user and I am a bit perplexed by something that I am writing up. What I have to do is assign buttons to colors (Traffic lightesque). There is a red, a green and an auto. The tricky part is that the "auto" button … | |
[CODE] Film[] callFilms = new Film[100]; static int numberFilm = 0; [/CODE] [CODE] //Search Film Method public static void searchFilm(Film[] callFilms){ Scanner scan = new Scanner(System.in); int condition = JOptionPane.YES_OPTION; boolean check = true; do{ System.out.println(); System.out.println("Search Films"); System.out.println("============"); System.out.print("Please Key-in Item Code: "); String code = scan.nextLine(); for(int i … | |
hi , I m newbee to dreamviewer CS4 and php.i have installed xampp and php my sql works fine. Now when i select a new PHP layout and insert<p>The time is now <?php echo date('H:i:s'); ?>.</p> in body section i don't get to see any date in live view.I have … | |
Hi,I spent all night trying to figure this out. Could someone take a look and show me what I'm missing? I getting this compiler error: [B]unterminated #ifndef [/B]. But I have [B]ifndef[/B] at the beginning and [B]endif[/B] at the end of the class. [CODE]//Header file. //Class definition for teh stack … | |
Dear all, When printing a grid, for example a chess board, I was hoping it wouldn't have the same output as the console. When I want the position to be grid[x][y] = 5, 5, it will place the counter in the bottom right corner in a 5x5 grid, (5,1) instead … | |
| |
Hi I want to make an abstract method. But I always get the error " cannot declare a body because it is marked abstract." When I delete the return then I get the error than I need a return. can someone help me please [CODE] public abstract Graphics drawRectangle(Graphics drawarea) … | |
Hi all, I'd appreciate if somebody could shed some light on the following; I have a tabbed container, each tab has the same controls but for a different target. I am using a timer to control when to fire each event from the 5 different tabbed controls, my problem is … | |
Hi folks, (Python 2.4.x - I cannot install any modules including dateutil) Here's what I have so far. [code] mydate=['20111025.00', '20111026.12'] start_time= time.strptime(mydate[0], "%Y%m%d.%H")[:5] end_time=time.strptime(mydate[1], "%Y%m%d.%H")[:5] for myhour in datespan(time.strptime(mydate[0], "%Y%m%d.%H")[:4], time.strptime(mydate[1], "%Y%m%d.%H")[:4], delta=datetime.timedelta(hours=1)): print myhour [/code] What I'm trying to do is take the two values in mydate list … | |
Hello Guys, I am building an application using C# as a front end(VS 2008). I have a main form which contains a main menu and other controls like labels, calendar etc.. the main form I am talking about starts as full screen, my problem is when I drag/drop/edit controls in … | |
Hi all, I am having confusion on polymorphism 1)Is Method Overloading considered as polymorphism? 2)Is there two types of polymorphism(run time and compile time ) available? thanks in advance | |
I just added a pause button to my game, using most of this code: [URL="http://msdn.microsoft.com/en-us/library/bb195026%28v=xnagamestudio.31%29.aspx"]http://msdn.microsoft.com/en-us/library/bb195026%28v=xnagamestudio.31%29.aspx[/URL] For some reason it changes the Window.Title to "[GameName] - Paused" and even though it's unpaused it still says paused in the title. I never told it to change the title so I guess it … | |
help me pls...i want to display the total sales within the date in the two dtpicker and by the category specified...when i run the program using my code an error occurs the no value given for one or more required parameters..which i cannot understand..pls. help me..here is my initial code... … | |
Building a phonebook program for school--very much a work in progress. I still need to write a sort function, tweak my delete function, etc. But actually what I'm hoping you folks could answer is hopefully simpler--for some reason I seem to have a while loop that is executing twice, and … | |
So...I first tried NetBeans, and I had everything working again cept for this error about the package "R". So, then I went to eclipse and followed instructions of everything and again the error is there too. I am really lost with this and it always involves with this R package..any … | |
hey im trying to create a program that will convert between metric and standard units.I chose length as my measurement so i have nanometer,millimeter,centimeter,meter,hectometer,kilometer,inc,feet,yard and mile. i wanted the inpu to be - number to be converted(text box) -unit number is in(combo box) -unit to convert to(combo box) i know … |
The End.