132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for yellowkaiq

Write parts 1 (convert string to lowercase) and 2 (tokenize string) of that code and incorporate the function below. Use the string.split function. Get the code to work as a cohesive unit to convert strings like "two hundred sixty two" to numbers like 262. This is basically what I need …

Software Development python
Member Avatar for yellowkaiq
0
207
Member Avatar for mslade

Hi everybody, this is my first post here. I'm trying to find out why lib_ncurses' initscr() is failing on me, so I compiled a quick program that runs it and attached gdb to it. I've only used gdb a few times, so I think I might be misinterpreting what I'm …

Software Development c++
0
112
Member Avatar for Obsidian_496

Hello. I have a problem with one part of my homework. I'm not exactly sure how to say this in English. I want the constructor to build an object and assign string values to attribute1 and attribute2. I'm only posting the relevant part of my code. My class can be …

Software Development c++ oop
Member Avatar for Ancient Dragon
0
2K
Member Avatar for python user

Hi, I'm a long time python programmer and just began programming in Lua(I might like it better than python). How might I began to program a text adventure/IF in Lua? Any tips, Pointers? I have a basic knowledge of Lua and have began to read this great e-book called "Programming …

Software Development
Member Avatar for Isaac Remuant
0
1K
Member Avatar for kinger29

I am using Visual Studio 2010, this should apply to any version of Visual Studio running a version of .Net with TabControl and TabPage. I want to create my own tabpage that I can add to a tabcontrol. I have tried creating a new class where I inherit System.Windows.Forms.TabPage but …

Software Development vb.net visual-studio
0
133
Member Avatar for lochnessmonster

is it bad programming practice or perfectly normal to design a class, in which there is no public member function which can check the status of the objects state? for example what if i implemented it so the object was assumed successfull....until an exception is thrown? is this OK to …

Software Development c++
Member Avatar for mike_2000_17
0
129
Member Avatar for muser04

The program that you will be writing will be called Books.py. * Open the file for reading * Create an empty dictionary * Read line by line through the file * For each line strip the end-of-line character and remove punctuations. Replace hyphens (-) with blanks. In the function parseString() …

Software Development python
Member Avatar for richieking
0
148
Member Avatar for challarao

Hi,please help me! I wanna write a program for gauss jordon elimination ,for that I need to sort/exchange the rows such that the rows are in order of their increasing zero elements before non zero element in each row like below suppose, input 0 0 3 4 5 0 3 …

Software Development c
Member Avatar for Adak
0
178
Member Avatar for yongj

I have an assignment where I need to make a utility where if ran, it would perform the same action as a tee command in linux. So the tee command takes the command line: ls *.txt | tee txtfiles.txt But for my assignment if I named the utility to be …

Software Development c++
Member Avatar for daviddoria
0
167
Member Avatar for CharliePrynn

Hey. I need to click this button in vb.net. [CODE]<button id="login" class="fblogin"></button>[/CODE] How would I go about it? Thanks.

Software Development html-css vb.net
Member Avatar for CharliePrynn
0
96
Member Avatar for Swedenrock

Hi! When I print the six card I would like the "player" to be able to pick three out of these cards. Does anyone know how to do this? Do I create a new list and then append the cards to that list? Very thankful for any help! Here's the …

Software Development python
Member Avatar for woooee
0
227
Member Avatar for altXerror

i'm having problems with this code. it's supposed to be a simple loan calculator i had to fix, but i can't get it to work. my freinds told me it wasn't possable to complete using 'catch', 'try' and 'throw' (not using throw), so i attempted to fix it with that. …

Software Development c++ visual-studio
Member Avatar for SgtMe
0
216
Member Avatar for DaveTran

I'm creating an array of vertex formats which I know will always come in groups of 3 as models are generally made for triangles which have 3 vertices. My loop was originally [CODE] for (int i = 0; i < batchVertices.Length; ++i) { batchVertices[i] = new VertexFormat(vertices[i], normals[i], textureCoordinates[i]); } …

Software Development
Member Avatar for Momerath
0
142
Member Avatar for TheBW

I have to design a relatively simple game-type programm on pascal It has to generate a way, which the player will have to guess. They way can only go horizontaly or verticaly. Im usign 10x10 array for this. The problems start, when im making the way for player and checking …

Software Development pascal
Member Avatar for TheBW
0
124
Member Avatar for TheBW

So heres my procedure: [CODE]procedure inf_output; Begin Repeat Begin Writeln('Please choose by what info you will search!'); Writeln('1. Name'); Writeln('2. Registration number'); Writeln('3. Adress: Street name'); Writeln('4. Adress: Street number'); Writeln('5. Adress: Postal index'); Writeln('6. Name of City'); Writeln('7. Telephone number'); readln(x); end; Until (x>0) and (x<7); Case x of …

Software Development pascal
Member Avatar for TheBW
0
244
Member Avatar for G-nerd

I need to make the user ask for an English sentence and then make it produce the spanish translation of it from a given data base which is given in list form. I also want the user to keep asking for a english sentence until I type in a character …

Software Development python
Member Avatar for Lardmeister
0
234
Member Avatar for XxPKMNxX

I have written a program to create a 4x4 grid Sudoku style. The numbers for the puzzle are read from a file and placed in the puzzle. As you can see, i have assigned the first numbers 'a' and the second 'b' etc However, i can not access the a,b,c,d …

Software Development java puzzle
Member Avatar for XxPKMNxX
0
141
Member Avatar for onus

[CODE=c]#include<stdio.h> #include<stdlib.h> #define GREY 1 #define BLACK 0 #define WHITE 2 typedef struct node * graph; typedef struct stack * snode; extern int stack_counter; graph cnode(int data); //cnode is to create a node for graph void cgraph(void); struct node { int data, color; struct node *LEFT, *RIGHT, *TOP, *DOWN; };//this …

Software Development c data-structure storage
Member Avatar for GuitarComet
0
186
Member Avatar for weloki

I'm using XSLT to try to grab content from an html page. I want to select all the <p> tags but exclude all the <li> tags. There is one page where the li tags are not within any of the p tags. For this page, how can I select all …

Software Development html-css xml
Member Avatar for weloki
0
73
Member Avatar for rizzi143

HI! could anyone help me out in editing the following code so that the list of number is displayed in ascending order. thanks. #include <iostream.h> void main() { int count; cout << "Enter a number: "; cin >> count; while (count > 0) { cout << count << endl; --count; …

Software Development c++ display
Member Avatar for Fbody
0
140
Member Avatar for sciprog1

Hello, How do I send a class (that extends from JFrame) back and forth between Client and Server? I would grateful for any pseudocode. Thank you!

Software Development client-server java
Member Avatar for sciprog1
0
282
Member Avatar for knan

Hi can anyone tell me how to remove empty keys in the following dictionary d={'a':[],'b':['1','2'],'c':[]} I want it to be d={'b':['1','2']} I tried this. But its showing error. I know its wrong to change the size of a dictionary during iteration. But is there any other way? [CODE]>>> for x …

Software Development python
Member Avatar for TrustyTony
0
18K
Member Avatar for kelp

Hi I have a simple MS Access database with some rich text fields. I have been trying to bind some RichTextBox controls in my form to these fields. When I used the following c# code: [CODE] Binding bd = new Binding("Text", ds, "Words.meaning", true); tbDesc.DataBindings.Add(bd);[/CODE] ds= my DataSet Words= my …

Software Development dataset
Member Avatar for nick.crane
0
544
Member Avatar for Thropian

as part of a game I'm making I decided to make an importable/executable file to shorten the code and I was wondering... [CODE]def view(N,W,E,S): if info_dict["direction"] == "north": if N != 1: pic = fwall wall = "yes" if N == 1: if W != 1 and E != 1: …

Software Development python
Member Avatar for Gribouillis
0
90
Member Avatar for Weird Nerd

Hello, I am using OpenGL in C++ to create graphics in a program of mine. In the window, there is the main section and a sidebar. My problem is that I do not know how to relocate the vanishing point in my window. Currently, it is at (0, 0), which …

Software Development c c# c++ opengl
Member Avatar for Weird Nerd
0
516
Member Avatar for drake10k

Hello, I'm trying to create a Button Class that will be used to create buttons on a form. This is the class I've created: [CODE] public class CreateButton : Button { public Button newButton; private string _buttonName; private Point _buttonLocation; private Size _buttonSize; public string ButtonName { get { return …

Software Development
Member Avatar for drake10k
0
163
Member Avatar for rohit_static

Hi, I was trying to code the shell sort algorithm ,which compares data over distances of n/2,then n/4,n/8 and so on till the array finally gets sorted .As far I understood I implemented the code as follows but it doesn't seem to work.Can someone help! here is the c code[code=c] …

Software Development algorithm c c# c++
Member Avatar for Adak
0
191
Member Avatar for wickedflo

please help me.... i need some help on how to get the grades of this program and also can u please correct it... cause i think something is not right... #include<iostream.h> int A[5]; int ctr; main() { ctr=5; while(ctr<5); { cin>>A[ctr]; ctr=ctr +1; } cout<<A[5]; ctr=5; do { cout<<A[ctr]; ctr=ctr …

Software Development c++
Member Avatar for alaa sam
0
183
Member Avatar for Yutxz

Alright, this is a school assignment. Unfortunately, we were given about a paragraph of info on apps so I'm not sure what I'm doing wrong. I know it's a pretty random app, but these are the elements that she wanted. My problem is that it runs infinitely when I run …

Software Development java java-swing
Member Avatar for JamesCherrill
0
108
Member Avatar for indrajeet6

Hi I'm Indrajeet. I was writing a program in VC++ 2010 Express for file manipulation, and after finally getting all the syntax errors out,my code looks lie this: [CODE]/********************************************************************* This is a program for file manipulation in VC++ Created by Indrajeet Roy *********************************************************************/ #include<conio.h> #include<stdio.h> #include<stdlib.h> //Protoype of the functions …

Software Development c file-system
Member Avatar for Perry31
0
230
Member Avatar for joe00

where can I find a code/ready program in C++ graphics of a rotating body. appreciate your time.thanks

Software Development c++
Member Avatar for joe00
0
78
Member Avatar for bleedi

Hi! I'm building a program which connects to a MySQL server. The program saves the server passwords in SHA format. There's one class responsible for converting and checking the passwords, and another one for DB connection. Now, when the user starts the program, (s)he types in the username and password. …

Software Development java
Member Avatar for bleedi
0
1K
Member Avatar for Mengha

Could you please show me a very small program with the explanation how the data can be passed between classes. I said very small program (as small as you can) because I just started in Java and if the program is big I'll get lost !!! I'm a bit confused …

Software Development java
Member Avatar for kramerd
0
6K
Member Avatar for muthu1802

[CODE]int i=5,j=6; int k=i++ + i++ + ++i + i++; int m=j++ + j++ + j++ - j++; cout<<i; cout<<m; cout<<j; cout<<k;[/CODE]

Software Development c++
Member Avatar for Fbody
0
93
Member Avatar for chuck_1508

hi im a student specialising in software development n my last semester is approaching n i have to give the topic to my supervisor...i don't knw on wat topic to do....can u please help me in finding a topic..my project should be a simple and understandable one..my project is based …

Software Development vb.net
Member Avatar for Netcode
0
181
Member Avatar for TechSupportGeek

Hello world of DaniWeb, what's up? I have the following problem; I've created a text editing application in VB.NET that actually works pretty well with opening, saving files etc. But when it comes to opening a file, modifying it, and then trying to save it, the save dialog will pop …

Software Development vb.net
Member Avatar for TechSupportGeek
0
238
Member Avatar for rpk_Kannan

Hai sir! i am kannan please help me insert, update, delete and search coding in VB.Net with access and sql? and way of connect and create access database using in vb.net?

Software Development sql vb.net
Member Avatar for Netcode
0
143
Member Avatar for jlovesfishiee

I want to set my textbox to be able to only accept numeric values as well as a '.', I typed this code in [CODE] private void ipAddTextBox_KeyPress(object sender, KeyPressEventArgs e) { int isNum = 0; if (e.KeyChar == ".") e.Handled = false; else if (!int.TryParse(e.KeyChar.ToString(), out isNum)) e.Handled = …

Software Development
Member Avatar for Mitja Bonca
0
391
Member Avatar for sharifyboy7

Implement the template class SortedList. Write a simple driver that reads values from file float.txt, inserts them into the list, prints the length of the final list, and prints the items. Add code to your driver to test the remaining member functions. Delete 3.3, 10.0, and 200.0 and print the …

Software Development c++
Member Avatar for daviddoria
0
158
Member Avatar for HBK_100

[CODE] void RB_number() { int roomnumber; string category; string type; string status; float rate; int roomid; //Try,catch and throw statement for exception handling to catch errors that are inputed from the user try { cout<<"\n\n\t\t\tEnter the Room ID you wish to view:"; cin>>roomid; if(roomid < 0) throw "Error"; } catch(string) …

Software Development c++ file-stream ios
Member Avatar for daviddoria
0
111
Member Avatar for gedas

hey guys, i am working on coordinates in one program and there is a line such as this one: [CODE]int xx =Math.round((int) getWidth() * 100 / 768);[/CODE] can somebody tell me what calculation is actually taken before the value is set to int xx thanks a lot for any suggestions

Software Development java
Member Avatar for gedas
0
157
Member Avatar for Goddard

I am trying to display a report, but can't figure out how in vb.net and visual studio 2010...anyone care to help?

Software Development display vb.net visual-studio
Member Avatar for Netcode
0
84
Member Avatar for Codeslinger

/*THE OUTPUT SHOULD BE LIKE THIS: 2 4 6 8 10 - 30 //gets the sum of first column 12 14 16 18 20 - 60 //gets the sum of second column 1 2 3 4 5 - 15 //gets the sum of third column 6 5 4 3 2 …

Software Development java
Member Avatar for apines
0
96
Member Avatar for Monkey-huh?

[CODE]import java.util.*; public class Sort { public static void main(String[] args) { //driver method int[] array = new int[10]; System.out.println("Please enter ten integers"); insertionSort(array); } public static void insertionSort(int[] array) { Scanner kybd = new Scanner(System.in); int min, temp, n = array.length; for (int i = 0; i < n; …

Software Development java
Member Avatar for masijade
0
104
Member Avatar for problematic:)

can someone tell me how to put a picture on a msgbox? or even just an icon?

Software Development visual-basic
Member Avatar for AndreRet
0
5K
Member Avatar for MyPianoSucks

Hey everyone, Today i was just studying C++ and i needed to do a simple program with a "GradeBook.h" file, a "GradeBook.cpp" and a "main.cpp".Just to test how class works . I had already wrote all source code for this files, but when it cames to compile nothing appears, i …

Software Development c++ visual-studio
Member Avatar for MyPianoSucks
0
191
Member Avatar for haojam

Dear Sir, I have written a script to extract the first line starting with [COLOR="Red"]Source Name[/COLOR] AND ends with [COLOR="red"]Comment [ArrayExpress Data Retrieval URI][/COLOR] and i have done it but i could not parse distinct or unique attributes which is not repeated in every files. I would like to parse …

Software Development open-source python
Member Avatar for haojam
0
690
Member Avatar for rpk_Kannan

hai! every body. please correct this coding. vb.net with access table name : Sample.mdb My Error mistake is : [COLOR="Red"]"The Microsoft Jet database engine cannot find the input table or query 'sample'. Make sure it exists and that its name is spelled correctly."[/COLOR] my coding: Private Sub btnsearch_Click(ByVal sender As …

Software Development microsoft-access vb.net
0
51
Member Avatar for serph09

Edit: Oh, nvm. I just redid the code and figured out how to write the tester class. Sorry guys for the trouble:( This thread can be deleted. So I have this code (not all was written by me). But I don't know how to start writing a tester class for …

Software Development java
Member Avatar for javaAddict
0
166
Member Avatar for mikesr

Hi! I'm trying to convert C++ code to nasm ..unsuccessful Well, here is the c++ code: [code] int recursion(int n) { if ((n==0) || (n==1)) return 1; else if (n==2) return 7; else return recursion(n-3)+recursion(n-2); } int main () { for (int i=3; i<=15; i++) { cout << recursion(i) << …

Software Development assembly
Member Avatar for mikesr
0
126

The End.