199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
![]() | 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 … |
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 … | |
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 … ![]() | |
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 … | |
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 … | |
[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] | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
can someone help me how to connect database from ms access to vb.net?????? please help me.. :( | |
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 … | |
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']; … | |
h[B]ow to create a java program using applets by calculate the groccary items please help me[/B] | |
Is this decent code, hacks, or somewhere in between? :) | |
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 … | |
Hello Friends, I am new with asp.net.How to use mysql backend in asp.net please answer with code example. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … ![]() | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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( ! … | |
Hi, I was just wondering if there was anyway to create some sort of stopwatch, that doesnt include labels signifing, milli seconds etc? Thanks | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
![]() | 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 … |
The End.