199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for YasukiMai

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

Member Avatar for finito
0
90
Member Avatar for Dragazarth

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 …

Member Avatar for Dragazarth
0
163
Member Avatar for coolblazer

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 …

Member Avatar for coolblazer
0
174
Member Avatar for toomuchtodo

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 …

Member Avatar for toomuchtodo
0
332
Member Avatar for WildBamaBoy

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 …

Member Avatar for vb5prgrmr
0
144
Member Avatar for Geek_Cyborg

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

Member Avatar for eng.jawad
0
118
Member Avatar for Ajuddy

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.

Member Avatar for almostbob
0
144
Member Avatar for hawynstud

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 …

Member Avatar for hawynstud
0
145
Member Avatar for crapgarden

[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?

Member Avatar for crapgarden
0
231
Member Avatar for UNOWN

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 …

Member Avatar for GAME
0
138
Member Avatar for crapgarden

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

Member Avatar for crapgarden
0
129
Member Avatar for doctorphp

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 …

Member Avatar for kumiyare
0
127
Member Avatar for gracea

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 …

Member Avatar for mnmw
0
304
Member Avatar for emps

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

Member Avatar for dusktreader
0
163
Member Avatar for Zinderin

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 …

Member Avatar for Geekitygeek
0
145
Member Avatar for smoothe19

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 …

Member Avatar for smoothe19
0
169
Member Avatar for w_van_heerden08

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 …

Member Avatar for scrappedcola
0
134
Member Avatar for valkerye

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 …

Member Avatar for valkerye
0
113
Member Avatar for costapico

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]

Member Avatar for scrappedcola
0
755
Member Avatar for judithSampathwa

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 …

Member Avatar for Zinderin
0
177
Member Avatar for 1314abc

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

Member Avatar for Taywin
0
112
Member Avatar for avarionist

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 …

Member Avatar for avarionist
0
156
Member Avatar for gear26926

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 …

Member Avatar for gear26926
0
208
Member Avatar for blackbr

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

Member Avatar for CodeGorilla
0
2K
Member Avatar for scaryhelmet

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 …

Member Avatar for Taywin
0
111
Member Avatar for nick3592

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?

Member Avatar for almostbob
0
99
Member Avatar for ayesha789

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

Member Avatar for almostbob
0
376
Member Avatar for wolfeater017

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

Member Avatar for TrustyTony
0
185
Member Avatar for tunde011

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 …

Member Avatar for chrishea
0
758
Member Avatar for s_sridhar

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 …

Member Avatar for dmarino1
0
163
Member Avatar for kuffour

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 …

Member Avatar for Jayavardhan
0
90
Member Avatar for Jayavardhan

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 …

Member Avatar for Jayavardhan
0
461
Member Avatar for judithSampathwa

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 …

Member Avatar for PierlucSS
0
589
Member Avatar for **UM HASSAN**

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

Member Avatar for RickNPhx
0
105
Member Avatar for Barrett1

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

Member Avatar for Stylish
0
175
Member Avatar for like_bilal02

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 …

Member Avatar for speedcat
0
187
Member Avatar for paul ince

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 …

Member Avatar for Stefano Mtangoo
0
955
Member Avatar for larkson

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 …

Member Avatar for mrnutty
0
187
Member Avatar for Squit

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 …

Member Avatar for almostbob
0
218
Member Avatar for keval_hack

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

Member Avatar for tesuji
0
2K
Member Avatar for al3x748769

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 …

Member Avatar for viwenka
0
148
Member Avatar for TommyRay

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 …

Member Avatar for TommyRay
0
949
Member Avatar for EvolutionFallen

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 …

Member Avatar for EvolutionFallen
0
192
Member Avatar for rajeesh_rsn

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 …

Member Avatar for chrishea
0
122
Member Avatar for nick3592

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.

Member Avatar for almostbob
0
213
Member Avatar for cmutzel02

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 …

Member Avatar for cmutzel02
0
100
Member Avatar for ttboy04

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 …

Member Avatar for ttboy04
0
105
Member Avatar for TurboCoding

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

Member Avatar for TurboCoding
0
166
Member Avatar for TejaDharma

Hi, When i'm click on the web page, the page turn off to balck color. is it possible? Help me..........

Member Avatar for Jayavardhan
0
133
Member Avatar for judithSampathwa

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 …

Member Avatar for nick.crane
0
628

The End.