199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for dragonstear

Alright, so i got this question that im given a group of scores in the file, and i have to make them into a list, sort the list, and find the median. I got the sorting and the median done.. But I just got one problem that I can't seem …

Member Avatar for dragonstear
0
132
Member Avatar for mbhanley

Can anyone see where im going wrong with this code I keep hitting a brick wall with it. Its doing my head in. I think its more the sql code, It keeps showing all data instead of just showing the data based on the user_id which should be limited to …

Member Avatar for mbhanley
0
152
Member Avatar for amari ♥

i'm new to array. we were given this exercises to be solved: but i have question about letters of ten elements, array integer which is called totals, contents of the character array called words, arrays elements and a lot of stuff that seems to be going with it. thank you. …

Member Avatar for ravenous
0
112
Member Avatar for Lando_

I basically know how functions work now but this problem is just confusing me. Lowest Score Drop Write a program that calculates the average of a group of test scores, where the lowest score in the group is dropped. It should use the following functions: -void getScore() should ask the …

Member Avatar for WaltP
0
119
Member Avatar for leet_uk

Hi. We had a website deployed on IIS server remotely say [url]www.liveserver.com[/url]. We recently decided to make a copy of the website internal to the organisation so we brought a server and copied all the code from live server and configured it and say it is http//archives-testserver.com Everything seems to …

Member Avatar for Rosa2303
0
134
Member Avatar for tawes01

I want to have a live clock in the statusbar. When I put SetWindowText before the switch in the callback, like this: [CODE]BOOL CALLBACK MainDlgProc(HWND hDlg, UINT wMsg, WPARAM wParam, LPARAM lParam) { time_t rawtime; struct tm *timeinfo; time(&rawtime); timeinfo = localtime(&rawtime); strftime(thetimeis,79,"Current Date and Time: %A, %B %d, %Y …

Member Avatar for xuancong
0
241
Member Avatar for samoz83

Hello, Im writing a banking system program for one of my assignments using classes, i've got the some basic stuff done but I can't for the life of me work out how to read data out of a file i've previously created and display it on screen. (I've cut the …

Member Avatar for jonsca
0
82
Member Avatar for jonnypixel

Hi, I have searched high and low and cant find a similar issue to what i have. I am a beginner so please forgive my clunky query structure. I am trying to: ( have attached screen grab below ) Query the [B]photos table[/B] to get the id based on category …

Member Avatar for diafol
0
158
Member Avatar for jrp370

so i know how to add the numbers in a list recursively [CODE] def ListSum(list): if list = []: return 0 else: return list[0] + ListSum(list[1:]) [/CODE] but how would i go about subtracting a list from a list using recursion? does anyone know how/ where i could go to …

Member Avatar for TrustyTony
0
1K
Member Avatar for AntonyLini

Hello all, I am writing a WPF application and used pages for navigation, The thing I want to know is that , [B] [COLOR="Red"][COLOR="red"]How can I get the Relative Uri`s of pages from the assembly dynamically[/COLOR][/COLOR][/B]. I don`t know what to do with this. I know how to get a …

0
80
Member Avatar for seanbp

[CODE] DynamicTypeList list; list.add(42); list.add("forty-two"); for (DynamicType* item = list.begin(); item != list.end(); item++) { if (item->what_type == item->is_int) { cout << item->integer << endl; } else if (item->what_type == item->is_string) { cout << item->string << endl; } }[/CODE]

0
591
Member Avatar for seanbp

I was reading a post somewhere on this site about making a type-dynamic list and came up with this. The issue is I'm thinking it's leaking memory when the list grows. Finally, are there any ways to improve this code? [CODE]#include <iostream> using namespace std; class DynamicType { public: union …

Member Avatar for seanbp
0
111
Member Avatar for Bliksempie

Hi everyone, I have a very large CSV file. 51427 lines to be exact. I need to import the entire file into a MySQL database, however, the script times out due to server settings and slow connection (and maybe other reasons that I am not aware of). So - I …

Member Avatar for pakkupakku
0
1K
Member Avatar for imran_newid

I just want to know which is the best FREE Web Hosting provider which has max uptime (uptime really important) with cpanel, php, mysql and softachoculos. (just these I need) I want to use free address from dot.tk as my primary site address.(I already have dot.tk no problem with that …

Member Avatar for imran_newid
0
142
Member Avatar for EvolutionFallen

Hello, I'm trying to create a button that allows the user to d/l info from a DB into a CSV. The button works fine, the download window appears and asks if I want to save/open the csv file. But when the file opens, there is nothing in it, and I …

Member Avatar for EvolutionFallen
0
113
Member Avatar for krosty4782

Hi! Im having a problem in the next line: i = socket.Receive(buffer) buffer is defined as: byte[] buffer = new byte[1024]; It crash when its waiting for the answer. In c++ im sending this: len = send(sock,"hola",4,0); Any idea? Thanks

Member Avatar for krosty4782
0
177
Member Avatar for phpDave

Hi, I have a script that uploads images into MySQL but I am have trouble resizing the image on upload. Can anyone help? Here is my code so far: [CODE]<?php require_once('Connections/connAdmin.php'); ?> <?php //file properties $file = $_FILES['content']['tmp_name']; if (!isset($file)) echo "please select an image."; else { $content = addslashes …

Member Avatar for mbhanley
0
87
Member Avatar for jlovesfishiee

Hi, I am a beginner learning about java language and netbeans, and have a few questions I would like to ask. I want to create a new JSP page to allow a user to add new attributes/items, or to update the attributes in a database/table that I already have. How …

Member Avatar for jlovesfishiee
0
242
Member Avatar for dhirananda

can someone help me how to connect database from ms access to vb.net?????? please help me.. :(

Member Avatar for deshmukh dinesh
0
812
Member Avatar for Victoryy

Hi All, I have a crystal report with DrAmt, CrAmt, DrBankAmt, CrBankAmt fields. While displaying the report i want to display.. the records whose following condition satisfied... [B]((sum(DrAmt)+sum(CrAmt)) - (sum(DrBankAmt)+sum(CrBankAmt))) <> 0[/B] how can i check for this condition in selection formula.... I have used following line of code... but …

0
66
Member Avatar for jogieglenmait

i have a notepad that i made into a database. i want to know if a username and a password are valid combination. but if i run it, the 10th entry, for example, gives 10 different outputs until it finds the perfect match. suggestions would be nice. <?php $user=$_POST['user']; $pass=$_POST['pass']; …

Member Avatar for jogieglenmait
0
153
Member Avatar for cempaka123

h[B]ow to create a java program using applets by calculate the groccary items please help me[/B]

Member Avatar for ProgrammerAl
0
88
Member Avatar for seanbp
Member Avatar for meensatwork

Iam getting the error Heap Corruption Detected if i run the following program. If i comment out the line delete[], iam not getting the error. Also if i change the [B]outTxtStr = new char[outTxtLength + 1][/B] to [B]outTxtStr = new char[50][/B] iam not getting the error. Does anybody have some …

Member Avatar for meensatwork
0
130
Member Avatar for searchec

Hello Friends, I am new with asp.net.How to use mysql backend in asp.net please answer with code example.

Member Avatar for kvprajapati
0
134
Member Avatar for Patel44
Member Avatar for rgutierrez1014

Hi everyone, So I tried making my program here, and I got an error that I can't figure out. I have a class for a Binary Tree, "Stree", with a few methods defined publicly, and a "Node" class defined privately, within "Stree". These methods use "Nodes" as parameters. Now when …

Member Avatar for rgutierrez1014
0
280
Member Avatar for madhan

Hi, I have a dataGridView that is bound to dataset.I have created a add new button for DatagridView. my problem is the studentid that is a primary key column which is already defined in the table. I am struggling to autoincrement the datatable.please review the code below and let me …

Member Avatar for kvprajapati
0
426
Member Avatar for crosario90

Im writing a progam that calculate a person test score then prints out a letter grade bt i need to modify it so that the function "PrintGrade" actually keeps track of the highest score entered this is what I have so far... //This program reads a course score and prints …

Member Avatar for crosario90
0
175
Member Avatar for DevonParsons

Hi Daniweb, I've almost always found solutions for various problems before and have now decided to become a member so I can contribute as well. I would consider myself a so-so programmer (I understand classes, pointers, matrices, I/O, vectors, and of course structure). I am only able to make code …

Member Avatar for daviddoria
0
164
Member Avatar for steve_Student

Hi i have completed my assignment for my foundation degree, the details of the assignment are attached describing the C++ program which to be created, which is for a telephone company to log calls and give discount depending on the time of day and day of the week, and to …

Member Avatar for daviddoria
0
245
Member Avatar for ibdatx

Hi, I have a question regarding navigating to a listbox item in C#. I have written code which populates a listbox from an xml file in xaml (thus bound to it). However I want to navigate to the selected item in the listbox using code in c#. I can navigate …

Member Avatar for ibdatx
0
283
Member Avatar for tendaimare

i have this function and it is giving me this warning. and i have many similar functions so by the time i'll be done i'll have a thousand warnings how can i get rid of the warnings Function 'SelectRows_local' doesn't return a value on all code paths. A null reference …

Member Avatar for Unhnd_Exception
0
110
Member Avatar for Hideyshi

I want to create a script that is constantly running in the background, searching for serial inputs. I have the background and serial input parts worked out. All I want to know is an effective way to constantly search for input, that does not bog down my CPU usage, or …

Member Avatar for Hideyshi
0
101
Member Avatar for mbhanley

Not sure if its the sql query or what, but I have a pagination class and a function I am trying to put together if some one would be able to point be in the wright direction it will be very appreciated. :) The following is the function which I …

Member Avatar for pauper2thedemon
0
205
Member Avatar for sharifyboy7

I am having trouble with my print function for my linked queue. My compiler error is pointing towards cout << tempPtr->info << " "; line 149 tempPtr = tempPtr->next; line 150 in my print function. Can anyone help me fix this? Thanks CODE: [CODE] #include <iostream> #include <cstddef> // For …

Member Avatar for jonsca
0
320
Member Avatar for smoke1914

I need help to write a program which calculates your grade for this class. All grades input should be taken from keyboard. the grade is calculated as follows: Grades = (homework-1 + homework-2 + homework-3 + homework-4 + homework-5)* .10 + midterm * .20 + final * .30

Member Avatar for ProgrammerAl
0
87
Member Avatar for JellyTurf

The first block is all of my methods and stuff and the second block is just the driver. i'm trying to get it to ask the user if it wants to repeat the whole thing again, but it only works with the last 2 choices [CODE]import java.util.*; public class methodsForTest …

Member Avatar for ProgrammerAl
0
135
Member Avatar for Frankey

Hi there, i am struggling with my code to read xml with php. it is giving the following error: Fatal error: Call to a member function attributes() on a non-object on line [COLOR="Red"]red[/COLOR]. The weird part of it is that the output is good/as it should be. [CODE] if( ! …

Member Avatar for thez0mbie
0
3K
Member Avatar for BleepyE

Hi, I was just wondering if there was anyway to create some sort of stopwatch, that doesnt include labels signifing, milli seconds etc? Thanks

Member Avatar for BleepyE
0
115
Member Avatar for Lando_

Using Borland 4.5 I think I got most the program done but its hard for me to setup functions with returning names and values. Problems States: Winning Division: Write a program that determines which of a company's four divisions (Northeast, Southeast, Northwest, and Southwest) had the greatest sales for a …

Member Avatar for Lando_
0
1K
Member Avatar for attism

Hi.. I'm having problem with my website, and I just cannot figure it out what's the problem with my code. Any ideas? Thanks. [CODE=PHP] // get related files from database if ($settings['related_files'] == 1) { $related_query = mysql_query('SELECT f.fileid, f.title, f.description, f.icon, f.iconlocation, f.timesplayed from '. $tbl_prefix .'related AS r …

Member Avatar for attism
0
249
Member Avatar for efregoso

Hi, so I am trying to create a text file, that holds coordinates of bricks for the game brick breaker. I have a the textfile labeled as level1, and the coordinates are -5,9,0 -4,9,0 -3,9,0 now I am having trouble with getting python to open the file, and read the …

Member Avatar for TrustyTony
0
183
Member Avatar for ethio

Hello all, I'm creating a login application using swing but ive run into problems already, I need help on making the if else statement work so the background is red. Your help is very much appreciated, [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; class MyWindowListener extends WindowAdapter { public void windowClosing(WindowEvent …

Member Avatar for quuba
0
124
Member Avatar for mrodsho

I can't get my game to work, I've been writing it out fo a couple days, worked at some points, but now isn't. I need to add the happyhouse and plane classes into the game, there are hashmarks letting you know what each is supposed to do. In general, kinda …

Member Avatar for TrustyTony
0
246
Member Avatar for cause&effect

I was designing the strategy for Tic Tac Toe: CHOOSE THE MOVE WITH THE HIGHEST PRIORITY - if you have 2 in a row, get 3 in a row; if the opponent has 2 in a row, get 3 to block him; play the center; if the opponent is in …

Member Avatar for UsSy
0
302
Member Avatar for tcollins412

i am writing a game in JavaScript. I don't know any php so i need help making a page were people can submit their game scores. Thank you.

Member Avatar for cossay
0
165
Member Avatar for Nyaki Makgoba

Okay, i've just started python a few days ago, and i think i'm doing well considering how quickly I"ve been working, but I've reached a dead end!! I keep encountering an error when using the statement "from sys import argv" In the first code were I had this problem, I …

Member Avatar for TrustyTony
0
247
Member Avatar for Violet_82

hi guys, I am working on a project for my school, and I was wondering whether I can get some guidance and tips on how to tackle it. Here’s the problem in brief: I was asked to develop a program so that users can input the data values of 2 …

Member Avatar for Violet_82
0
91
Member Avatar for bben95

Could somebody please help me to add a function to this script in which the image to test if the server is up has a timeout, so it shows an error message to the user instead of just loading forever. The current function of the code is: Attempt to load …

0
140

The End.