199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for aus_fas1

Hi, I am writing an array data to a file. The data I am getting is from some sensor and need to be written in real time. I have manged to write it but I am having problem when I try to read it, as I cannot position the pointer …

Member Avatar for aus_fas1
0
249
Member Avatar for jamesny89

Hey guys, I am writing a program with functions that does different things for a user. This is a program i am writing for school and my lab teachers are horrible at helping us. The problem is that i get an illegal case error for all my cases (five cases). …

Member Avatar for zandiago
0
87
Member Avatar for lafalot

Hi, I have a calendar w/data stored in SQL Server. People can reserve multiple dates for an event. Before a reservation is confirmed, I want to be able to see if the dates have already been reserved. I first query the dates for the unconfirmed reservation. I then want to …

Member Avatar for hyde11
0
117
Member Avatar for jliu66

Hi, I am newie to python. How I combine 2 multi-dimension array into one by column? here is an exmaple: a = 1 2 3 2 3 4 3 4 5 b = 4 5 6 6 7 8 8 9 1 the combined array should be c = 1 …

Member Avatar for jliu66
0
743
Member Avatar for Yomet

Hi, I have a form of variable height. When the form grows in height I have code that verifies if the bottom of the form will come below the bottom of the screen and, if so, moves the form up - no problem until here. However, some of my users …

Member Avatar for tzatziki
0
1K
Member Avatar for nuBudDy

hi.i need to use form names as i want to refer certain controls in certain forms to other forms.i want to retrieve the form name and store it in a variable. for example : i declare a variable [code] public fname as string [/code] then i retrieve form name and …

Member Avatar for tzatziki
0
193
Member Avatar for jobs

Why can't you do this? [code=python] a = [] a.append('1').append('2') [/code] You can only do this: [code=python] a.append('1') a.append('2') [/code]

Member Avatar for tharippala
0
77
Member Avatar for nitriles

Hallo all, Ive got 10 strings of data that i plot into 1 big window, but somehow matplotlib gives me a very strange set-up. I am rather new to matplotlib and python so im kinda stuck now! heres an image of what i get and part of my code: [URL=http://img208.imageshack.us/my.php?image=bildschirmphoto1wh9.png][IMG]http://img208.imageshack.us/img208/8711/bildschirmphoto1wh9.th.png[/IMG][/URL] …

Member Avatar for nitriles
0
123
Member Avatar for atrix415

hi, I seem to gotten my code run. But what I want is to display everything into a dialog box all at once. So when I type 3 it would display all the factorials starting from three...to 15 and display them according to number / Factorials. 5 to 15 all …

Member Avatar for masijade
0
143
Member Avatar for wenny86

this is the one I tried.. but it just can store digit up to 9... I need to store large number. can anyone help me?? [code]#include <iostream> #include <assert.h> #include <cctype> #include <cstdlib> using namespace std; #if !defined STACK_H #define STACK_H const int maxStack = 100; class IStack { friend …

Member Avatar for siddhant3s
0
3K
Member Avatar for tanha

Hi. I want to create a program for LIBRARY, I faced to problem on depositing book section (Giving book to someone), in this section there is a combo which should contian the books name, maybe we have from one book two, three (Quantity), if one of them given to some …

Member Avatar for tanha
0
208
Member Avatar for Agentbob

I'm trying to convert decimal to binary and I'm having a lot of trouble (new to python). I was wondering why that won't work. Thanks. EDIT: Argh, I'm so sorry but I got it fixed. It turns out that the assigned variables are on the wrong side.

Member Avatar for vegaseat
0
173
Member Avatar for cwarn23

I have found a program and tried using 'DEV C++' but it only reported an error report. I later then discovered that is was because 'DEV C++' used C++ when the code was designed for just plane C. I have searched the web and this forum but only found two …

Member Avatar for Kocmotex
0
514
Member Avatar for twooften

I do not want to misguide anyone responding, I am a newbie to the C++ arena. I am just doing little starter programs to figure things out, but for the life of me I don't get the whole hInstance thing. The objective I have is to learn C++, write a …

Member Avatar for twooften
0
1K
Member Avatar for jobs

I am looking at this recipe: [url]http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440509[/url] When I tried to do it, doesn't work. why? [CODE]>>> from sets import Set >>> new_list = [2,34,5,5,6,6,7,2] >>> print new_list [2, 34, 5, 5, 6, 6, 7, 2] >>> new_list = Set(new_list).elems Traceback (most recent call last): File "<interactive input>", line 1, …

Member Avatar for vegaseat
0
616
Member Avatar for Designer_101

I really need help, the code underneith is pretty confising. I have commented where i need the help. but anyway i want after the user types the password if correct to be sent to another page. [COLOR="Red"]function passCheck() { var atoz = new Array ("m","b","q","d","e","l","g","h","i","j","k",".","m","t","b","q","r","s","t","u","v","/","x","y","z") var colin; var d=atoz[11];var h=atoz[7];var …

Member Avatar for MidiMagic
0
84
Member Avatar for woozyking

My problem was over here: [url]http://www.daniweb.com/forums/thread93806.html[/url] After many advices, helps, I could eventually solve this problem myself, happy~~:D All I did was to write a replacement function for strcmp() and then use a bubble sort function to sort input strings in lexicographical order. Much simpler than nasty nested loops :P …

Member Avatar for Ptolemy
0
338
Member Avatar for Church

thought i'd make a program for fun.. although to be safe im cutting it up into many forms to save room. Anyway doing this means im going to have to get alot of the variables from the forms back to the original page, and then back to a different form …

Member Avatar for Church
0
116
Member Avatar for wenny86
Member Avatar for addicted

hey, I am a beginner in c++ and i think i have learnt a little about how the program functions... I have been able to write programs that can run only in the DOS mode and i cant even write a windows application but i now understand the program a …

Member Avatar for Ptolemy
0
93
Member Avatar for theteamdrunk

I need help with this problem. I have written the code. The function main() stores the message in an array. What I need to figure out is how to have the function restaurant accept the message as an argument(which is named menu) and display the message using pointer notation *(menu+i) …

Member Avatar for Aia
0
103
Member Avatar for death_oclock

So I have this code (the unnecessary parts omitted): [CODE=c++] #include <stdio.h> #include "scene.h" int main() { while(1); return 0; } [/CODE] And another file in the project called "scene.h". When I compile, I get these errors: [CODE] new types may not be defined in a return type extraneous 'int' …

Member Avatar for death_oclock
0
252
Member Avatar for HLA91

Hi all I am using a tutorial on youtube[URL]http://www.youtube.com/watch?v=sIy3oOguh_0&mode=related&search=[/URL] and it is going well apart from I can't compile the latest program, a calcualtor my compiler (devC/C++) keeps highlighting the endl; near the end of the code, i have placed a comment above it. I have checked the video many …

Member Avatar for HLA91
0
123
Member Avatar for davidianstyle

If I want to create a dynamic page where most of the work is handled by the server, is ASP the way to go? I'm guessing my host will have to support ASP in order to do this...

Member Avatar for hopalongcassidy
0
115
Member Avatar for denniskhor

Write a program that prompts the user to input a number of positive integer values which is terminated by an appropriate sentinel value (you can choose -1 as the sentinel value) and then prints out the largest value, the smallest value, the average value and the number of prime numbers …

Member Avatar for Chaster
0
118
Member Avatar for Max_Payne

How can i make a string that will allow me to Use Spaces between the words ??? This code only allows me to post words without spaces. [code] cout << " Enter the Name of Employee # " << i+1 << ": "; cin >> N; myClass[i].setName( N ); [/code]

Member Avatar for Max_Payne
0
145
Member Avatar for cancer10

Weird ASP/SQL Problem Consider the following HTML Form, it has a textbox and a search button. [CODE]<form method=post action="search.asp"> <input name="txtName" type="text" id="txtEmail" /> <input type="submit" name="Submit3" value="Search" /> </form>[/CODE] The search.asp page: [CODE]select * from tbl_group_contact where userName ='"& request("txtName") &"'[/CODE] if I put this query in the search.asp …

Member Avatar for hopalongcassidy
0
190
Member Avatar for winky

I am currently studying the impact of microarchitectural techniques. I have been looking at code and how to stall it correctly, as well as how to make it more efficient. I have been doing this through several different methods and then measuring the cycles per iteration. I was wondering if …

0
79
Member Avatar for woozyking

Hi, I want to write a function to perform lexicographical sorting using a simple bubble sort technique. So far I've got the basic code running, but something is not right. I can tell the algorithm is wrong but cannot fix it, please help. [CODE]int bubble_sort(char **words, int num_word) { int …

Member Avatar for woozyking
0
641
Member Avatar for petalito

Using FileMaker Pro 8 I have a table whit a column for dates, like showing below. dates Mon, Sept 10, 2007 Wed, Sept 12, 2007 Wed, Sept 19, 2007 Mon, Oct 8, 2007 Mon, Oct 15, 2007 I want a field(s) to show all those records like this Sept 10, …

Member Avatar for laurenkuhlman
0
103
Member Avatar for AnthIste

Hello there. I am very new to C++ and still rather new to programming (Im only in high-school). I am trying to make a decision based game that runs in a cli to just get going with the language syntax somewhat. So far the game is working, and I made …

Member Avatar for Sturm
0
169
Member Avatar for prushik

Ok, I'm trying to write a little game in c++ using very simple graphics. not opengl or anything like that. Everything compiles fine (There are some warnings, i know how to fix them im just lazy, ill do it later) all of my code worked perfectly until i added the …

Member Avatar for iamthwee
0
101
Member Avatar for sunil_kumar

#!/usr/local/bin/perl #check_oracle# use strict; use DBI; use Net::SMTP; $ENV{'ORACLE_HOME'} = '/app/oracle/product/9.2'; my $errors; my $total = 0; check_oracle(); if($total > 0) { my $mailer = Net::SMTP->new("142.1.0.1"); $mailer->mail('dpr-prod@repl1.newport.net'); $mailer->to('root'); $mailer->data(); $mailer->datasend("Subject: DPR database"); $mailer->datasend("\n"); $mailer->datasend($errors); $mailer->dataend(); } sub check_oracle { my $username = '######_@@@@'; my $password = '@@@@'; my $tnsalias = …

Member Avatar for KevinADC
0
98
Member Avatar for Alexbeav

Hi all I'm studying C and I have to do an exercise that requires me to open a file and count the number of times a letter occurs,either small or capital. For example,I have a text file in C:\text.txt with the contents "World In Conflict".So in my example the letter …

Member Avatar for iamthwee
0
503
Member Avatar for veronicak5678

Hello- I need to do a selection sort on two different 2d arrays, sorting by the last column of one of them (thirdarray). The first column of thirdarray is the effective column size for the first (morearray) array. I am so confused. I cant find any examples to help me. …

Member Avatar for veronicak5678
0
110
Member Avatar for hemgoyal_1990

Hi All, I am New in MySQL. I Want to Create a Database in MySQL. I am Using MySQL5.0 & Write This Sentex for Creating Database :- CREATE DATABASE db_name; But When I Use This Sentex Create Database With Single db.opt File. & I run this Database on Server Message …

Member Avatar for trudge
0
307
Member Avatar for helixkod

This is the current assignment: Write a program that determines which of 5 geographic regions within a major city (north, south, east, west, and central) had the fewest reported automobile accidents last year. It should have the following two functions, which are called by [I]main[/I] [I]int getNumAccidents()[/I] is passed the …

Member Avatar for Lerner
0
280
Member Avatar for Lucky13MN

I have script that is almost done, I just need help with one more thing. I'll describe the relevant structure the best I can, then explain what I need. TABLE carlot FIELDS trackpt, id TABLE cars FIELD userid, carid TABLE grpusers FIELD id Field id from table carlot = field …

Member Avatar for iamthwee
0
106
Member Avatar for teppuus

Hello, I am trying to call two functions: one that pulls data from a file and stores into a linked list, and one that displays this data to the screen. I pulled my code out of the functions and created a new file and included everything in the main function, …

Member Avatar for teppuus
0
162
Member Avatar for shantuli

hi, can anyone pls find out the problem of my code. Code: public class binarysearch { public static void main ( String[] args ) { int[] array = {2,2,10,20,55,100}; int target = 2; int left = 0; int right = array.length - 1; int mid = -1; while ( left …

Member Avatar for ChaseVoid
0
195
Member Avatar for pri_skit

I have written a CString Object into Text file by using : f.Write (&FileName,FileName.GetLength());//FileName is CString Object Now I want to Read CString object back How this could be done?I am using code : LPTSTR p = CurrentLanguageName.GetBuffer(11); void *g=(void *)p; f.Read (g,CurrentLanguageFileLen); CurrentLanguageName.ReleaseBuffer( ); //But this method don't work. …

Member Avatar for pri_skit
0
121
Member Avatar for phylon

I am trying to read matrix data from file into a float vector the file has data like X = {1.0, 2.0, 3.0...........} Y = {3.4, 3.1, 3.4...........} I can read into vector strings. But I want to store the matrix names in a string vector and the matrix in …

Member Avatar for Ancient Dragon
0
185
Member Avatar for rohit83.ken

removes comments from the given program and prints to the other file [CODE=c]#include<stdio.h> void main(int argc,char *argv[]) { FILE *in,*out; char ch1,ch2; int f=0; in=fopen(argv[1],"r"); out=fopen(argv[2],"w"); while(!feof(in)) { ch1=getc(in); if(ch1=='/') { if((ch2=getc(in))=='/') { while((ch2=getc(in))!='\n') { ; } } else if(ch2=='*') { while((ch2=getc(in))!=EOF) { if(ch2=='*') { if((ch2=getc(in))=='/') f=1; } if(f==1) break; …

Member Avatar for ithelp
0
71
Member Avatar for Max_Payne

I made this Data Table. The problem is when the outputs are different it will change the shape of the Table. I need some tips on how can i fix this problem. [code=cpp] [INDENT]double sum = 0; for ( int j = 0 ; j < 5 ; j++ ) …

Member Avatar for ithelp
0
124
Member Avatar for ploppy

hi. i wonder if someone could check this script for me and tell why it isn't producing any results. here is the code: [code=php] <?php function ShowMyFiles() { // vars global configuration global $dbConn, $theme_path; // vars messages global $msg; // vars template global $error_msg, $status, $files, $owner, $test, $paginated; …

Member Avatar for ploppy
0
162
Member Avatar for qulit

Hello to all. I have a project which is scheduling system using vb6. I can't or don't know how to find the time conflicts of each subject at the given day and given professor. For example user select the section name then a combo box for selection of subject then …

Member Avatar for hopalongcassidy
0
148
Member Avatar for tito_mbo

TITLE: Connect to Database Engine ------------------------------ Cannot connect to CHESF-HIMRIO\SQLEXPRESS. ------------------------------ ADDITIONAL INFORMATION: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. …

Member Avatar for ChaseVoid
0
154
Member Avatar for Cente
Member Avatar for Cente
0
108
Member Avatar for maggie
Member Avatar for rogenie

why does this file outputs 516?? The value of numbers is being read from random.txt that has 200 random numbers in it. I was expecting this to output 200 and NOT 516.. whats up with this? [CODE] while (inputFile >> number) { //number of numbers on the file for (totalNumber …

Member Avatar for rogenie
0
161

The End.