64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for diniboi

Whats up guys? This program has given me nightmares lol. When input is a positive integer, the program should reduce it to prime factors. The integer is less than 900. The program should Output the prime factors as a series that when multiplied together, will return the original integer. If …

Member Avatar for TrustyTony
0
224
Member Avatar for xxreenaxx1

I have a method that someone helped me with. Not sure what it means [CODE]echo ( $info['Ans_Answer'.$i]) ? " checked" : "";[/CODE]

Member Avatar for xxreenaxx1
0
92
Member Avatar for vedro-compota

Hi friends! What is the difference between these two definitions of variables? [CODE]const char *msg; char* const msg;[/CODE] thanks in advance)

Member Avatar for vedro-compota
0
106
Member Avatar for sciprog1

Hello Members, I am trying to add weights to a Graph that is implemented using JGrapht. I keep getting a NullPointerException, which I am unable to understand as all other edges seems to be added fine. I would be grateful for any help. The code so far: [CODE]import org.jgrapht.*; import …

Member Avatar for sciprog1
0
2K
Member Avatar for CrazyMisho

hi,I am trying to write a simple code that visit page every x seconds.I prefer timer function because thread freeze the browser and the program.Somebody whit idea?

Member Avatar for Momerath
0
103
Member Avatar for didi00

I'm using the wp e-commerce plugin and the problem is that the info for the product is shown under the picture instead next to it. I'm using virgo theme but I've tried with other themes and still, the problem stays the same. The problem is this: [url]http://i53.tinypic.com/2vdflo4.jpg[/url] and I want …

Member Avatar for didi00
0
80
Member Avatar for navp

Hello, I am new to JavaScript, I have to make a pizza webpage for my assignment. I am done the HTML part and PHP part. I have a form and when the user clicks submit it calls the check() method in the JavaScript. Even if the fields are empty, the …

Member Avatar for vibhaJ
0
174
Member Avatar for sahil1991

hello frndzz... just wrote a piece of code in c++....bt this didnt create any .DAT file as expected.....dun knw wats wrng.... #include<fstream> #include<iostream> using namespace std; class person { int age; char name[40]; public: void get() { cout<<"enter age:"; cin>>age; cout<<"enter name:"; cin>>name; } void show() { cout<<"age is:"<<age<<endl; cout<<"name …

Member Avatar for daviddoria
0
136
Member Avatar for mugenoesis

okay i've got a problem with this code its going to be a apart of a word guessing game, the problem is that my code reads the file i want it too, but when i ttry to guess the letter it will only read the first letter, i know that …

Member Avatar for daviddoria
0
171
Member Avatar for kesh1000

hi can anyone tell me why the netbeans ide generates a null pointer exception. here my code. for class CustomFileFilter [CODE]import java.io.File; public class CustomFileFilter extends javax.swing.filechooser.FileFilter { private String extension; private String description; public void setDescription(String description) { this.description = description; } public void setExtension(String extension) { this.extension = …

Member Avatar for kesh1000
0
184
Member Avatar for djbuclkle

I am currently writing a program in which you input a word and the program then outputs all of the different ways the characters can be moved round into anagrams. I have wrote a way of turning the command line argument into a char array using the toCharArray() now I …

Member Avatar for JamesCherrill
0
173
Member Avatar for BMPaul

Hello, im a noob with C++ at the moment and Im trying to create a BMP image from pixel data stored in a array. Everything seems to work except that when i look at the file generated in a hex editor i get an extra '00 00' in between the …

Member Avatar for gpyrounakis
0
2K
Member Avatar for Gernicha

Hey everyone!! I am having trouble printing the whole of a multidimensional char array. [CODE] #include <iostream> using namespace std; int main(){ char array [5][10] = {"---------", "| |", "| |", "---------"}; cout << array << endl; system ("pause"); return 0; } [/CODE] It just gives me random numbers and …

Member Avatar for Gernicha
0
187
Member Avatar for gulbano

Hey all, Can anybody tell me what is a stored procedure an what is the difference between a stored procedure and trigger? Thanks In Advance

Member Avatar for gulbano
0
94
Member Avatar for vedro-compota

Hi mates!) If somebody can - please explain me - what does mean "[U]the lowest[/U]" in this context - [QUOTE]The open() function shall return a file descriptor for the named file that is [B][U]the lowest[/U][/B] file descriptor not currently open for that process.[/QUOTE] the QUOTE is from here - [URL="http://pubs.opengroup.org/onlinepubs/009695399/functions/open.html"]http://pubs.opengroup.org/onlinepubs/[/URL] …

Member Avatar for vedro-compota
0
185
Member Avatar for guru_iyer

Hey I am trying to do a project on Test Engine. I need to retrieve random rows of questions from access database. I did the following code, but every time I once close and run it again, the sequence of questions is same. How can I change the sequence every …

Member Avatar for guru_iyer
0
797
Member Avatar for YMCMb

Hello everyone :) i want to be able to just edit and update one field of my grid view is this possible? as im using Visual Web developer 2008 express when a user selects edit to a row, it allows the user to edit the whole row ... but this …

Member Avatar for pinkygirl
0
1K
Member Avatar for cwarn23

hi, I have the following code and it compiles on Netbeans with no errors or warnings but when I load the applet in a browser the browser does not display all of the pictures that I got it to draw. The only picture it draws is my_gif. I have tried …

Member Avatar for cwarn23
0
211
Member Avatar for bahed121

hey all i want to put [B]£[/B] symbol in my textbox but don't have it on keyboard can any one help me? Thanks

Member Avatar for abelLazm
1
134
Member Avatar for jdm

I'm working on a simple program, but I help with a part of it. When I click the submit button I need the name field to be cleared and for all of the checkbox to be unchecked. I have the name field done, but I need help with unchecking all …

Member Avatar for jdm
0
2K
Member Avatar for MrCapuchino

Hello, I'm kind of new with JSP and I'm developing an school project. So far I have my web application configured to work with a database. Now I have a form that receives a user and a password, then when the user clicks enter, it calls a servlet which checks …

Member Avatar for masijade
0
135
Member Avatar for navp

Hey i have to make a pizza website for my assignment. I am done the HTML part and have finished the PHP more than half. I am trying to decorate it a bit and trying to use "\t" for tab, but its not working. Any suggestions? P.S. I have made …

Member Avatar for diafol
0
3K
Member Avatar for abelLazm

Can anyone clear my concepts of IsDaylightSavingTime() function of DateTime in C#. I am really confused about it. I want to ask exactly what is the need and use of this function? Thanx

Member Avatar for abelLazm
0
164
Member Avatar for hous3aholik

Hi guys im trying to generate 5 random numbers that return a string so i can compare it to a file. so far i have this but i have no idea how to make it a string. Since i have to compare it to the file i mentioned earlier. This …

Member Avatar for TrustyTony
0
2K
Member Avatar for bahed121

hello I have added a checkbox column in my C1TrueDBGrid i want to check all of the checkboxes with single click i have been looking for a solution i found one for DataGridView which is to add a check box in the header of column and check all of the …

Member Avatar for abelLazm
0
509
Member Avatar for tdba.316

Hi! For the past few months I've been self-learning C++ with the book "C++ Primer Plus" by Stephen Prata. After having gotten through chapter 7, I decided to check my progress by writing a little program, Baztro. Baztro stands for Basic Astrology Tool. It asks you for birthdate(s) and will …

Member Avatar for tdba.316
0
578
Member Avatar for bahed121

hey all can any one tell me how to insert a checkbox column in C1TrueDBGrid it is really showing me hell I am stuck in it.. Please please any one help Thanks

Member Avatar for bahed121
0
1K
Member Avatar for Anigmalee

Hi All, I try to store Korean langguage in Microsoft jet OLEDB 4.0 database, but I cant retrive it back. [CODE]catNewDB.Create("Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=" & sDatabaseToCreate & _ ";Jet OLEDB:Engine Type=5;")[/CODE] I try to google around for weeks..but still cant find the solution, I believe microsoft jet 4.0 should …

Member Avatar for Anigmalee
0
108
Member Avatar for GreaseJunkie

I hate to post a thread on this since I know this topic has been discussed ad nauseum, but I've been searching for weeks and cannot find exactly the answer I've been looking for. I'm new to arrays and loops - I get the concept, but not the syntax. Here's …

Member Avatar for hielo
0
387
Member Avatar for kaizerkiller

Hi to all people members of Daniweb! I downloaded a complete package of virtuemart from this site, [url]http://virtuemart.net/downloads[/url], and but while trying to install the sample data I got this error that says, "[B]Error: Module Not Registered."store" is not a valid VirtueMart core module[/B]." I tried to reinstall the package …

Member Avatar for kaizerkiller
0
139
Member Avatar for sas1ni69

Hi guys, I'm trying to build a query that involves two tables, the course table and the studentsLink table. The StudentsLink table describes the link between students and the course. The tables are as below; Course courseID(bigint) - PK courseName (varchar) courseInstructor (varchar) StudentsLink courseID(bigint) - PK StudentID(bigint) - PK …

Member Avatar for sas1ni69
0
124
Member Avatar for swathys

hi, i would like to create an uniqueID where it must add +1 behind the CurrentTranxDateTime for the transaction 1 to 10....I have coded as below but the problem is the number doesnt +1 for each transaction.....any1 have idea to solve this..... eg: 300111 01:45:29 AM 1 300111 01:45:29 AM …

Member Avatar for swathys
0
371
Member Avatar for isumasama

hi how to do insert ignore in access? is access support this function? [CODE] CurrentDb.Execute "INSERT IGNORE INTO FullDB (IDProc, IDOp, IDTech) VALUES (" & IDProct & "," & IDOpt & "," & IDTecht & ")" [/CODE] or how can i do a search for duplicate record first before insert? …

Member Avatar for isumasama
0
1K
Member Avatar for isumasama

hi all, How to check if a particular row is exist before inserting it? my table has ID as Primary key, and 2 other columns, say Process and technology.. thank you

Member Avatar for isumasama
0
94
Member Avatar for rom.

Jquery's .not() and :not doesn't seem to work in this particular scenario. Any corrections or alternatives would be REALLY appreciated! As you see from the code below, when you click on the green box, the purple box will either slide up or down. How can I exclude the checkbox from …

Member Avatar for rom.
0
235
Member Avatar for klemme

Hi, I my admin area, where the administrator can create a new page, it is also possible to decide the position of the link. It is a menu in the left side of the screen, one link on top of the other, very simple nav. I have a dropdown list …

Member Avatar for smantscheff
0
178
Member Avatar for cossay

The program below crashes anytime I run it, can anyone tell what I have done wrong?. [CODE] #include <iostream> #include <cstring> using namespace std; class Human { private: char *fname; char *srname; char *phone; public: char * getFirstName(); char * getLastName(); char * getPhone(); Human(char *fn, char *sn, char *ph); …

Member Avatar for Tomi1988
0
145
Member Avatar for Silent Storm

Good afternoon, I'm trying to alter an application that calculates the area of a square using the following guidelines: For the Square class: 1) Add a Private variable named _area 2) Associate the _area variable with a Property procedure called Area 3) Change the CalculateArea method to a Sub procedure. …

Member Avatar for Unhnd_Exception
0
139
Member Avatar for darkbreaker

I am developing a network chat application, I am using Winapi, my main window is a dialog (created from a .rc file). I am looking into a way of doing an text box where my outuput text can be like this: [QUOTE] [COLOR="Green"]Welcome to ##### chat server![/COLOR] [COLOR="Red"]Person1[/COLOR] says: Hi …

Member Avatar for darkbreaker
0
277
Member Avatar for mrbungle

Greetings, My app saves a bunch of stuff to an XML file. This is my line of code- [CODE] Using writer As XmlWriter = XmlWriter.Create("C:\vdx2k\MWS\RE\EXTReportsInbox\TK" & frmCitation.txtCiteNumber.Text & "Traff.xml", settings)[/CODE] So that saves it at that specific location. I need to duplicate the XML and have it also save in …

Member Avatar for mrbungle
0
114
Member Avatar for CrazyMisho

Hello how to read from a file,which contains only nimbers(int) and to record them in an array.It's sounds easy,but i can't do it:( for file example: 1234 4353 2345 2345 2312 1267 I mean they are in collom. Thanks in advance.

Member Avatar for Momerath
0
302
Member Avatar for fabio.bozzo

Maybe it's a noob question ... anyway, I create a dynamic number of PictureBox controls. I keep them inside a List. What I want now is to make them clickable: same event handler for all (opening of the image source file) with a parameter. The question is: how can I …

Member Avatar for Luigiview
0
259
Member Avatar for guccitan88

New to Java! We have to create a "sales" 2D array and initialize it with 100.00. Then we have to up the 3rd quarter by 500.00 and then lower the 4th quarter by 50.00. I know there's something simple I'm missing, but I can't quite figure it out. Any help …

Member Avatar for guccitan88
0
131
Member Avatar for Awilson089

Hi, I have a program which needs to accept a date, it can only accept under 30 days, and the entry has to be over 0 My problem is that it accepts anything, it doesnt make sense because i have used the exact layout on other bits of code which …

Member Avatar for Awilson089
0
103
Member Avatar for Protoroll

I have to read in a file and do dot product calculations on two arrays but I get an error whenever I try to run it. Here is my code, [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int main() { FILE* input; FILE* output; int product=0; int length=0; int* …

Member Avatar for Protoroll
0
243
Member Avatar for McLaren

Hi, I have one question: I am programming with PHP, CodeIgniter. But it may suit for other tools as well. I need to delete something from the table and I want to be sure that there will be deleted row from another table. In short - delete to rows, each …

Member Avatar for McLaren
0
443
Member Avatar for kent5244

Hi, I have some basic knowledge in programming however it is not enough to solve the problem I faced currently. So I would like to ask for the pros for guild and help. I have attached the print screen of my program's GUI 1)From the GUI, the combobox next to …

Member Avatar for kent5244
0
2K
Member Avatar for xjustin

Im trying for a message box to pop up but this code gives me always "Absent".How can i fix this. [CODE] Dim time As Date Dim CurrHour As Integer Dim CurrMinute As Integer time = DateTime.Now CurrHour = time.Hour ' Get current hour value CurrMinute = time.Minute ' Get current …

Member Avatar for xjustin
0
106
Member Avatar for 54uydf

I have 2 places I'm stuck on with my DB design.. 1************************************************************************** how to translate ERD that looks like this into real tables? [URL="http://schemabank.com/sites/default/files/images/notation_self_relationship.gif"]http://schemabank.com/sites/default/files/images/notation_self_relationship.gif[/URL] my entity is "Course", if before student wants to take some course he must take few pre-courses then how should I model this? tableCourse- [U]id[/U], name …

Member Avatar for 54uydf
0
192
Member Avatar for konczuras

Hello Everybody! I have the following problem: I want to make an application, which need tables to show, edit, etc. You would be able to select the table, which you want to work on, by a dropdownlist (the whole project is in ASP.NET). I want to load the selected table's …

Member Avatar for vectorsoftware
0
187

The End.