199,114 Archived Topics
Remove Filter ![]() | |
Hey I am very new to programming. I am taking my first C++ class. I am a little embarrassed to ask a simple question but I am stuck. I want to code a pattern that can vary by size etc. It looks like ***** 5**** 55*** 555** 5555* or ******** … | |
Okay I was just mucking around on python. I have no programming experience at all, and I havent yet finished school anyhow, but I was interested in python and many say that it is great and everything... So I was trying to make a code that would solve this problem … | |
Im having problem with saving register staff detail. After typing all the detail, and i choose to view the staff detail - it say "Data for Staff Number that have been entered is Empty." here's my full coding: admin.h [code]#pragma once #ifndef ADMIN_H #define ADMIN_H #include<iostream> #include<string> #include "Staff.h" using … | |
Ok, I posted earlier this week about reading in data from a csv/txt file into an array. My data is huge, 100 columns and 12000+ rows. I would like to name variables by column and then plot these variables. After I read the data line by line and delimit the … | |
How do I get the same result from this Python script in Visual Basic? [CODE=Python] import os username = os.getenv("USERNAME") desktop = "C:\\Documents and Settings\\%s\\Desktop\\" % username print desktop #Result = C:\Documents and Settings\<MY USERNAME>\Desktop\ [/CODE] I already have this, [CODE] Public Shared username As String = My.User.Name 'Gives computer … | |
Hello, i need function to Convert Hex numbers to Decimal.. My string is in this form 10,11 and i want to convert it in this 1A,1B.. Thanks | |
what kind of error is this? my page was just running fine. i did not change anything neither the location of the requested file. Warning: require_once(../php/main.php) [function.require-once]: failed to open stream: No such file or directory in.................... line 7 Fatal error: require_once() [function.require]: Failed opening required '../php/main.php' (include_path='.;C:\php5\pear') in..........................line 7. | |
Here is what I have so far: [code] package payrollpart2; /** * * @author Darryl */ import java.util.Scanner; public class Main { /** * @param args the command line arguments */ public static void main(String[] args) { Scanner input = new Scanner(System.in); //declare program variables String employeeName; double hourlyRate; double … | |
[COLOR="Red"]3.3 - Objects vs Types: Strings, char, int.[/COLOR] Strings used to be an array of char in C-style coding. Now they're objects in C++. Does this mean that int and char are not objects? | |
Hey guys, I am working on a small program in C# and need to figure out how to do this. I tried googling it, but nothing but local text file help comes up. So what im wanting to know is, how to write text to an online textfile such as … | |
[COLOR="Red"]3.2 - Defining and Differentiating Computation. [] vs ()[/COLOR] I'm trying to get a solid fix on how math computations work in C++ and how to declare their order, in particular with respect to ( ) operators. this adds to an array: [CODE] inventory[numItems++] = "armor".[/CODE] why don't I need … | |
![]() | Hi All. I am currently designing a photo sharing website. I need to make a script that deletes the image from the folder it is stored in and also from the database. I have done the database bit but i cannot work out the deleting from the folder bit. Any … |
Hi, I am a VB.net greenhorn so my problem might seem trivial but for me it is getting to be a Herculean and confusing task. :sad: My problem is that I am making a project where the user has to give a quiz where he/she has the choice of number … | |
Ok, I have a header file that each of my source files includes: #ifndef MAIN_H #define MAIN_H #include <string> #include <vector> #include <sys/socket.h> using namespace std; extern string CONFIG_FILE; struct _msg { string prefix; string command; vector<string> params; }; struct _channel { bool bLocalOnly; string name; vector<string> users; string mode; … | |
Let's say I'm writing a space game (just as an example, I'm not). Let's say that in this game I want to have the ability to create 300 different kinds of ships, 500 different crew members and a 100 different planets. When I start out, there's 0 of any of … | |
Why is my destructor not working properly when ran with my whole code it keeps displaying 01010101010101 etc here is my code [CODE]LinkedList::~LinkedList() { NodePointer ptr = first; while(ptr != 0){ first = ptr->next; delete ptr; ptr = first; } if (first == 0) cout << "List destroyed\n"; else cout … | |
Hi guys, I'm a grade 11 I.T student and I need help.I have to create a networking application in Java,something like Mxit or Facebook, just a simpler version.I have no idea what to do and my teacher is too stuck-up to help me.All I have is a GUI.Can someone please … | |
I have a class assignment where i have to calculate the total cost of a parking garage from hours but i have to do it with a method function. So this might be a stupid question but can you read the user input values from a textbox in the function … | |
for example if I have two arrys arr1[10,20,30] arr2[40,50,60] can I get help on how to merge them to get arr1[10,20,30,40,50,60] | |
Hi I am trying to get information from two tables in the database but it gives an argument exception saying "Column 'SubContratorID' does not belong to table .” Which 'SubContratorID' is it referring to …?? [CODE]String query = @"Select ps.PSubContractID,s.SubContractorID,s.FirstName,s.LastName,s.Position,s.Email,s.TelNo,s.Agency From PSubContract as ps, SubContractor as s Where ps.ID=@id and … | |
i try to compile and run seems like work perfectly but once i click the "add" button(something like save) error come out i dont know what problem with the codes [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* … | |
I'm working on a simple function to read in from a file called save.txt and i need to read about 7 or 8 characters in. 4 characters are numbers that represent North south east and west respectively the other 4 characters are delimiters(i don't know why i put them in … | |
Hi, The above code generates a window and it has a few buttons on it.That is working fine. But however the part of the code where class "FileDialog" is defined and the function "myButton5_Click" is used, it does not seem to work. The output should be such that - When … | |
For some reason, selectedindexChanged vb.net code is no longer firing. autopostback and enable viewstate are sill true. Enabled is set to true in code behind. Using VS2008. Any idea on what can cause this? Thanks, Randy [CODE]<asp:DropDownList id="ddlEmpName2" style="Z-INDEX: 138; LEFT: 192px; POSITION: absolute; TOP: 32px" runat="server" Width="152px" ForeColor="DarkBlue" DataValueField="EmployeeId" … | |
Hi there. I'm trying to figure out how to make this JS work with nested divs. Right now it looks for TagName 'div'. I have multiple nested divs and that seems to mess things up pretty good. I'm not sure how to add more detail to this code, like look … | |
hey guys, i was wondering if it is possible to edit the contents in a iframe to match your sites needs, like for example css/html. Is there any way this can be done in javascript or regular html? | |
hi this is my code. I want to validate new password with repeat password befor user press submit. [CODE]<p align="center">To reset your password, provide your current password</p> <form id="form1" name="form1" method="post" action="pcq.php"> <table border="0" align="center" class="mytable2" style="margin-left:175px" > <tr> <td>Current Password</td> <td> <input type="password" name="oldpass" style="width:150px;" /> </td> </tr> <tr> … | |
[This is a really long code so im just going to put the traceback part in and where I think the problem is] [def directions(): enter=0 nwscreen() Font1 = pygame.font.SysFont('ActionIsShaded', 25) d1 = basicFont.render('Directions',False,WHITE,BLACK) d2 = Font1.render('Directions',False,WHITE,BLACK) d3 = Font1.render('ALL ANSWERS MUST BE LOWERCASE',False,RED,BLACK) d4 = Font1.render ('Press enter to … | |
I am working on a code which will send users reminders like 10 minutes,2 hours, a day, one week before their event is due. I will like to get the datetime after the reminder has been removed from the startdate [CODE] $startdate = "2010-07-10 01:00:00"; // date chosen by the … | |
Hi all, I'm working on conference room booking software with MS-Access as the back end. I need to retrieve the records which doesn't clash with the already booked dates. I have a table called conference_room_status which has the fields Conference_Room_Name | BookedPerson | DateFrom | DateTo | TimeFrom | TimeTo … | |
i have written an html document webpage in a form of (calculator)and have connected it with java so i want to create an event so that when i press the button(1) it will appear on the screen.i have already created an event for the "clear"in way that when i press … | |
Hi, I need to get the current date without using [B]any packages or any construction methods[/B]. Simply, i want to get the current date by convert date to string. I used this code. Please find the below code... [CODE] String getDate = new SimpleDateFormat("yyy/MM/dd HH:mm:ss"); return getDate.format(date); [/CODE] But, i'm … | |
Hi there, In my project I have 3 folders which represent the 3 tier architecture.(the business layer, data access layer and the presentation layer) The frmMainMenu is in the presentation layer and in the presentation layer I have other folders that have other forms in it. When I try to … | |
how can i make the background image property not to be tile ( i want it to be as one picture in the middle) i am using vb.net2003 ;) thx | |
[CODE]<?PHP $results = mysql_query("SELECT * FROM messages, comments WHERE messages.user_on='$user2' AND comments.msg_id_fk = messages.msg_id ORDER BY messages.msg_id, comments.com_id DESC") or die(mysql_error()); ?>[/CODE] | |
Dear Friendz Ihave face problem with null value i remove the chk from null value n sql server and when i direct save anything in table it dosen't accept null value but when i save these in my form it accept null value . i don't know why form do … | |
Hello, I am quite new to swing, and I was trying the JFrame component, when this exception occurred , just when I tried to instantiate the JFrame object. It says the following: [code=java] Exception in thread "main" java.lang.NullPointerException at JFrameDemo.main(JFrameDemo.java:8) [/code] and line 8 is the following [code=java] JFrame frame … | |
I'm writing an assessment tool that cross checks the name entered by a person with a list of names of known people blacklisted by me. So far I can only figure out how to compare a users entry with one name, effectively limiting my blacklist to one name. I'm new … | |
hello, can somebody tell me why when i use a link on <form action="http://www.mysite.com/login.php" method="POST"> the login script won't work :( first i used only action="login.php" but now i need to use the link because i want other login forms on diferent pages (directory) like [url]http://www.mysite.com/news/[/url] and i can't put … | |
I have data.sql file and there is 151262 insert statement in SQL file. but while i try to IMPORT it in MYSQL database this give me following error. Fatal error: Maximum execution time of 300 seconds exceeded in C:\xampp\phpmyadmin\libraries\import\sql.php on line 111 Pls give some solution for this Problem. -keval | |
i am new to C and i am trying to learn more as i am taking a basic class. we started out with basic programs and now we are making a tic tac toe board. i was wondering what a 8 bit binary counter would look like. i know the … | |
Hi all, I didn't think this would be a problem, but it appears that others also search for this solution. [B]There is an annoying DING! when hitting the Enter key in a ComboBox in VB.Net[/B] so I sought solutions. Here is the solution I am working with. I created a … | |
Hey all, I'm having a problem with my WordPress contact form. It is a script I edited from a tutorial I found, and it should be working right. I have a jQuery script that is supposed to help validate it and process it without page refresh. The problem is that … | |
hi friends i made a web application using php and working fine. and i also developed the same site for mobile also. For that i made it as imageless and optimised. and i uploaded in a folder. now i just want to divert user who is using mobile to mobile … | |
Hi guys would like to know if there is any benefit in learning how to code in asp.net? I am a alright coder in php but is there anything asp.net can do that php cant? please let me know, thanks. | |
I am writing a program to read ain a file. s axis -1.50000E+01 to -1.49000E+01 t axis -1.50000E+01 to -1.49000E+01 4.16402E-06 0.0077 repeat for new numbers (these values don't match those taken in below, I just pulled them out of a random part of the file) the format doesn't really … | |
How do I create a method header that takes a string as an argument and returns the characters in the argument as a set. Please only reply if you know the answer. Thanks. [CODE]public class Food { private TreeSet<String> myList = new TreeSet<String>(); public Food() { super(); myList = new … | |
I have used IT++ for half a year, which is a C++ liabrary. Recently, I got a problem when I try to write the HEADER file for a class, with a member which is another class object. Here is part of my code: [CODE] class A { private: fixvec fv; … | |
Hi, When i'm click on the web page, the page turn off to balck color. is it possible? Help me.......... | |
Hi there, I want to upload files with the extension pdf, doc excel and images to the MS SQL database from a C# desktop application. I am using C#.net and not asp. I want to upload a file from a interface to the ms sql database, Hey can someone guide … |
The End.