43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Diamonddrake

I can't seem to remember what it's called, nor can I articulate a concise explanation to even begin searching the net. (I tried) Does anyone know what that list of Icons like my computer/mydocuments ect that appear to the left in windows XP open and save dialog boxes? I know …

Software Development visual-studio windows-vista
Member Avatar for Diamonddrake
0
156
Member Avatar for bretttmczk

the code following this is my project. The getInfo() function will not return the information, that is one problem i have having. also anyone have a suggestion for a search function for this? [ICODE]#include <iostream> #include <string> #include <iomanip> using namespace std; ///////////// //Prototypes ///////////// void menu(int&); void getInfo(string[], int[], …

Software Development c++
Member Avatar for bretttmczk
0
235
Member Avatar for aria12

How to write a program that asks the users to enter two integers, obtains the numbers from user, then prints the larger number followed by the words "is larger", if the numbers are equal, print the message "these are equal". use only the single-selection form of the if statement.

Software Development c c# c++
Member Avatar for aria12
0
175
Member Avatar for Basteon

Hi! I'm writing the mergesort algorithm, theoretically everything is fine in it but when the function gets to call itself the program crashes. I belive that I'm doing something worng when I pass the vector<int> as a parameter to the function. [B]procedure mergesort(T[1 .. n]) if n is small then …

Software Development algorithm c++ programming-construct
Member Avatar for Basteon
0
1K
Member Avatar for vedro-compota

Mates, this is my first piece of C code. I do not know what is wrong. Please, tell me, that's not so I've highlighted the lines that the compiler "doesn't like " - [CODE]#include <stdio.h> #include <alloc.h> #include <stdlib.h> main() { short int n = 0; int k=0,u,i=0; char a=''; …

Software Development c
Member Avatar for vedro-compota
0
102
Member Avatar for sanjcee

Hi. I'm trying to make a grade forecasting program for python 2.7. My problem is that I'm having difficulty trying to correlate the first "grade element" input with the first "grade element percentage" input. Here's what I have so far. ## Grade Forecast ## Chandiramani Grade Forecast [CODE]import random print …

Software Development python
Member Avatar for richieking
0
110
Member Avatar for Joey_Brown

Hello. Im interested in learning something about allocating memory for a 2d array. So I have a function that does this, and it goes something like this : [CODE]short **g2D(short **arr,short row,short col) { short i; arr=malloc(row*sizeof*arr); if(!arr) { printf("\nMemory unavailable"); exit(EXIT_FAILURE); } for(i=MIN;i<row;i++) { arr[i]=malloc(col*sizeof*arr); if(!arr) { printf("\nMemory unavailable"); …

Software Development c c# c++
Member Avatar for Trentacle
0
151
Member Avatar for choosenalpha

Greetings All, I'm working on some code to essentially build a CGI page where the user places in there SPNs in the form with spaces(example--->) (967866 4566776). Then it calls the subroutine to run a join command to take the SPNS given by the user, and parse them with commas(example--->(967866, …

Software Development display perl sql
Member Avatar for choosenalpha
0
305
Member Avatar for ghosh22

Hi everybody!! I think this is a simplest perl related problem..but still I need your help. Here's my sample input file: [CODE]>blast ATGGGCCTAC ATCCACSTAT[/CODE] Please note that the number of lines could be more than these two, but the Perl script should skip the first line which starts with '>'. …

Software Development perl
Member Avatar for ghosh22
0
123
Member Avatar for shadowscape

hey im new to daniweb, i recently wanted to revise a code for a dll but being as i dont really know c++ i turned to the help of daniweb if you would be so kind to assit me correct any problems with this code it would mean alot to …

Software Development c
Member Avatar for shadowscape
0
571
Member Avatar for hauda67

I was wandering if I could get some help in refining my code for the following problem: "Write a java program that declares an array alpha of 50 elements of type double. Initialise the array so that the first 25 elements are equal to the square of the index variable …

Software Development java
Member Avatar for hauda67
0
166
Member Avatar for alexchen

I am trying to get a random number without repeating. [CODE]int r,number; srand(time(NULL)); number=10; r=rand() % number+1;[/CODE]

Software Development c++
Member Avatar for ravenous
0
18K
Member Avatar for Dingbats

Hi everyone, I'm writing a program for a teacher and friend of mine. It's a simple math-aid prog aimed at children up to 10yo. I was thinking that it would not only be a good idea that a child couldn't shut down the program without a password (obviously), but how …

Software Development c++
Member Avatar for Dingbats
0
1K
Member Avatar for Swiftle

Hello, I have an assignment for a multi thread bubble sort written in Java. It may not sound very hard but we only had 4 hours of introduction and never wrote a single line in Java before getting this. But this isn't the point :P. I have problems with what …

Software Development java user-interface
Member Avatar for Swiftle
0
126
Member Avatar for tendaimare

I am trying to carry out a synchronisation of two databases one on the server and the other on a local machine so that even when they are not connected on the networkthe local database can carry on accepting data but when the network is back on the local database …

Software Development sql vb.net
Member Avatar for kvprajapati
0
206
Member Avatar for cirno

Hello again, codegurus. I need to ask your assistance in converting string to datetype, from 'dd/mm/yyyy' to 'yyyy-mm-dd'. The user could key in either the 'dd/mm/yyyy' format or 'yyyy-mm-dd' format in a textbox. the system would check for both format and convert both to the 'yyyy-mm-dd' date format, to be …

Software Development vb.net
Member Avatar for cirno
0
5K
Member Avatar for m_wylie85

Hi i have wrote a guessing game program but i am get an error when i play it i can get to 99 guesses then i get array out of bound exception error i think my problem is in the fill array method but i could be wrong. could some …

Software Development
Member Avatar for m_wylie85
0
172
Member Avatar for dballar1

I am having some trouble verifying the given data for 'user' against what is already in the users.txt file. An example of a line in the text file is... ('Ralph', '1a1dc91c907325c69271ddf0c944bc72') Where 'Ralph' is what I want to compare against the users input for 'user'. Here is my code so …

Software Development file-system python
Member Avatar for TrustyTony
0
332
Member Avatar for sadsdw

Hello friends, I'm looking for an short example to read a text file and get lines splitting in 3 vectors. I don't know how I'll do this ... E.G: 100 NAME1 30 150 NAME2 40 200 NAME3 50 -> vectorId[0] = 100 vectorName[0] = NAME1 vectorAge[0] = 30 Can you …

Software Development c++
Member Avatar for sadsdw
0
190
Member Avatar for FAITH2011

[B][COLOR="Red"]Hi all, I am dyslexic person and find it very hard to read and write without assistance, I was wondering if there are any good Videos or computer based book that teach Pyton 3.1.3 for begginers that could be recommended. The reason for this is that I can see the …

Software Development python
Member Avatar for SgtMe
0
329
Member Avatar for LianaN

Hi! I would like to make a JFrame that will play a role of a toolbar. It can be dragged and dropped within a specified area. So, I don't know how to specify the area for dragging and dropping. Could anybody help me? Thanks!

Software Development java
Member Avatar for LianaN
0
100
Member Avatar for David_Omid

Hey guys, sorry if this is a silly question but I have a piece of code which contains something like this: [CODE] private: void button1_Click( Object^ /*sender*/, System::EventArgs^ /*e*/ ) private: void button2_Click( Object^ /*sender*/, System::EventArgs^ /*e*/ ) private: void button3_Click( Object^ /*sender*/, System::EventArgs^ /*e*/ ) private: void button4_Click( Object^ …

Software Development c++
Member Avatar for David_Omid
0
152
Member Avatar for alexchen

How can I read a random line from text file. After I get the word I need to count the letters. [CODE]bool word(char *Filename){ ifstream file; file.open(Filename); //add code. return true; }[/CODE]

Software Development c++
Member Avatar for alexchen
0
1K
Member Avatar for ll_jesse_ll

Hey guys I was hoping someone could help me here. I had to make a Tetris game using eclipse for my intro to Java programming class. I got it all done, but i would like to play the game without having to run it through eclipse. For example if i …

Software Development java
Member Avatar for ll_jesse_ll
0
122
Member Avatar for moroccanplaya

im new to shell scripting i want a simle script to configure the ip adress and add a default gw this is what i got so far [CODE] #!/bin/bash ifconfig eth0 "ipadress" route add default gw "gw adress" [/CODE] it does not recognise route ? can anyone help?

Software Development shell-scripting
Member Avatar for moroccanplaya
0
132
Member Avatar for FAITH2011

Hi all, I am new Phython user and started using Python 2.7 just a couple days ago. I have written this code which is working, But when user put in correct code loop is not breaking ?? just wondering if it could be improved and what book would you recommend …

Software Development python
Member Avatar for griswolf
0
216
Member Avatar for m_wylie85

Hi all trying get small program work. I want my program to search for a word within a text file then out put the word with the rest of the fileds with the sentence. so say i input 4 word/numbers from 4 different text boxes. the ouput to the text …

Software Development regex
Member Avatar for sergb
0
133
Member Avatar for baldwindc

I'm looking for a starting point on this. Can someone point me in the right direction? I want to allow a user to create a new class object that will just store data. My class is data and my type is "flight" so: [code=java] Data flight1 = new Data("A string", …

Software Development java
Member Avatar for baldwindc
0
358
Member Avatar for r0adawg

Hello, I'm new with perl, I've been able to read and write from file #1 to file #2. file #1 currently is about 60meg of text... what I would like to do is to read up to 2 char from a constant position and then use that data in a …

Software Development perl
0
69
Member Avatar for FAITH2011

Hello all, I need a little help with Dictionary statement. My question is it possible to display just one thing for a Dictionary ? I know that Dictionary use Keys and Values so if I have this code. How would I display let say the Dog from Dictionary without printing …

Software Development python
Member Avatar for TrustyTony
0
130
Member Avatar for MUFC4life

i = 1 while i < 10000 and i > 0 and 1 : print " still going ..." i = 2 * i Hi i am new to Python and completley useless at it. Can somebody please explain to me why this code prints "Still going" 14 times. I …

Software Development python
Member Avatar for 15uck
0
135
Member Avatar for hearthand

Basics are: Another area of my program takes in strokes and then uses the recogniser to interpret those strokes into a recognise result. The result of this conversion is saved and is accessible. This is the string part of my question. On another screen I have a panel which takes …

Software Development file-system pdf
Member Avatar for hearthand
0
203
Member Avatar for neosonic

Hi All, I have a sub and trap the error with: ------------------------------------------ private sub mySub(mydoc as string) On error goto goto handlemyerror kill app.path & "\" & mydoc handlemyerror: msgbox "I cannot kill it" end sub ------------------------------------------ mydoc is word document with 2-3 pages length. It works fine to avoid …

Software Development visual-basic
Member Avatar for AndreRet
0
125
Member Avatar for VBNew

Hi, I have 2 text box, Text1 is to display the week no and Text2 is to display start date of the week. Do anyone know what function I should use in VB6? Thanks, Annie

Software Development visual-basic
Member Avatar for AndreRet
0
303
Member Avatar for terabyte

I was wondering if there is a global matching flag, considering there is a global replacement flag (/g) I'm using this workaround to make multiple matches in a string [CODE] while(!$stop_var) { if($source =~ /(PATTERN)/i) { push(@matches, $1); $source = $'; } else { $stop_var =1; } } [/CODE] is …

Software Development perl regex
Member Avatar for mitchems
0
169
Member Avatar for Roy1287

Quick question From main thread [CODE]double[] ascore; int i; imax=high.highestScore(ascore[],i); [/CODE] From method highestScore [CODE] public class highestScore { // This method checks which number is higher. public static double highestScore(double[] score,int arraySize) { int index; double maxScore=0; for (index=0; index<arraySize; index++) { if (maxScore < score [index]) maxScore= score[index]; …

Software Development java
Member Avatar for Roy1287
0
132
Member Avatar for tendaimare

can someone help me with why this code is not inserting into the database [CODE] Dim MyConnection As SqlConnection Dim sqlstring As String = "INSERT INTO Workers (FName, LName, FullName) VALUES ('" & Me.txtName.Text & "', '" & Me.txtSurname.Text & "', '" & Me.txtFullName.Text & "')" 'Dim data_base As String …

Software Development open-source sql vb.net
Member Avatar for tendaimare
0
123
Member Avatar for DAlexNagy

This is a request for some 'best practices' comments from experienced OOP practitioners. I have been in IT from the days of punched cards and have had considerable experience with legacy languages like 370 ASM, SAS, and REXX. For fun, I've taken a college class in C++ and am now …

Software Development c++ web-design
Member Avatar for DAlexNagy
0
169
Member Avatar for lagspike

A simple physics graph... [code=python]import pylab a_time = range(0,141,10) a_R = [3.0,2.8,2.56,2.36,2.2,2.0,1.86,1.7,1.6,1.43,1.3,1.2,1.1,1.06,0.96] for i in range(0,15): pylab.plot(a_time[i],a_R[i], 'x') pylab.errorbar(a_time[i], a_R[i], 0.5, 0.05) pylab.show() [/code] I'm guessing the [icode]pylab.plot[/icode] line isn't needed, but even with this there is nothing connecting the plots together. I'm pretty sure there wasn't anything extra needed …

Software Development python ubuntu
Member Avatar for lagspike
0
270
Member Avatar for Dean_Grobler

Helew! I just wana know if someone might have an idea of how I can go about doing this: So attached I have a little example I whiped up. Say you have 3 buttons, button1, button2, button3. What I wana do, is when you click [B]button1[/B], it will magicly turn …

Software Development display java
Member Avatar for javaAddict
0
117
Member Avatar for Prashant20

Hi everyone... I am developing this student management system which has one form that saves student data( including student image). Now w.r.t saving student image I want that the user should insert image from the folder where he has saved student images. On the save button the image path of …

Software Development mssql
Member Avatar for Prashant20
0
415
Member Avatar for Simplicity.

I have developed a python code that is comprised of several functions, I want the output from the last function to be an input in the first function and the program should stop when a certain criterion is met! for example: [CODE] [[COLOR="Red"]def[/COLOR] f1(something1): Block of statements [COLOR="Red"] return[/COLOR] something …

Software Development python
Member Avatar for Simplicity.
0
142
Member Avatar for bronzer888
Member Avatar for limepebblez

Hey guys I'm really stuck in this very urgently needed solution, been working for 3 weeks plus and still can't come up with a working solution! Help needed asap. [U]ISSUE:[/U] The problem is simple. I have 2 PCs. One is 'master', second is 'slave'. On 'master', I have my .NET …

Software Development vb.net
Member Avatar for limepebblez
0
178
Member Avatar for mhalfpap

Hello, I’ve just about scrambled my brain on this, searching and trying things, so I’m hoping someone sees something that I’m missing or can explain it to me. I’m new to .NET, used to do a lot of programming in VB but that was many years ago. I mainly lurk, …

Software Development vb.net
Member Avatar for mhalfpap
0
438
Member Avatar for FAITH2011

I am trying to run this program in python 2.7. But get an error Traceback (most recent call last): File "C:/Python27/Rpg1.py", line 95, in <module> p = Player() File "C:/Python27/Rpg1.py", line 25, in __init__ Character.__init__(self) AttributeError: class Character has no attribute '__init__' When run this pragram can someone help me …

Software Development python
Member Avatar for TrustyTony
0
152
Member Avatar for dragonstear

sequence is a string, and gene is the the word that i gotta find.. im new to python.. and so far i got this: the list always ends with a -1 at the very end...how do i get rid of that.. [CODE]def find_genes(gene,sequence): list= [] count = sequence.count(gene) find = …

Software Development python
Member Avatar for dragonstear
0
165
Member Avatar for ogsirus

Hi All, Im trying to Insert a new row into a database and refresh the dataset. This is what I have so far: [CODE]void ButtonInsert(object s, EventArgs e) { string connectionString = null; OleDbConnection connection; OleDbCommand cmd = new OleDbCommand(); string sql = null; connectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;data source=Book.mdb"; connection = …

Software Development dataset microsoft-access open-source
Member Avatar for ogsirus
0
177
Member Avatar for MasterGberry

What does the substring function do? The answer i found online doesn't seem to be accurate. I thought that it reads the (#) index and everything after, but I guess that is wrong. The other functions that look wierd are already part of a class, i am just confused on …

Software Development
Member Avatar for MasterGberry
0
143
Member Avatar for eskimo456

Hi there I am building a 3D game in C++ and openGl I came to do a full test of my game the collision detection and things are finally approaching working fully. When I run it it becomes very memory hungry and eats a few Gb of Ram and crashes …

Software Development c++ opengl
Member Avatar for eskimo456
0
169

The End.