199,114 Archived Topics
Remove Filter ![]() | |
![]() | Hi.. i am totally lost with this random 20x70 maze generator i have to create. can some one give me some insight on how im supposed to start this? i know i use 2 for loops but my question is.. how do i create the actual blank space maze pattern. ![]() |
Environment: eclipse I have reached a snag with finding the perfect numbers from 0 - 1000 while using methods with multiple perimeters, one project, tow classes. There is an example on this site from quite a while ago within one single class. That is in a later chapter in my … | |
I have the following three tables: ClassHeader ClassID Major TeacherClasses TeacherID ClassID StudentClasses TeacherID Major I want to select all TeacherClasses where the a given Major = ClassHeader.Major | |
Hello, I'm new here, so please be gentle. I have posted my code at the following page: [url]http://www.bpaste.net/show/11397/[/url] In short, I need to read in my file, block by block, but have the re.finditer regular expression report the offsets relative to the beginning of the overall file, rather than relative … | |
hi, i looking for a best way to translate a backoffice content. options: A- i can use a separate file each for a lang with all vars. B- use a table with all data both of this solutions have a big time to implement and in all areas that i … | |
I need help with this hw problem. Generate a 2-D array of 25 integers and initialize them all to 0. Assign the value 9 to five random locations in the array to represent your mines. Fill the remaining array locations by counting the number of mines in any adjacent squares. … | |
Hi everyone, I'm Dee I'm new here so please excuse me if I'm asking this in the wrong forum. I must also admit that I also know very little about .NET / PHP and techie stuff :confused: so I'm after some help and guidance if possible. I'm getting an enormous … | |
I have this assignemt to make a double link list for a student database. I have tried to make it in single link list so that i can understand the implementation. the problem is that i can't make it a double link list :S i am so confused! plz someone … | |
I am trying to use Qt 4.0 with devCpp. I have a weird error when i try to compile this simple code : [code] #include <QtGui/QApplication> int main(int argc, char *argv[]) { QApplication qApp(argc, argv); return qApp.exec(); } [/code] The error is : [code] 10 : no matching function for … | |
Hello! I run SQL queries from JAVA program (an example is shown below). My question is: Is it possible to run SQL query, if column names are defined in an array and the array size is not known apriori? Thanks! [CODE] public void setQuery(String query) { try { int rs … | |
I am just trying to link a reference numbers using php/mysql 1) Each reference number will select (see code) 2) Post that number to next page and query the info. How can I post reference ID and query in the page 2. [CODE] <? // Page 1 refno.php $cid= $_SESSION["c_id"]; … | |
Hi every one, please could you help me in my project!! I'm trying to design a words game that's give you the first two letters from the word and you insert the rest to make a word (for now I'm just using "co" as example and I have just one … | |
ok guys need some help, I'm sure the answer is simple but i'm making a program for an assignement that models points in a cartesian plane and prints them out this is what i have so far in main [CODE]#include "point.h" #include <iostream> #include <string> #include <fstream> //for ifstream,ofstream #include … | |
THis is what I need to do...I need help with the third point [INDENT]1. Write a class OrderedList. The implementation of OrderedList must be as a linked list of Comparable elements. The list items are maintained in ascending order at all times. On this assignment, no indexing methods are allowed. … | |
Hi again everyone. I am trying to change around this program I wrote to meet some new requirements, but getting stuck on how to do it. *Write a program that reads a file consisting of students' test scores in the range of 0-200. The students scores should be stored into … | |
Hi Friends............... I want to change the font color and font type(font-face) of title bar text in C# windows form..... Please help me..... ![]() | |
Ok, well I am now working on a new program where a program that counts the number of times a digit appears in a telephone number. And I have no idea how to even start this. Can anyone please help? Atleast try to give me a outline or something. Heres … | |
Hi i have this sign up page backupserver1.123-backup.com:8080/client/signup.cfm When i enter all the details i get this error in the next cfm page call insert-user.cfm Error as follows Error Executing Database Query. [Macromedia][SQLServer JDBC Driver][SQLServer]Operand type clash: text is incompatible with tinyint I think the problem something to with a … | |
I am trying to write a program that does operations with rational numbers. My program runs and is able to add, subtract, multiply and divide. However, it does nto reduce the fraction and when printing in decimal form, it returns an int rather than a double. For example, it would … | |
Hi, I have a problem with my code in C An error occurs with message : /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crt1.o(.text+0x21): In function `_start': : undefined reference to `main' collect2: ld returned 1 exit status Does anyone know for it ? Thanks a lot | |
Ive made this quick program to strip the "youtube - " prefix off my mp3 collection, so i started modifying a script i had made before to replace file names with a <filename><incrementing number> type name. It has gone well so far, with the only problem being it will strip … | |
Hi everyone, I just got a problem referencing void pointer. If in my code, I replace *rbuf= &svar by (rbuf= &svar;); it does not complain but it does not return the real value (rbuf is a void pointer). Please Can anyone give me any advise. I would really apreciated /*****************************************************/ … | |
As the title suggests I need to write the class of a graph object. It is required that I write a function that prints the graph determine if the graph has conex components,what are the cinex components, if the graph has cycles, and to determine the shortest and longest road … | |
Hey; I'm practicing with template classes. When I declare a user-typed destructor for this template class, the program freezes and needs to be closed explicitly. Obviously, in the destructor, I am trying to release the memory allocated to hold the coordinates[3] array. What is the problem with declaring a user-typed … | |
[CODE] #include <iostream> using namespace std; class vector1 { float vector[]; int y; public : vector1(int x) { y=x; cout<<"enter the elements of the array"; for(int i=0; i<=y; i++) { cin>>vector[y]; } cout<<"elements of vectors are"; cout<<"{"; for(int i=0; i<y; i++) { cout<<"\n"<<vector[i]; } cout<<"}"; } void modify(int z) { … | |
Hey guys. I'm working on a simple hangman program. I got the core engine down working in a command prompt, and now I'm making it using classes and a GUI. I'm using tkinter. Anyway, everything works with no error, but the image is not displaying at all. Here is the … | |
FileInputStream inherits from InputStream which has a mark() method which does nothing. FileInputStream itself doesn't define any mark() method. Even then, if I wrap a FileInputStream object inside a BufferedInputStream object and call markSupported() on it, it returns true. In the docs, it says that the mark() method of any … | |
Is there any program that can help me customize my GUI? Like add some color and pictures? Adding color into my Jpanel, JBotton, etc? | |
Hi! Is it possible to pass objects like you do in JavaScript in PHP: [CODE] function example($args){ ... } example({foo: 'bar', lorem: 'ipsum'}); [/CODE] Or something similar to this? So that you both get an "infinite" number of arguments and a chosen name for the variable ($args['foo']). I know you … | |
Here's a snippet of my code: [CODE]<? include("include/session.php"); //include("forum/global.php"); $con = mysql_connect($dbhost,$dbuser,$dbpass); $time = time(); $date = date("Y-n-j H:i:s"); $ip = $_SERVER['REMOTE_ADDR']; $email = $_POST['email']; $lastname = ucwords($_POST['lastname']); $firstname = ucwords($_POST['firstname']); $firstinitial = $firstname[0]; $username = $firstinitial."_".$lastname; $pass = $_POST['password']; // MYBB function generate_salt() { return random_str(8); } function salt_password($password, … | |
So in my database "project" i have tables [B]courses[/B],[B]courses2[/B],[B]courses[/B] and [B]participants[/B],[B]participants2[/B],[B]participants3[/B] and [B]company[/B]. On page company.php i have a print link where he send me on a page named print.php ,where i can see the participants. Now on print.php i can see only participants from courses and participants ,i want … | |
I've been working on this for a couple days and know it's something small but for the life of me I can't figure it out. (I've been using Daniweb for a long time, but just joined because everyone seems so helpful. :) ) Maybe someone can help me too. Here's … | |
I'm trying to create a random float generator. The float must be 2 decimal places and between the values 0.50 and 999.99. I tried casting rand() to a float below, which didn't work. I'd still like to know the reason this didn't work. [CODE] saleAmount = ((float)rand() % 99950.00 + … | |
[CODE]<?php require_once('upper.php'); require_once('database.php'); if(isset($_COOKIE['LoginIdCookie'])) { echo '<h4>Welcome '.$_COOKIE['LoginIdCookie'].'</h4>'; } else{ echo '<h4>Events</h4>';} $result=mysqli_query($dbc,"select * from events") or die('Not Connected'); echo "<html> <body>"; echo "<form method='post' action='EventParticipator.php'>"; echo "<u><h4>Please tick events in which you want to participate</h4></u>"; /*echo "<table cellspacing='0' cellpadding='15'> <th><b>Event Title:</b></th> <th ><b>Event City:</b></th> <th><b>Content:</b></th> <th><b>Images:</b></th> <th><b>Event Date:</b></th>";*/ //while($row=mysqli_fetch_array($result)) … | |
Hello, I have made a web application program that takes one string and outputs it through an array into three seperate textboxes using comma seperated values. This works fine - BUT I want data 0 to only allow entry of strings (it's a name), data 2 to only allow entry … | |
Hi, I need two functions one that checks if the inputed number is a prime number and second one that splits the given number in to prafactors. I have the first function done but the second one is a bit annoying. The function has to take the given number and … | |
Hi, hoping this is quite a simple one. Just wondering how I can use one page template but call up the data from the database relevant to what the user has clicked to view such as 'About us', etc. Would be good if I could let the client create their … | |
I am in my way of studying the linked list chapter of C++.. So i go through this code below intended of understand it. [CODE] #include <iostream> using namespace std; struct nodeType { int info; nodeType *link; }; void printList (nodeType *first) { nodeType *current; current=first; while (current != NULL) … | |
Hi there developers! I'm trying to develop my own online multiplayer game, using the DarkGDK. But I don't want everyone to have access to the media of the game, so I'm working on my own cache archive format. This is how it works: .idx0 = textures .idx1 = sprites .idx2 … | |
Here's my problem. I need to add only the first and last elements of each row, and display them separately. Ex. Row 0=11 Row 1=11 Row 2=8 [CODE]int arr[][]={{5,9,6},{3,2,8},{7,0,1}}; int sum=0; for(int row=0;row<arr.length;row++){ for(int col=0;col<arr[row].length;col++) sum=arr[row][col]+ arr[row][col]; System.out.println(sum+" ");[/CODE] this is my code, and i think i just need some … | |
How could I empty my JTable (AbstractTableModel)? If I run [ICODE]tableModel.deleteData();[/ICODE], then the message "0 >= 0" appears. Thanks! [CODE]class QueryTableModel extends AbstractTableModel { Vector cache; // will hold String[] objects int colCount; String[] headers; String url; String databasename; String login; String pass; Connection db; static Statement statement; public QueryTableModel(String … | |
hey guys...!! i really want ur help in this program..!! its a Hospital management system program..!! it take input from the use..it can save input in a file..display all input on to screen, but i cant find a way to delete a record/patient details from the file PLZ help me..!! … | |
Hi all! I have been given the task to modify the code below so that it can do subtraction, multiplaction and division, not just addition. Could someone help me with this and explain what the strncpy does? I'm so confused!! // C Parsing Adder program #include <stdio.h> #include <string.h> // … | |
Hi guys! I can not understand - what is wrong with this simple line - [CODE]create table SUBJECT ( SUBJ_ID NUMERUC not null, SUBJ_NAME VARCHAR(100));[/CODE] error message -[QUOTE]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to … | |
Hi! How could I open a file saved on FTP Server? I'm using org.apache.commons.net.ftp.FTPClient to save/delete files. There are only 5 types of files: doc, docx, xls, xlsx, pdf. If I select a pdf file, then it must be opened in Adobe Acrobat, etc. So, what is the best approach … | |
Hi everyone! Does anyone here know how to create a C program that will open a web browser depending on the user input? For example if the user inputs the integer 1, the web browser will be opened and will go to 'http://www.daniweb.com', when the input is 2, 'http://www.google.com' will … | |
im just wondering how would i make like a webbrowser in javascript/html? also how would i resize the who entire webpage/webbrowser? | |
How do I allow the display to show numbers with the commas, but then when it does the calculations, have the commas go away for the math since obviously java can't read commas in calculations? example [CODE] DecimalFormat df0 = new DecimalFormat("###,###.00"); JFormattedTextField loanText = new JFormattedTextField(df0);[/CODE] the user puts … | |
Hi everyone, I'm creating my own OS from scratch, and I'm first producing an installation CD so that I can easily install my kernel on a hard drive. So far, I've written a CD-based bootstrap loader in NASM that finds a program within the root directory of the CD, loads … | |
Hello! I’ve got three tables that I want to link together. When I try to upload images and text throught a form, the web browser show this error message: [QUOTE]Error, query failed 1452-Cannot add or update a child row: a foreign key constraint fails (`mn000532_almacen`.`images`, CONSTRAINT `images_ibfk_1` FOREIGN KEY (`itemID`) … |
The End.