199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for fg_aa_c

Hi I'm new here and I have a problem which is hindering me. I have opened a file and wrote some stuff to it. Then later on I want to open the file and read it back in to a buffer. When I try to read the file back in …

Member Avatar for Madawar
0
127
Member Avatar for vedmack

Hi my file is located at c:\AdminFiles.xml i tried the following ways window.open("c:/AdminFiles.xml",'HeavyXml'); window.open("c:\AdminFiles.xml",'HeavyXml'); window.open("c:\\AdminFiles.xml",'HeavyXml'); in the above i'm getting the following error: "Firefox doesn't know how to open this address, because the protocol (c) isnt associated with any program" window.open("file:///c:\\AdminFiles.xml",'HeavyXml'); the last attempt give to respond at all... any …

Member Avatar for delomos
0
285
Member Avatar for atoivan

i want to write a a program that will accept student name and grades and output it.use an array data structure in the implementation this program and implement the following write method that will traverses the array and allow the user to perform the following processes a) search for a …

Member Avatar for jonsca
0
222
Member Avatar for localp

I successfully configured MYSQL with VS2008, i executed the following code, and no errors were thrown. [CODE] #include <mysql.h> #include "stdafx.h" void main() { }[/CODE] Now i need to write a C++ code to retrieve some values from a Database, therefore i used the following code; [CODE] #include <mysql.h> #include …

Member Avatar for localp
0
275
Member Avatar for phoenix32

Good day! Im a new programmer in vb.net and it seems that i cant update my table in access 2007 here is my code. [code] Try con = new oledb.oledbConnection("Provider = Microsof.ACE.OLEDB.12.0"; data source = |DAtaDirectory|\Attendance.accdb; Persist Security Info = False;") con.Open() sql = "INSERT INTO tblProf VALUES('"&txtEmpNo.Text&"', '"&txtProfName.text&"','"&txtProfLname.Text&"')" cmd …

Member Avatar for kvprajapati
0
195
Member Avatar for wst

this is my header: [CODE]#include <string> using namespace std; class node{ public: friend class mesh; private: int id; double x,y,z; }; class element{ public: friend class mesh; ~element(); //private: int id; int type; int groupid; int geoid; int nodNum; int *nodeid; }; class mesh{ public: mesh(string filename); void showMesh(); ~mesh(); …

Member Avatar for jonsca
0
163
Member Avatar for RenanLazarotto

I've found a lot of programs over the internet that have custom buttons. I mean... normal behaving buttons but using images, or shapes, as the button itself. I've searched a bit on Google and I've reached a project in VB.net, but it didn't work. Maybe was because VS2010 converted it …

Member Avatar for RenanLazarotto
0
98
Member Avatar for Naynah

I'm a Python semi-beginner and i have to do a prac but the problem is i've totally forgetten how to do it! Can you please help me get started with part 1 even if its just 1.a because every time i tried to get it to work it keeps saying …

Member Avatar for Naynah
0
165
Member Avatar for HoneyBadger

Guys, how do I add an item to a list using a loop? My loop in a nutshell does this: [CODE]for w in book_line.split(" "): word_list = [] if w != "": word_list.append(w.lower()) return word_list[/CODE] While experimenting with this I got mainly two results: 1.) When I use return word_list, …

Member Avatar for HoneyBadger
0
3K
Member Avatar for tKc

Hokay so, i gotta make a program that reads an adjacency matrix from a data file and then outputs which nodes are adjacent to the others. In the data file there are 0's and 1's, 0 means that they are not connected and a 1 means that they are. I …

Member Avatar for mrnutty
0
482
Member Avatar for KMC

Hello, I am completely stuck on a question I was assigned and was hoping for a little guidance to get me started. The question is: Create a program that outputs the molar mass of a molecule. The user will enter a molecule with each atom individually (CO2 would be entered …

Member Avatar for KMC
0
80
Member Avatar for patrickgormally

Hi! I am trying to do a project in which I draw a Christmas tree with about 3 segments, filled in with color and with writing below it saying "Merry Christmas". Sadly, I have no idea where to being! I'm able to draw the Christmas trees using stars by defining …

Member Avatar for woooee
0
3K
Member Avatar for xtra333

Hello. My instructor want me to write a magic Square code. And here is what the square is supposed to print: 11 18 25 2 9 10 12 19 21 3 4 6 13 20 22 23 5 7 14 16 17 24 1 8 15 Here is my current …

Member Avatar for woooee
0
125
Member Avatar for patrickgormally

I am reading a text file inside Python that contains salaries and the raise they will receive as a percent. I am trying to multiply the initial salary by the percent and print the salary after the raise has been applied. I keep receiving an error message which is as …

Member Avatar for patrickgormally
0
3K
Member Avatar for lili.edryana

Hello fellows. I need some help regarding my script. I have a simple php script contains form to insert [B]First Name[/B] and [B]Last Name[/B]. This works successfully. But my problem is when i try to display the posted data to ASP page, the ASP page doesnt come out. What should …

Member Avatar for lili.edryana
0
2K
Member Avatar for rairai979

Hello, I'm using SQLBulkCopy to import data from a text file. There is a lot of data involved and I would really rather not import it row by row. There seems to be a problem with fields containing both numbers and text. (for example, a phone number '555-1212'). All fields …

Member Avatar for buddylee17
0
127
Member Avatar for mbarandao

Good day all: I've been experiencing a great difficulty resolving a problem concerning replacing [CODE]<br/>[/CODE] to an actual newline inside a textarea box. Much of the problem has been because the data in the textarea is populated via a php script in this manner: [PHP] echo "formObj.servicedesc.value = '".toSafeString($inf["servicedesc"])."';\n"; [/PHP] …

Member Avatar for mbarandao
0
123
Member Avatar for atramposch

[CODE]void user_input (int * array, int intSize) { printf("Please enter any number of strings (80 characters per string max), enter an empty string to signal input completion\n\n"); int i = 0; int j = 0; int arrayMax = MAXARRAY - 1; char input[81]; while (input[0] != '\0') { printf("->"); i …

Member Avatar for Shankye
0
159
Member Avatar for markaman

I have 3 text fields named "month, day, and year" And 1 hidden field named "Date2" My goal is to have the 3 fields combine to enter as date in Mysql. I've tried this many different ways, the latest having the value of Date2 as [ICODE]<?php echo $year,'-', $month,'-', $day; …

Member Avatar for luespi
0
177
Member Avatar for by_gabrielos

Hllo everyone. I am Gabriel from Romania (sorry for my bad english) My problem is: I have 3 listbox (1.ID 2.Online ID 3.Offline id) Now... From a .txt file or from a button an id/id`s are inserted in listbox 1. A second button "check status" verifies if these id`s are …

Member Avatar for Diamonddrake
0
154
Member Avatar for javeria3

The problem is Design a class named Person with fields for holding a person's name, address, and telephone number. Write one or more constructors and the appropriate mutator and accessor methods. Next design a class named Customer, that extends the Person class. The Customer class should have a field for …

Member Avatar for jon.kiparsky
0
3K
Member Avatar for zlloyd1

I have a very simple PHP script which doesn't work correctly for no reason at all, except that I am cursed:scared:!! This is my code and then I will give you the retarded error message I am getting!! [CODE]<html> <form action="get.php" method="GET"> <input type="text" name="myname"><br> <input type="submit" value="click here"> </form> …

Member Avatar for diafol
0
247
Member Avatar for nika201

Hey, anybody know if there is a DLL available for Image Magick that I can put in the /ext directory and use Image Magick without having to install the Image Magick software? Thanks.

Member Avatar for nika201
0
145
Member Avatar for bejums

Hello I'm having trouble extending JPanel. I know how to extend JFrame but my assignment calls for JPanel. Here is what I have: [CODE]import java.awt.Color; import java.awt.FlowLayout; import java.awt.Graphics; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextField; public class Guess extends JPanel { private …

Member Avatar for bejums
0
3K
Member Avatar for Tellalca

Hey; I have an assignment but I'm having trouble because I don't know almost any assembly. I have figured out something but please help me if I have mistakes, and with the 3rd formula. Using knowledge from previous weeks, write assembly programs which calculate the given formulas: a)Sum (i=1 to …

Member Avatar for Kieran Y5
0
108
Member Avatar for Dmiller071

* Title Typo = / * Hi there, I'm working on a small section of code which will be used in a very large c++ game for my final project. I'm doing an interactive RPG/Fighting game but I'm running into an error. I have a Player class and an Enemy …

Member Avatar for Dmiller071
0
194
Member Avatar for foliot

I have just run into ridiculous problems with arrays, and it appears I have no idea how they work, so I need some help. I have this class: [CODE]class pixelmap{ public: pixelmap(const uint& width, const uint& height); pixelmap(); ~pixelmap(); uint width; uint height; uint *values; pixel *pixels; void setValues(); void …

Member Avatar for StuXYZ
0
194
Member Avatar for lasl0w

Hey all, I'm implementing a hash table for a spell checker and need some assistance on vector const_iterator - at least I think that's where the problem lies. Can anyone assist in diagnosing how to fix these compiler errors? I initially got this error, which i think will come back …

Member Avatar for lasl0w
0
455
Member Avatar for Billybe

Hello I am trying to read from a file. I'm followed a tutorial and had it working perfectly before, and it still does now.. But the problem is that one variable that I'm reading from the file is causing my program to crash. All the other vars I'm reading, are …

Member Avatar for Billybe
0
255
Member Avatar for opspl_programme

Hi Everyone ! I have 2 DropDownList controls inside an UpdatePanel. The first is a dropdown for [B]Country[/B] while the second is for [B]State[/B]. I have set the properties of Country as AutoPostBack="True", OnSelectedIndexChanged ="PopulateState". Selecting a different Country fires the [I][U]PopulateState[/U][/I] function causing the the State to populate itself …

Member Avatar for Freon22
0
2K
Member Avatar for longlongsilver

i have my code and i want to cycle through the following colors blue green orange red yellow. i got blue but i dont know how to the rest [CODE]from Tkinter import * myfont = ("Arial", 1, "bold") window = Tk() window.title("grid") window.geometry("500x420") frame = Frame(window) frame.grid() button0 = Button(frame, …

Member Avatar for richieking
0
310
Member Avatar for berwick53

I have a CSV file with the following data 15278349,567892,3456,9742.30,CASH-WITHDRAWAL-200.00,DIRECT-DEBIT-200.00 64328975,632489,7562,98734.65,CHEQUE-DEPOSIT-100.00,CASH-DEPOSIT-424.54 etc... How would I print to screen the individual lines instead of just the top line?? Sam

Member Avatar for Narue
0
104
Member Avatar for MixedCoder

[CODE]#include <WinSock2.h> #include <WinSock.h> #include <process.h> #include <time.h> #include <iostream> using namespace std; class PoPSocket { public: void Socket() { const int iReqWinsockVer = 2; // Minimum winsock version required WSAData wsaData; if (WSAStartup(MAKEWORD(iReqWinsockVer,0), &wsaData)==0) { // Check if major version is at least iReqWinsockVer if (LOBYTE(wsaData.wVersion) >= iReqWinsockVer) { …

Member Avatar for MixedCoder
0
292
Member Avatar for miss.noir

Hi there, For University, I have to do a reassessment project whereas by I create a web-based cocktail maker. My issue is I really do not know where to start with it. I was wondering if anyone would be able to kick me off and point me in the right …

Member Avatar for richy90
0
281
Member Avatar for nmoudgil

I have searched quite a bit online. And can't really find an answer. I did implement a solution using window.setTimeout, but doesn't really seem to work. Here is what I want. I click a button and run about 10 javascript functions all together. These are time intensive functions that connect …

Member Avatar for scrappedcola
0
243
Member Avatar for tones1986

I have no good regex experience -- its all pretty new and confusing to me. I understand some of the VERY basics, but to do what im looking for...is way past me! I have the following text i would like to parse, pulling out the highlighted section everytime. Unknown Trap …

Member Avatar for d5e5
0
150
Member Avatar for HoneyBadger

Guys I have a text file, and I am trying to get my program to focus on a specific part of the text. How would I do that? I tried this to no avail: [CODE]f = open("book.txt") f.readlies()[10:3340][/CODE]

Member Avatar for TrustyTony
0
110
Member Avatar for jsav

So here's the problem... my program is supposed to prompt the user to enter a number and use that value to determine what function the program should call via a switch block. Unfortunately, it seems that my program doesn't let the user enter an option and just keeps running the …

Member Avatar for Fbody
0
859
Member Avatar for james6754

[code] class ReadGradesIn { public void readGrade() { int numberOfA = 0; //number of A grades int numberOfB = 0;//number of B grades int numberOfC = 0;//number of C grades int numberOfD = 0;//number of D grades int numberOfE = 0;//number of E grades int numberOfF = 0;//number of F …

Member Avatar for jbrock31
0
203
Member Avatar for Martje

How do i get the number of items a itembox is carrying? I tried [CODE]MessageBox::Show(listBox1->Items);[/CODE]but no luck Thanks in advanced.

Member Avatar for daviddoria
0
120
Member Avatar for spades0001

Hey guys! So, I created this form, but I can't seem to add color to it. I'm trying to make it color red. I've been trying to change the color for 2 days cuz I'm a noob :) Thanks guys! Here's code by the way: [code] import java.awt.*; import java.awt.event.*; …

Member Avatar for masijade
0
300
Member Avatar for moroccanplaya

hi i made a program that lets a user creates a file and then lets the user open a file that he would like to copy into the new file that he created. now the question is how do i extract the copied file or extract multiple coped file from …

Member Avatar for moroccanplaya
0
113
Member Avatar for hdb25

[CODE]#include <iostream> #include <fstream> #include <sstream> #include <cstdlib> #include <string> using namespace std; int dectoint (string st); int hextoint (string st); int bintoint (string st); string inttobin (int n); string inttohex (int n); int main() { string st; cout<< "Enter a number in dec,hex,or binary: \n"; getline(cin,st); if (st[0]=='$') cout …

Member Avatar for flukebob
0
208
Member Avatar for arcticM

Hey everybody! in the book "Head First C#" there's a code for a program that is a fast typing game. for those of u who don't know it here are few details: there's a listBox and using a timer, random letters are added to the listBox until there are 7 …

Member Avatar for arcticM
0
166
Member Avatar for charqus

Hello guys. I have 2 Windows Forms. Let's say, the first form is like a intro ... ( you know, when you enter in C#, a green window appears for some seconds ). Ok, i use a timer, and after 10 seconds from starting the application, i try to close …

Member Avatar for Mitja Bonca
0
120
Member Avatar for lse123

how detect that a visit to my site is done by a search engine and not by human? the referenceUrl (visitor come from) is always null if search engine auto visit or...? I know to get server params like ip, reURL, etc

Member Avatar for Will Gresham
0
82
Member Avatar for ppetree

I'm having problems creating the following trigger as I keep getting the syntax error listed below the sql code and well, that error is about as clear as mud! LOL Two things to note: users is a valid table name and it does contain fields called lat & lon (latitude …

Member Avatar for ppetree
0
270
Member Avatar for moroccanplaya

hi i can copy text based files to other files but when it comes to images i cant copy them it gives me a distorted image. [CODE] printf("please give your archive a name:\n"); scanf("%s", &archive_name); create_pointer = fopen( archive_name, "wb"); printf("please type in the path for the file you want …

Member Avatar for moroccanplaya
0
78
Member Avatar for spideyprasad

For PHP its MySQL For ASP its SQL server These are default databases. Likewise which db we use for JSP?????????

Member Avatar for peter_budo
0
111
Member Avatar for Transcendent

for example 1*2*3*4*5*6 this is what i have: [CODE]#include <iostream> using namespace std; int main(){ int num =1; int i; for (i=1; i <=20; i++) { num *=i; cout<<num<< " * "; } system("pause"); return 0; } [/CODE]

Member Avatar for Shankye
0
167

The End.