199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for alcx88

I'm trying to sum command-line integers. My total is constantly 473. I dont know how to get the right total. [CODE]#include <stdio.h> 4 #include <stdlib.h> 5 #include <ctype.h> 6 7 #define MAX 100 8 9 void sum(char *a, int n); 10 11 main (int argc, char *argv[]) 12 { 13 …

Member Avatar for chiwawa10
0
108
Member Avatar for mrbungle

Ok, here's what I've got. In the screenshot, you'll see three things- a start time, end time and total time. So the goal is this- A user puts in a current start time by hitting F1 at the start of shift. They tab across the end time to the "time …

Member Avatar for codeorder
0
157
Member Avatar for Eric Cute

Hi everyone. Im trying to upload a file to an ftp server. I found this code in the internet but its not working for me. Can anyone please tell me where the error is?? This is my code [code]import java.io.*; import org.apache.commons.io.FileUtils; import org.apache.commons.net.ftp.FTP; import org.apache.commons.net.ftp.FTPClient; import org.apache.commons.net.ftp.FTPFile; public class …

Member Avatar for Eric Cute
0
337
Member Avatar for viandante

I'm trying to make a siple list to display sqlite rows in a grid using wxList. I can't come up with something decent. I can't place correctly the items in the list. [code] #!/usr/bin/env python # -*- coding: utf-8 -*- # generated by wxGlade HG on Wed Sep 22 12:34:17 …

Member Avatar for viandante
0
137
Member Avatar for lse123

PHP: If go to upload an image exist already and sometimes want replacement what code? if this is the default, please tell me for: if[B] not [/B]want replacement what code?

Member Avatar for phpuser
0
93
Member Avatar for Dazaa

Hi, I usually use C++, but I am working with some very old code and need to do it in C. So i understand malloc is used char *p; p = malloc(200); where 200 is the amount of bytes I need. and yes i know I need to use free. …

Member Avatar for sree_ec
0
178
Member Avatar for fredw300

Hello all, I need to develop a simple web application in java that will take MS excel files as input and generate output in excel format as well. Since I am not very experienced in java I am not sure what framework should I be using. Do I need to …

Member Avatar for peter_budo
0
160
Member Avatar for doffing81

Let's create a continuing thread to program Crazy 8's from scratch for learning purposes! [B]DECK/CARD IDEA'S[/B] My simple starting suggestion: [CODE]deck = ['2C','3C','4C','5C','6C','7C','8C','9C','10C','JC','QC','KC','AC', '2D','3D','4D','5D','6D','7D','8D','9D','10D','JD','QD','KD','AD', '2H','3H','4H','5H','6H','7H','8H','9H','10H','JH','QH','KH','AH', '2S','3S','4S','5S','6S','7S','8S','9S','10S','JS','QS','KS','AS',][/CODE]

Member Avatar for doffing81
0
1K
Member Avatar for LevyDee

So i guess its easy enough to encrypt text, but what if you wanted to encrypt a video file or some other file that wasn't text? By writing my own program I mean. How does that work, any links? Thanks

Member Avatar for LevyDee
0
85
Member Avatar for kalyanapu

hi, I am designing Online Test Creation Using asp.net(C#). in that question display should be like this; .....................Question............................. O opt1 O opt2 O opt3 O opt3 prev next (buttons) my questions and Options had saved in two Sql tables. Question(idquestion,Qname,Answer,Qtype) idQuestion is primary key Answer_Detail(idAnswerDetail,idquestion,options) idAnswerDetail is primary key and …

Member Avatar for nirajs
0
264
Member Avatar for jackiejoe

Set up my database through the wizard and copied the connection string it presented to me. But am having problems connecting to the actual DB. Error quoted below. Am I missing out on something? [CODE] Private Sub btnDB_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDB.Click Dim strConnect As …

Member Avatar for askbapi
0
101
Member Avatar for sasikala123

Hello Everyone, In my sql database I am having a country field and a State field with some values and also some null values and I am populating the country values into a dropdown list box in the frontend using database connection e.g. [B]Country[/B] India Indonesia null Iran My requirement …

Member Avatar for zid8ne
0
179
Member Avatar for dasari.prasad

When to use pointers and when to use references in c++. plz clear my doubt.. thnks in advance

Member Avatar for ben1Greer
0
431
Member Avatar for zachattack05

I have a project that can potentially use a SQL server as a host for it's data. When a user starts the application for the first time, a wizard walks them through selecting how to store their data. If a user selects the SQL option and indicates that the database …

Member Avatar for zachattack05
0
96
Member Avatar for phpDave

Hi, My mysql_error is No Database Selected. errno 1046 I am connected to the database and it has worked fine before so I was wondering what I am doing wrong. The code is from a tutorial I am using. [CODE]<?php require_once('Connections/connAdmin.php'); ?> <?php //file properties $file = $_FILES['content']['tmp_name']; if (!isset($file)) …

Member Avatar for phpDave
0
108
Member Avatar for jude1693

This is what I have done so far. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace game.casestudy { public partial class Form2 : Form { public Form2() { InitializeComponent(); } private void objectiveToolStripMenuItem_Click(object sender, EventArgs e) { Form Ronald = new …

Member Avatar for jude1693
0
116
Member Avatar for Enders_Game

So I'm trying to make a parser for a game replay. I just need help getting started, I have docs for it explaining. Atm I'm just trying to get the header parsed. [code] replay = open(r'C:\Users\CookieMonster\Desktop\mix.w3g', 'rb') #offset | size | description print(replay.read(0x1c)) #0x0000 | 28 chars | zero terminated …

Member Avatar for griswolf
0
358
Member Avatar for harrispc

My problem is that when this executes the results come up as a query in the text box and not the result. Is there a way that this can be converted? The idea is to select a name within the combobox and this should update the 3 textboxes with the …

Member Avatar for harrispc
0
84
Member Avatar for basics_of_sena

I am in an artificial intelligence class. We got our semester long project. We have to build a game of dragon checkers. The game has been created by our professor. It is very similar to animal checkers only a little bit more complex. I have played both animal checkers and …

Member Avatar for basics_of_sena
0
139
Member Avatar for slingblade

I've been trying to modify a function and every attempt seem to screw up the plist. [CODE]def removeItem(pl, item_name): for dock_item in pl['persistent-apps']: if dock_item['tile-data']['file-label'] == item_name: verboseOutput('found', item_name) pl['persistent-apps'].remove(dock_item) return True for dock_item in pl['persistent-others']: if dock_item['tile-data']['file-label'] == item_name: verboseOutput('found', item_name) pl['persistent-others'].remove(dock_item) return True return False [/CODE] This scans …

Member Avatar for slingblade
0
129
Member Avatar for radhika tyagi

[B][COLOR="Green"]i am making a .net website and willing that the menu items should appear in the bottom of a button when mouse is placed on the button. what to do? [/B][/COLOR]:'(

Member Avatar for radhika tyagi
0
93
Member Avatar for AngelicOne

I have a database that needs to have unique values wherein it will provide an error saying "Username already exist" and will not add to database. How to do this?

Member Avatar for AngelicOne
0
190
Member Avatar for YingKang

I just learned class and object today, couldn't even get the code compiled. could anyone help please? Thank you I have three files: Product.h Product.cpp TestProduct.cpp We haven't learned to put everything in a project yet. so for now, just just these three source files. [CODE] class Product { private: …

Member Avatar for mike_2000_17
0
749
Member Avatar for zebnoon1

[B]Hello and Asslam o alekom![/B] This thread is for who wants to learn VB6, post your suggation and advises to us.

Member Avatar for Retsel_ter
0
690
Member Avatar for NewLegend

Hello I used 2 linked list. First : Students. Second: Doctor. Every Doctor takes a set of his students. The problem : How do I add students to the doctor? [CODE]#include <iostream> using namespace std; #include <string> struct student { string name; // current name student *next; // pointer to …

Member Avatar for mike_2000_17
0
93
Member Avatar for nyler01

How to automatically setfocus on text input in a and go back to same page after data has been entered.. Just like after you enter a data in input box, the form will refresh and the focus will go in the textbox again.. thanks in advance..

Member Avatar for nyler01
0
90
Member Avatar for nore

In my case, i want to make some tool with event, example : make a new textbox with event button click. Can Visual Studio 2005 vb.net do that? How to do that? thanks before :)

Member Avatar for nore
0
122
Member Avatar for kgNIU

Basically this is suppose to read zipcodes from a file and sorts them in ascending order then calculates the total amount processed. I am getting output, but I think my problem is somewhere in my sort function. The program pretty much runs down to the last zipcode in the file …

Member Avatar for VernonDozier
0
95
Member Avatar for Yutxz

Hey guys, I'm having a little trouble with my Java homework. So far I'm stuck on problem 3.5, C). My code so far is: [CODE]package multadd; /** * * @author Josh */ public class Main { public static void multadd (double a, double b, double c) { System.out.println ( a …

Member Avatar for Yutxz
0
139
Member Avatar for larissalle

Hi, 1) below is an assembly question with the answers in red. I am trying to find out where the numbers 3, 4, 16/4, and 16 came from. I understand they are from intel for the IA32 chipset. But I can't find any table that shows where to get these …

Member Avatar for noop
0
1K
Member Avatar for Marian0

Hello. I am trying to get the correct code in order to get specific content shown according to the current site the visitor is on. I have done two tests: [CODE=php] <!--START TEST 1--> <?php class address { function curPageURL() { $pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") {$pageURL .= …

Member Avatar for P0lT10n
0
152
Member Avatar for myosuof

Hi, I am working on my assignment: The assignment is: The process of finding the largest value (i.e., the maximum of a group of values) is used frequently computer applications. Write a Javascript program that input a series of 10 single digit numbers as characters, determines the largest of the …

Member Avatar for P0lT10n
0
162
Member Avatar for mr-cracker

hi all, anyone knows whats wrong with this ipn lister? its exact same paypal ipn with only few changes in sql query, i get 500 internal server error however when i use the original paypal ipn script i don't get any error, any help please [QUOTE] <?php include ('config.php'); ///////////////////////////////////////////////// …

Member Avatar for P0lT10n
0
137
Member Avatar for omarelmasry

I found a code on several websites for a UDP client and server ... when I run the code of both the client and the server on one computer, it works normally ... but one I work on two computers (one server and the other client), the sever becomes 'Not …

Member Avatar for omarelmasry
0
239
Member Avatar for PascalNouma

Hi everyone, Does anyone know how to remove a particular attribute in XML by using Python? [CODE] <country> <city capital="Paris">Paris</city> ............ ............ </country> <country> <city capital="Helsinki">Helsinki</city> ............ ............ </country> <country> <city capital="Bogota">Bogota</city> ............ ............ </country> [/CODE] I just wanna delete or remove Paris and Helsinki here by using SAX or …

Member Avatar for bvdet
0
326
Member Avatar for danalovesc

those are the maps: [CODE] multimap<SortKey,T> firstMap; multimap<SearchKey,pair<SortKey,T>*> secondMap; template <class T,class SortKey, class SearchKey> bool GarageDataBase<T,SortKey,SearchKey>::Add(T data,SortKey key1, SearchKey key2) { multimap<SortKey,T>::iterator it; it=(firstMap.insert(pair<SortKey,T>(key1,data))); pair<SortKey,T> *mizi=&*it; secondMap.insert(pair<SearchKey,pair<SortKey,T>*>(key2,mizi)); return true; } [/CODE] I am trying to insert a pair into the firstMap and get a pointer to this pair and …

Member Avatar for mike_2000_17
0
1K
Member Avatar for rebellion346

[CODE] weather(sunday,fair). weather(monday,overcast). weather(tuesday,fair). weather(wednesday,fair). weather(thursday,overcast). weather(friday,rainy). weather(saturday,overcast). sky(blue):- weather(Day,fair). sky(grey):- weather(Day,overcast). [/CODE] If the weather is fair, the color of the sky is blue. If the weather is overcast, the color of the sky is grey. Birds are active on Sunday, Tuesday, and Thursday. Birders are happy on a …

Member Avatar for rebellion346
0
962
Member Avatar for ceyezumma

///////////////////////////////////////////// make .jar runnable ////////////////////////////////////////// Hello; I can make a .jar from my program and move it to a folder in my progject but I would like to make it runnable. So I have shown the Command to make the -cmf (non runnable) .jar that works fine. I will show …

Member Avatar for ceyesuma
0
278
Member Avatar for ceyezumma

j ///////////////////////////////////////// Hello; I Have a JDesktopPane that opens with a x frame (JInternalFrame)wit a JMenuBar and 11 JTabbedPanels .produced by x.class.I click the menuItem to produce z.frame using x.class a new JInternalFrame with 4 tabbedPanels on it again produced by x.class. Now I click on x.frame and try to …

Member Avatar for ceyesuma
0
289
Member Avatar for ThrasherK

Here is the problem I am supposed to be answering: Suppose an expression is represented in a string (i.e., 35*4+5/(4+5)). Write a function that splits the expression into numbers, operators, and parentheses. The function takes an expression as the argument and returns a vector of strings. Each string represents a …

Member Avatar for ThrasherK
0
413
Member Avatar for Bodmingaol

Hi, I am developing a Winform app in 2010 Express. I want to be able to srip out superscript and subscript characters out of the strings that I am cutting and pasting from web pages. For example: [CODE] 1 I, Nephi, having been aborn of bgoodly cparents, therefore I was …

Member Avatar for Bodmingaol
0
225
Member Avatar for effizy

Hello all, I am working on a couple of programs and having similar problems with both, not sure what am doing wrong and would appreciate help as usual. The first program should have a class which can store up to 10integers. Only one copy of any integer(no duplicate value. Program …

Member Avatar for effizy
0
94
Member Avatar for KPheasey

I am having a weird problem setting a session variable. I use a session array ($_SESSION['message']) to display messages. $_SESSION['message']['type'] = error/success; $_SESSION['message']['message'] = $message; Here is the function for displaying the message: [code=php] function displayMessage(){ if(isset($_SESSION['message'])){ echo" <div class=\"notification " . $_SESSION['message']['type'] . " png_bg\"> <div> " . $_SESSION['message']['message'] …

Member Avatar for KPheasey
0
288
Member Avatar for erin2010

Hi, I have created a MYSQL database and connected to it using Dreamweaver CS3. There is a Master and Detail page and the initial creation works correctly. (not bad for my first attempt!!):cool: The site is for a dog rescue charity and it would be best to be able to …

Member Avatar for brandonrunyon
0
146
Member Avatar for senche

Hi, Can anyone provide some examples or materials explaining ANSI and Non ANSI C Standards? Need some examples for non Ansi C Stanadard. Thanks in advance, regards, senche

Member Avatar for N1GHTS
0
996
Member Avatar for Layla_2401

Hi all, If anyone uses OpenSSL, I'd appreciate it if they can take a look at this code, where I'm trying to encrypt and decrypt a short test string. At first I used to get a run time error in the RSA_public_encrypt(...); and I thought that it was caused by …

Member Avatar for joneil001
0
2K
Member Avatar for malvi

Hello, Please tell me how can i generate an array in mfc, how can push element and how can initialize array? I want to make dynamic array of hexadecimal values. Thanks.

Member Avatar for Rajesh R Subram
0
113
Member Avatar for Dewey1040

I'm trying to create a program to add two IEEE 754 floating point numbers, I'm pretty far into the program but I've come to a halt in the bit shift section of the algorithm. I have created a tmp variable to copy the mantissa(0's and 1's inside the char array …

Member Avatar for N1GHTS
0
1K
Member Avatar for acrocephalus

Hello! I have a frame with some sizers in it (see code at th end for a running example). I would like to know how to repeat the sizers 2, 3 and 4 when pressing the add button. The sizers should be added before the submit button, and the control …

Member Avatar for acrocephalus
0
125
Member Avatar for SamSmiles

I have a programming assignment which I must complete and I need help starting it. We can't talk about code with the professor or the TA so I thought I'd come here to try and ask. Pretty much were going to be given a text file. This text file will …

Member Avatar for Ancient Dragon
0
112

The End.