199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for losh177

Hi, I'm having some issues with my homework. It is a polymorphism homework. IFrom the console it takes two string (title and author/performer) a char (format for records) and a call number (int). Currently it compiles fine with some warning for strcpy. I have used the same data and sometimes …

Member Avatar for losh177
0
103
Member Avatar for kdmuk10

I have been teaching myself Java programming for few months now. Now i am looking for some materials which can help me develop my programming technics. It will also be useful materials to deepen my understanding to the java programming. I would appreciate to get some advise.

Member Avatar for kdmuk10
0
174
Member Avatar for gretty

Hi I am making a function that finds what todays date is & returns it as a string to main. (string format dd/mm/yy). My problem is I have found out how to find the day, month & year, but I cant put it into a string & return it to …

Member Avatar for WaltP
0
1K
Member Avatar for Ahmed Sarwat

Hi, I have a problem with fread,i wrote that program and in the input file only "Hello Word". the out put of the program only prints "Hell" and when I increase the elements in fread to 2 it outputs "Hello Wo". so for each element in fread it reads 4 …

Member Avatar for Ahmed Sarwat
0
114
Member Avatar for tinstar

I am a student in school and I'm trying to figure out why my saleSummaryForm is not being popluated with the information needed. Could someone clue me into what I am missing or what I did wrong? I know that there may be more code in what I am posting …

Member Avatar for jlego
0
159
Member Avatar for abrarHuniedi

How I can creat Label in visual basic without drag drop in design? EX: If I enter 5 in the Textbox, and click button result will apear 5 Labeles in the form.

Member Avatar for abrarHuniedi
0
102
Member Avatar for alexchen

I have a list of numbers in a 2d array. I need a random number without repeating. The number zero cannot be shuffle. [CODE] int **map; int * list; void randomize(){ for ( int x=0;x<Width;x++) { for( int y = 0; y < Height; y++) { map[x][y]=list[x*y]; //add code } …

Member Avatar for jonsca
0
127
Member Avatar for Mouche

Zonr and I have been working on a fun text game containing different rooms, monsters (with a D&D-esque battle system), and save/load functions. Here are the files. You need to have all of them for it to work correctly: [URL="http://www.glenwinters.com/RPG/RPG_jan20.py"]www.glenwinters.com/RPG/RPG_jan20.py[/URL] [URL="http://www.glenwinters.com/RPG/data.txt"]www.glenwinters.com/RPG/data.txt[/URL] [URL="http://www.glenwinters.com/RPG/Glen.txt"]www.glenwinters.com/RPG/Glen.txt[/URL] [URL="http://www.glenwinters.com/RPG/George.txt"]www.glenwinters.com/RPG/George.txt[/URL] Here's the main code: [code] import random …

Member Avatar for richieking
0
512
Member Avatar for ChuckNZ2002

I hope that you folks can help? I have ten IP cameras strategically located around my property. I capture video from these cameras with no problems. The cameras have the ability to pan and tilt, if I send commands to them. I can send something like the following to the …

Member Avatar for ChuckNZ2002
0
237
Member Avatar for Viper588

Hey guys im very new to java and am having some difficulty solveing a problem for my class. I have an array of 10 numbers and have to write a method that will eliminate any duplicates in the array and return that array. Iv been toying with different thing for …

Member Avatar for Viper588
0
262
Member Avatar for Ralphael

I want to create a digital clock in Java can any one help me out i am having problems updating the second variable

Member Avatar for Slimmy
0
93
Member Avatar for Sawamura

hi masters... i want to get jobs in printer queue... i didn't have idea to do this. please help me. any help will be appreciated. thanks before.

Member Avatar for dstoltz
0
196
Member Avatar for lelejau

Hello, I have this C++ code, I dunno how it works.. Anyway, I'd like to have it translated to Delphi. If anyone can help me out, I'd be glad. [code] typedef void (*t_ChatPrint) ( char * ); t_ChatPrint ChatPrint = (t_ChatPrint)0x0054E410; void ChatPrintf( const char *format, ... ) { va_list …

Member Avatar for lelejau
0
116
Member Avatar for mg120

Hi ! I have a C source code of Knight' Tour like [CODE] #include <stdio.h> #include <winbgim.h> #include <stdlib.h> #include <conio.h> #define N 8 void alternatif_bul(int,int); void alt_say_hesapla(); int yeni_konum_bul(); void alt_dizi_sifirla(); int board[N][N]={0}; //satranç tahtası int alt_x[8]={0}; //gidilebilecek alternatif karelerin X konumlarini tutuyor int alt_y[8]={0}; //gidilebilecek alternatif karelerin Y …

Member Avatar for msaqib
0
225
Member Avatar for AmerJamil

Question is: Declare two arrays of size 5. Get input from the user. Declare a third array of size 10. Put the values of array1 in even indexes of array3 and values of array2 in odd indexes of array3. Example Array1 1 2 3 4 5 Array2 6 7 8 …

Member Avatar for Narue
0
254
Member Avatar for Adami

I need to write a code that receive from the user numbers (must use with EOF) and store them into a matrix. There are some more requirements: 1. Matrix must be only N*N size, while N will be defined at top. 2. If user is trying to enter more than …

Member Avatar for Adami
0
140
Member Avatar for gerard4143

Hi, Is there ever a situation where the programmer needs to be concerned about the copying of a vtable pointer or can I happily assume that the C++ language will handle that detail correctly without my intervention?

Member Avatar for gerard4143
0
219
Member Avatar for terrymold

Hi I have a PHP page with the following JavaScript and HTML Form, but when I click on the Continue button nothing happens. The action="this_page.php" means that when the Continue button was pressed, prior to adding the Validation bit, would run itself as there is quiet a bit of PHP …

Member Avatar for terrymold
0
118
Member Avatar for nicosa

Hello guys, i need your help about how to clear value from ajax selected value, the code i use from thread daved83 about AJAX dropdown list. i have modified a little for that code, the code is like below [CODE]<tr> <td style="vertical-align:top;" rowspan="5" width="130px">Shipment by<br/><span style="font-size:10px">(select nearest city <br/>if not …

Member Avatar for nicosa
0
216
Member Avatar for harryhaaren

Hey all, I've a couple of large enough vectors in my code, talking about 88200+ floats per vector. I wanna copy the contents of one into the other. I've read around, some say [code=c++]vector.swap ( otherVector );[/code] is fastest? Currently I'm using the following: [code=c++]for(int i =0; i < vector.size(); …

Member Avatar for Narue
0
4K
Member Avatar for Don_k

Hey guys using Linux(C) using POSIX API system calls read,write, open etc. I can open,read,write to a file and copy its contents to an output file. How would I go about copying more than one file to an output file using related system calls only. I currently have: [code=c]filein = …

Member Avatar for Don_k
0
224
Member Avatar for icasta13

[CODE]#ifndef Prog_h #define Prog_h class Prog { public: int Array[]; int N; void ReadList(int Array[], int N); void Avgs (int Array[], int N, int &Ave, int &aveP, int &AveN); int Large (int Array[], int N); void Display(int Array[], int N, int Ave, int AveP, int AveN, int Max); }; #endif …

Member Avatar for Fbody
0
116
Member Avatar for vedro-compota

Hi. Could you tell me - what is wrong here - [CODE] public class MAP { public string MAP(string FilePath) { FileStream fs; try { fs = new FileStream(FilePath, FileMode.Open); } catch (FileNotFoundException exp) { return exp.Message; } catch { return "Не удаётся открыть файл"; } return "all right!"; } …

Member Avatar for vedro-compota
0
182
Member Avatar for kiran.madke

hi everyone i want a solution for this. i tried to check a all data from datbase table using dataset with a foreach loop. but this logic check only first row not below that so any one help me to solve this problem so i can check all rows from …

Member Avatar for CrappyCoder
0
771
Member Avatar for Shankye

Hello friends .. I wanted a feedback form for my small site... Its pure HTML and i dont know anything about PHP .. I got a script which mails the form contents to the admin.. Here is the code [CODE] mail( "$webmaster_email", "Feedback Form Results", $comments, "From: $email_address" ); [/CODE] …

Member Avatar for Shankye
0
110
Member Avatar for bleedi

Hi, I'm having a problem with my C code. I have a program that fork()'s a child process. The child process waits a time period defined by command line parameter, then alarms the parent process. Now, the program has to handle SIGUSR1 and SIGUSR2 signals too. The first one should …

0
146
Member Avatar for gisek

Hi I have a problem with vc++ (vs 2010 ultimate) debugger. I my code I use a path like this "madia/img.bmp". If I click "Start debugging" or "Start without debugging" the program doesn't load the file but if I enter the Debug folder and than double-click the exe file than …

Member Avatar for gisek
0
264
Member Avatar for tikoti

Hi everyone! I know using "system" in c++ is not the best way to develop, however, I need to use it for some specific reason. I have read that it is advisable using before system(NULL) to check if there is a shell available. My question are: When is not going …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for mgorecki

Hello, I'm experimenting with creating a web page using VB 6.0 DHTML and have run into problem. I have a page started with text and now I want to add some buttons or elements. The book I've been using says I can just double-click on the element, or pick the …

Member Avatar for mgorecki
0
94
Member Avatar for noliasoulja

syntax error, unexpected T_STRING can anyone help? here id my code. and I'm using 000webhost if that helps [code]</script></span></td></tr></table><span id="content"><table width="100%" class="uportal-background-content" cellspacing="0" cellpadding="0" border="0"><tr><td width="33%"><img height="3" width="10" title="" alt="" src="/media/org/jasig/portal/layout/dlm/skins/xp_style/skin/transparent.gif"></td><td><img height="3" width="1" title="" alt="" src="/media/org/jasig/portal/layout/dlm/skins/xp_style/skin/transparent.gif"></td><td width="34%"><img height="3" width="10" title="" alt="" src="/media/org/jasig/portal/layout/dlm/skins/xp_style/skin/transparent.gif"></td><td><img height="3" width="1" title="" alt="" src="/media/org/jasig/portal/layout/dlm/skins/xp_style/skin/transparent.gif"></td><td width="33%"><img height="3" width="10" …

Member Avatar for mschroeder
0
271
Member Avatar for nyny11211

any ideas why this does not load? thanks for any assistance [CODE]<html> <head> <script type="text/javascript" src="coomang.js"></script> <title>JS COOKIE MANAGER</title> <link rel="stylesheet" type="text/css" href="coomang.css"> </link> <script type="text/javascript" > function loadcontent() { var x= "<div class="general">"; x += " <div style="width: 150px; position: fixed;">CREATE COOKIE:</div>"; x += " <div style="position: relative; left:170px">"; …

Member Avatar for almostbob
0
212
Member Avatar for nitins60

[CODE] import java.io.*; import java.io.IOException; public class ReadWriteFile{ static File f1 = new File("C:\\source.txt"); static File f2 = new File("C:\\dest.txt"); public String readFile() throws IOException { String msg = ""; FileReader fr = new FileReader(f1); BufferedReader br = new BufferedReader(fr); msg = br.readLine(); System.out.println(msg); fr.close(); return msg; } public void …

Member Avatar for masijade
0
167
Member Avatar for DavidMorley

I want to bring data from certain cells in an Excel workbook into a datatable. The Excel is 97 - 2003 and is in \Box_zero.xls. The code snippet below gives an error "Could not find installable ISAM". From what I see in the literature, this error often means that there …

Member Avatar for DavidMorley
0
107
Member Avatar for newbieha

Hello,everyone.Im doing the same project as Slash12 source:[url]http://www.daniweb.com/forums/thread331507.html[/url] I thought the data structure I constructed is correct but I don't know how to test it until my search function works. The errors i have now are: TypeError:__init__() takes exactly 3 arguements(1 given) for i in range(len(board)) has no len() TypeError:object …

Member Avatar for richieking
0
252
Member Avatar for karthi_selva

hi, i would like to evaluate some value in C. ex [code] #define OK 1 int main() { char *ptr; ptr=(char *)fun(); if(*ptr) printf("SUCCESS"); } [/code] here fun() returns char * and stored in ptr. i would like to check weather ptr is OK or not, i do't like to …

Member Avatar for karthi_selva
0
174
Member Avatar for blueyelunatic

I'm having a problem with my program. I'm able to input all 10 numbers in but when it out puts the sum I get the wrong answer but then when it outputs my average that information is correct. I know it's a simple fix but I can't see it. Can …

Member Avatar for jonsca
0
90
Member Avatar for Akill10

Hey, I was wondering if somebody could test this out for me? I need to know if it acts the same on other pcs as it does on mine. The game seems to randomly speed up/slow down. Can you test if it does the same? [url]http://www.filefront.com/17673747/BoundingBox.jar[/url] It's a simple space …

Member Avatar for Akill10
0
127
Member Avatar for muralibobby2015

hello... i am doing mail concepts. in this i want to send a dynamic attachments with email. actually user gets email with attachment. this attachment will be dynamic. how to create dynamic attachment for email.i tried this. but no use. anybody help. i have 'attachments.txt'file with content [CODE]User Name: <<name>> …

Member Avatar for muralibobby2015
0
125
Member Avatar for renork

Last error Im getting is error C2059: syntax error : ']' Anyone have any ideas? what it needs to do:write a c++ program that creates using a random number generation a 2 dimentional array of integers whos values range from -9 to 9. The array size is to be chosen …

Member Avatar for icasta13
0
846
Member Avatar for davydick

I have a form that contains a Form_Keydown subroutine and a textbox. I am using a bluetooth numeric pad for input, so there is no mouse involved. The first keypress should display the contents of a corresponding array contents (e.g. pressing 4 should display the array's fourth element). The textbox …

Member Avatar for AndreRet
0
2K
Member Avatar for abelingaw

I'm having this problem regarding my Backup code. I get an error saying "Permission Denied". Here's my code: [CODE] Public Sub DBBackup() Dim fsys As New FileSystemObject Dim myfile As File Dim isTrue As String Dim isFalse As String Set myfile = fsys.GetFile(App.Path & "\Database.mdb") 'Create Backup folder if not …

Member Avatar for AndreRet
0
273
Member Avatar for ofir0803

i want to find all occurrence of a string: "coords"" within another, but i only can found the first and the last ( stripos() and strripos() ) [CODE]<body> <img src="page.jpg" border="0" usemap="#fghf" /> <map name="fghf" id="fghf"> <area shape="rect" coords="10,71,258,236" href="#" alt="some_alt" title="some_title" /> <area shape="rect" coords="258,72,506,237" href="#" alt="some_alt" title="some_title" /> …

Member Avatar for ofir0803
0
190
Member Avatar for whong09

I was fooling around with some Date classes when I came upon the following anomaly. [CODE=JAVA] import java.text.DateFormat; import java.text.ParseException; public class Class { public static void main(String[] args) { DateFormat df = DateFormat.getInstance(); try { System.out.println(df.parse("12/20/10 1:40 AM")); } catch(ParseException pe) { pe.printStackTrace(); } } } [/CODE] This compiles …

Member Avatar for whong09
0
119
Member Avatar for Naveed_786

Hi all, 1. I want to know how to add a data grid in vb 6 form? 2. And how to fetch all records in data grid please help Thanks in advance for help.

Member Avatar for AndreRet
0
148
Member Avatar for cavern

hello ive problem which is every time i click search(by name) n then the next thing i click save, (after save and update my data), the button previous,next,first,last doenst work, the save button function also doesnt work. but when i click search(the name), n then the next i click the …

Member Avatar for AndreRet
0
174
Member Avatar for lnimer

hi, any body can help me i need a source code for a simulation of elevator in vb or any single-queue, multi-queue simulation

Member Avatar for AndreRet
0
268
Member Avatar for tgifgemini

Hi everyone, I have a weired situation right here. My module was working perfectly all along. This morning I tried to run and got a run-time error: 1004 Application-defined or Object-defined error on this line of code. [code] With xlWksht.Range(Cells(ii + 1, 1), Cells(ii + 1, 5)) [/code] Below is …

Member Avatar for AndreRet
0
323
Member Avatar for pbunkers

I’m trying to automatically save an excel file to pdf file using visual basic. So, I will manually open the excel, upon opening the excel file, it will run code to calculate a daily totalizer (this I have functioning) as soon as this code finishes, I want the excel file …

Member Avatar for AndreRet
0
367
Member Avatar for dreamer_lek91

Hi, I have this set of coding when i use it when i am in ms access 97 but not ms access 2007. this is a set of coding for login form of ms access. Whenever i log in with the correct userid and password, it always promt me "wrong …

Member Avatar for AndreRet
0
212
Member Avatar for sbglobal

hi I am using auto complete extender and it is not working in Web user Control . But Working in Web form Please give its solution ASAP. Cs Code [code] [System.Web.Services.WebMethod] public static string[] GetSuggestions(string prefixText, int count) { MyDatabaseDataContext db = new MyDatabaseDataContext(); return db.Movies .Where( m => m.Title.StartsWith(prefixText) …

Member Avatar for Ramesh S
0
402

The End.