199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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(); … | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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] … | |
[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 … | |
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; … | |
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 … | |
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 … | |
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> … ![]() | |
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. | |
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 … | |
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 … | |
* 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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 | |
[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) { … | |
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 … | |
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 … | |
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 … | |
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] | |
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 … | |
[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 … | |
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. | |
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.*; … | |
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 … | |
[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 … | |
![]() | 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 … ![]() |
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 … | |
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 | |
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 … | |
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 … | |
For PHP its MySQL For ASP its SQL server These are default databases. Likewise which db we use for JSP????????? | |
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] |
The End.