199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for PseudoGuard

In this part you will write a function to generate random numbers in a specified range. Specicially we want you to write a function named generateRandom that generates a single random number in a range specified by the user. The function takes two integer parameters representing the lower and upper …

Member Avatar for deceptikon
0
1K
Member Avatar for dontyoufeelmywrath

Mind guys if you could help me on creating this program(regards with file handling). starting with this: for instance. i have a .txt file that contains these: lexeme token main - Identifier ( - Open Parenthesis ) - Close Parenthesis { - Open Curly Bracket printf - Keyword ( - …

Member Avatar for deceptikon
0
143
Member Avatar for mheoxe

hi gud day please help me to my problem -(....i don't know how to create dailytimerecord system in php please please help me...our defense will be on Friday march,16...please help

Member Avatar for mhinerain
0
2K
Member Avatar for new_developer

Hi there, Good day ! I have a question related to private variable in php class. I want to make check if someone accesses private variable, an exception is thrown says "this is private variable" and rest of the excecution of code didn't stop. <?php class myClass { public $str; …

Member Avatar for Bachu
0
173
Member Avatar for sephzy

Hey there, Just hit a road block in my assignment. I won't concern you too much with the assignment itself but it's basically a number input operated menu with option's like "Display employee details" & "Input pay details." I'm up to a part where I need to get the section …

Member Avatar for JamesCherrill
0
330
Member Avatar for bradly.spicer

Hello, I'm posting again regarding as to why my php code won't process the delete.php Index.php: <div id="DeleteFile"> Delete A Script: <form action="delete.php"> </html> <? $path = "uploads/"; $handle = opendir($path); echo '<select>'; while ($file = readdir($handle)) { if (substr($file,0,1) != ".") { echo "<option value ='$file'>$file</option>"; } } echo …

Member Avatar for adam.adamski.96155
0
218
Member Avatar for opawix

if (@$_GET['action'] == "Save") if(@$_GET[idnum]==null || @$_GET[fname]==null || @$_GET[lname]==null||@$_GET[midin]==null||@$_GET[gender]==null||@$_GET[bdate]==null||@$_GET[course]==null||@$_GET[year]==null||@$_GET[address]==null||@$_GET[cnum]==null) { echo "<font size=5><center>Fill-Up First the Provided Information<br><button type=button onclick=history.back();>Back</button></center></font>"; } else { @$result = mysql_query("insert into students (idnum,fname,lname,midin,gender,bdate,course,year,address,cnum) VALUES ('$_GET[idnum]','$_GET[fname]','$_GET[lname]','$_GET[midin]','$_GET[gender]','$_GET[bdate]','$_GET[course]','$_GET[year]','$_GET[address]', '$_GET[cnum]')"); if(mysql_error()) { echo "<font size=5><center>ID Number: $_GET[idnum]. Already Exist(it must be unique)<br><button type=button onclick=history.back();>Back</button></center></font>"; } else { echo "<font …

Member Avatar for opawix
0
305
Member Avatar for james chaco

Hi, I have always wondered about the architecture of social networking websites like twitter,facebook,google plus. Just out of curiosity i want to know, how do they manage all those long and short posts(including images,web links,etc) with comments on them. Do they store them in database or in xml files or …

Member Avatar for james chaco
0
133
Member Avatar for everphilski

long time listener, first time caller... I'm trying to generate Excel charts using c#. I'm using Excel.Range to set a range (series of values) to plot. However, I'd like to plot two series that are not next to each other. For example, B1:B10 and G1:G10 versus A1:A10 on the x-axis. …

Member Avatar for lokendra jain
0
1K
Member Avatar for louie540

Hey. I have a website that is user submitted which has a repot button and the Google crawler keeps spamming that button. I am aware of robots.txt but it seems that nothing is working to stop Google from clicking it. So instead, I'd like to assign the link an ID …

Member Avatar for Igal-Incapsula
0
308
Member Avatar for pore

Hey guys, I'm currently experimenting with WURFL; I tried to set up a WURFL File to track my own browser and later other devices and browsers. However, it is an example of the o'reilly book " Mobiles Web von Kopf bis Fuß" or English title Head First Mobile Web". Can …

Member Avatar for pritaeas
0
181
Member Avatar for raider650

Basically I need to write an application to calculate BMI using the formula; BMI = w/ (h/100) 2 The user must type in her height in centimeters and weight in kilograms, and the computer prints out the user's BMI. import java.util.Scanner; import java.text.DecimalFormat; public class BMI { public static void …

Member Avatar for JamesCherrill
0
2K
Member Avatar for dgipling

I working with an application written in Visual Studio C++. Then program is a console application running under the DOS-prompt. The program is something like this. void main () { for ( ;; ) { do_something (); do_something_more () } } Now I need to add some code between do_something …

Member Avatar for richieking
0
241
Member Avatar for glenndr_15

Greetings! Just want to ask how to create a C/C++ ide then link to a compiler? any advice? can I use a visual studio for creating an IDE?... Thanks Best regards, glenndr_15

Member Avatar for glenndr_15
0
353
Member Avatar for rithish

actually in infix or prefix expressions how does operators have high precdence than the other. for example + has high precedence than *.do they compare with ascii value of operator

Member Avatar for Gonbe
0
174
Member Avatar for ElDuderino12

#include <stdio.h> #include <stdlib.h> #define MAXSIZE 6 int main(int argc, char** argv) { float stddeviation, deviation, sumsqr, variance, mean, x, t, m, sum=0, max, min; int numdatapts, k; FILE * inFile; inFile = fopen("Uniform93.data", "r"); if(inFile == NULL){ printf("\nError opening file. Abort program.\n"); exit(1); } for (k = 1; k …

Member Avatar for Gonbe
0
1K
Member Avatar for mikewyatt

Can someone point me in the right direction? I have a java program created in netbeans that has several tabs that contains various text fields, boxes and such. Over top of these I have a jlable that displays a jpg, or other graphic file that is used for a background …

Member Avatar for mKorbel
0
86
Member Avatar for Viped

Hi, I am trying to make my own paint program. It uses canvas where user draws. How can I get image representation out of that canvas as bufferedimage so I can save it with imageio.write?

Member Avatar for JamesCherrill
0
424
Member Avatar for Mas49er

I have a class project where we must create a program that takes 5 grades of a student that the user inputs and stores them into an array and then gets the average of the 5 grades for example Grades = 92 89 99 78 96 And then stores those …

Member Avatar for richieking
0
241
Member Avatar for GhuleVishal

I have installed php mysql and apache but when I run my php program browser ask me to download that file. but required output is not appear.

Member Avatar for broj1
0
162
Member Avatar for paoi00

i had a problem with this codes.. this codes will retrieve image from database that will based on the employeenumber. Dim CN As New OleDbConnection(cnString) CN.Open() daImage = New OleDbDataAdapter() daImage.SelectCommand = New OleDbCommand("SELECT * FROM EmployeeProfile ", CN) dsImage = New DataSet("dsImage") Dim dataTable As DataTable = dsImage.Tables(0) If …

Member Avatar for Pgmer
0
1K
Member Avatar for vivekanandaan

Dim conn As New OleDbConnection("PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source = e:\wms\wms\wms.mdb") conn.Open() Dim userDetailsAdapter As New OleDbDataAdapter("select * from daily_trans", conn) Dim userDetailsTable As New DataTable userDetailsAdapter.Fill(userDetailsTable) Dim returnRows() As System.Data.DataRow = Nothing returnRows = userDetailsTable.Select("cons = " & TextLine) If returnRows Is Nothing Then MsgBox("Can be saved") Else MsgBox("Primary Key") End If …

Member Avatar for Pgmer
0
91
Member Avatar for songseungun

Hi. I'm having problems about my program. My program is something like a directory. It takes in values for different fields and stores it in a linked list in a sorted manner. It also allows the user to save the linked list contents to a text file. Everything runs okay …

Member Avatar for songseungun
0
871
Member Avatar for shahzad.malik.140

1. The square of an integer n is normally calculated by multiplying n by itself, that is, n2 = n * n. Another way to calculate n2 is by adding the first n odd integers. For example, 1 + 3 + 5 = 9 = 32 1 + 3 + …

Member Avatar for WaltP
0
134
Member Avatar for persianprez

Can someone please finish this off, i need the days to start going on the day specified [code=c] #include <iostream.h> int main() { int month;//asks for current month int days;//asks for day of start int numdays;//number of days in the month int monthstarter=1; //starts day count cout<<"Enter a month (1 …

Member Avatar for WaltP
0
261
Member Avatar for bdl365

I want to print the following using for loop. from the pattern, it's clear that when row and column is equal to each other it prints A that gives me A from top left to bottom right need clues A - A A - A A - A A-A ----A---- …

Member Avatar for WaltP
0
287
Member Avatar for adeyombo

I integrated my website to an e-payment platform, and after processing the payment, it redirects to a page with a dynamic url that is like this: http://www.abcdef.com/paymentsuccess.php?TransactionReference=2012101020201015T&OrderID=61373444. and i have a page created as paymentsuccess.php. The question is this: what code snippet can I put inside this paymentsuccess.php to make …

Member Avatar for Bachu
0
204
Member Avatar for ohwhatacuteanaconda

I need help with the calculations done in a change concevter. The user enters the amount owed and the amount the purchaser paid and the change due, followed by the amount of dollars, quarters, nickles, dimes, and pennies are displayed. I have been working on this for a while and …

Member Avatar for Reverend Jim
0
111
Member Avatar for veeeeebeeeee

-We should only be able to enter ISBN's in this format, 0-1234567-8-9 or 0-1234567-8-X. -What I have now automatically inserts hyphens at a certain text length but doesn't let me delete the hyphens that have been added (besides the last one) -So how would I be to delete the hyphens? …

Member Avatar for TnTinMN
0
305
Member Avatar for combiana7

Can anyone help me out here? I have little clue on a CS assignment but can't get started on it. Question states: Write a program that generates a student's username and converts a score to a letter grade. The username consist of the initial of the name and the last …

Member Avatar for Lardmeister
0
97
Member Avatar for Seswing142

For my class we need to create an Ascii drawing with at least 3 nested loops and 3 different type of loops. this is what i have so far ( just 2 lines of the drawing) for(int i = 0; i<=4; i++) { System.out.print("0"); } for(int i = 0; i<=13; …

Member Avatar for Seswing142
0
294
Member Avatar for taylor.mitchell.353

I’m not sure why this isn’t working. Java isn’t giving me an error I have this in my StateController class public void insertLinks() { for(int index=0; //index is a local variable for state objects index < numStates; index++) //for loop to continue making state objects stopping at numStates(50) { myList.insertFirst(myStates[index]); …

Member Avatar for dimasalang
0
373
Member Avatar for firdousahmad

Dear Visitore of this Question I m New to VB.net i have declared a structure in vb.net and i want to give values to its members how could i can do that help me plz Structure Employee dim inta as integer dim strs as string end structure how to intialise …

Member Avatar for firdousahmad
0
247
Member Avatar for Jsplinter

About 11 months ago I started this [thread](http://www.daniweb.com/software-development/cpp/threads/386863/declaring-const-int-causes-error-c2582-operator-function-is-unavailable) asking why I couldn't use a const data member in a class that was going to be used in an stl container. The explanations were excellent. Now my question is, what is the best alternative to having a class with BOTH a) …

Member Avatar for mike_2000_17
0
280
Member Avatar for Unidennn

Hi, im pretty new to c++, and im stuck on this problem, i need to assign a letter from and array of stings to an array of chars and i just cannot figure it out. any help is appreciated. I tried both and both give me errors: strcpy (newChars[j],alphabet[i]); newChars[j]=alphabet[i]; …

Member Avatar for Ancient Dragon
0
200
Member Avatar for ratanji

i want to take the attendence of the students from database...if they once punch-in then i want to disable it upto clicking the punch-out button if browser 've been closed ! so how can i get it can pls anyone help me :) :))

Member Avatar for leviathan185
0
1K
Member Avatar for Grandiago

Hi. I'm new in programing and i have this program that i'm working on right now. it's still a working progress. but when i run it and choose from the options. the program kept moving upwards. like it looses the top part of the border. like this one: http://imageshack.us/photo/my-images/507/123sb.png/ this …

Member Avatar for Grandiago
0
157
Member Avatar for hughesadam_87

Hi guys, I am running a costly simulation and trying to optimize the output. I'd have a fixed range over which the parameter of interest can vary, and about 100 values it can take in between. We know the result we are looking for and want to find the parameter …

Member Avatar for hughesadam_87
0
165
Member Avatar for anisha.silva

Hi, i am not sure whether this topic would go under this category, thought this would be more suitable what are the famous software architectures? i have to do an research on this an present, I am new to this topic appreciate a reply thanks

Member Avatar for <M/>
0
200
Member Avatar for programmer12

I have a question about the AJAX Get Function: How do we use the AJAX get function to call a php script every ten seconds and place the information on the website and it can still be copied and paste without refreshing. I created a script that calls the php …

Member Avatar for programmer12
0
109
Member Avatar for jordo76

hi guys i keep getting this error message 1046 - No database selected select configuration_key as cfgKey, configuration_value as cfgValue from configuration DATABASE_TEP_DB_ERROR and also at the end of the insulation i get this message any help please its doing my head in Warning: mysql_num_rows(): supplied argument is not a …

Member Avatar for LastMitch
0
282
Member Avatar for fgregory54

I have scoured the google searches and haven't run across an answer to this question. I have a Select field that gets values from a database. That part works fine. The database contains four fields: specialistid, name, cell, email I would like for the user to select from a dropdown …

Member Avatar for fgregory54
0
185
Member Avatar for Yoink

Hi, I'm concentrating on getting my card and deck classes for a card game project working correctly. Both my card and deck classes are working technically correct but when I go though my nested for loop in my Deck class to create a deck of cards it ends up being …

Member Avatar for Yoink
0
280
Member Avatar for red_ferrari007

ASP CODE: <html> <body> <% set conn=Server.CreateObject("ADODB.Connection") conn.Provider="Microsoft.Jet.OLEDB.4.0" conn.Open "D:\Inetpub\wwwroot\northwind.mdb" cid=Request.Form("Username") set rs = Server.CreateObject("ADODB.recordset") rs.Open "SELECT Username,add,pin,cost FROM Customers WHERE Username='" & cid & "'", conn %> <table border="1" width="100%"> <%do until rs.EOF%> <tr> <%for each x in rs.Fields%> <td><%Response.Write(x.value)%></td> <%next rs.MoveNext%> </tr> <%loop rs.close conn.close %> </table> Thank …

Member Avatar for JorgeM
0
149
Member Avatar for nirvana man

Hi guys I use a GridView (using template fields) with several columns and a image button in the last column. I want the button to mimic an edit button, but: I want it to open a row which has no columns and just has some fields (TextBoxes , DDL's etc) …

Member Avatar for nirvana man
0
126
Member Avatar for anisha.silva

Hi can you only tell how can i implement the below part. i created a class for TM(implementing :IComponent interface ) and another class called Process(implementing :IContainer interface) and created P1 and P2 are instances of Process class. and A B A' B' as instances of TM. is this correct? …

Member Avatar for skatamatic
0
155
Member Avatar for greeny_1984

hi, i have a asp page in which iam using iframe to load a aspx page,but it is taking long time to load a page,so we r using div tag to load a page.is this possible to load a page using div.whats the javascript to load a page using div …

Member Avatar for goldentuna
0
15K
Member Avatar for cmsc

I'm getting the form is not defined error when is use`form.parentNode.appendChild(iframe);`inside a javascript function, I don't know why. Any suggestions?

Member Avatar for otengkwaku
0
125
Member Avatar for Dáni

helle there. I need a help in generate random 2D matrix !! How to write that plz !

Member Avatar for Ancient Dragon
0
238
Member Avatar for Yoink

Hi, I have to write a program that plays out a whole game of the card game WAR. I have to create a bunch of classes that go along with some pre written classes so right now im trying to start out small and work my way up. We are …

Member Avatar for Yoink
0
692

The End.