132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for beau_nerdathen

I have a project about making pascal triangle using recursive function. This is the example output: 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 Hint:(x+y) n=>exponent. *Give me an idea about this project. Thanks!

Software Development c++ pascal
Member Avatar for mike_2000_17
0
5K
Member Avatar for Bamboozled

I am reading in a text file and displaying the data read in in textboxes. Some of the characters are accented French characters which are not displaying correctly in the form. This prob does not exist with VB6 on the same machine. What do I need to set/change in vb.net …

Software Development vb.net
Member Avatar for lolafuertes
0
710
Member Avatar for aint

Hi, Last year I posted a question about making graphical representations of sentences, and at the end I did it with matplotlib. Now I wanted to add some more features to it, but I am stuck. you can see the previous post from this [URL="http://www.daniweb.com/software-development/python/threads/282934"]link[/URL] Now, if we assign a …

Software Development printer python
Member Avatar for hughesadam_87
0
4K
Member Avatar for izthrower

[CODE] Created on Aug 29, 2011 @author: izink001 ''' import pygame from pygame.locals import * from pygame.color import * import pymunk as pm from pymunk import Vec2d import math import sys X,Y = 0,1 ### Physics collision types COLLTYPE_DEFAULT = 0 COLLTYPE_MOUSE = 1 def flipy(y): """Small hack to convert …

Software Development python
Member Avatar for izthrower
0
150
Member Avatar for tfj

I failed to ask my entire question on part 1. Although codeorder gave me the answer I needed I have one more part which I will put in bold. I have 3 forms: Form1, Form2 and Form99. Form1 and Form2 both call Form99. What statement(s) does Form99 use to determine …

Software Development vb.net
Member Avatar for tfj
0
152
Member Avatar for Weragodalahiru

Does anyone have a idea about this programe, Assume that you are paid on the basis of one cent the first day, two cents the second day, four cents the third day, with the daily amount continuing to double in this way. Design an algorithm and use it to write a Python program …

Software Development algorithm python
Member Avatar for JoshuaBurleson
0
113
Member Avatar for Bladtman242

Right, I wasn't sure whether to put this here or in the java forum (since I'm trying this in java) but in the end I figured it is probably a general coding question. Hope I got it right :) So, about object names :) I'm trying to do the c++ …

Software Development java
Member Avatar for Bladtman242
0
194
Member Avatar for dwayned

Hi, I have created a small appication to run a number of self extracting archives depending on the option selected. I have the program working and all is going to plan. At the moment my program calls the slef extracting zip by pointing to the location on the hard drive …

Software Development hard-drive java
Member Avatar for dwayned
0
232
Member Avatar for bio-grad

Hi, So I am modifying some code from discussion thread: [URL="http://www.daniweb.com/software-development/perl/threads/323871"]http://www.daniweb.com/software-development/perl/threads/323871[/URL] I am still very much a newbie, but am trying to get a better handle on hashes - so if I've messed mine up please tell me ;). I am attaching 3 files. One is an image of the …

Software Development perl
Member Avatar for bio-grad
0
640
Member Avatar for binoman

I just try to calculate 5.3 - 5, and the answer is a bit off. this is the code: [CODE]double answer = 5.3 - 5; println("answer = " + answer);[/CODE] and the output is: "answer = 0.2999999999999998" instead of 0.3. I use Eclipse on win 7 32 bit as a …

Software Development java
Member Avatar for binoman
0
1K
Member Avatar for konradhoppe

Hi community, I have a problem with an application which makes use of a mysql database. I have a class which saves the fields of every record on the table. One of the columns is of type Datetime. Sometimes (!) I query this column and get results like with a …

Software Development java mysql
Member Avatar for ywang
0
345
Member Avatar for Bench

This code snippet outlines a simple, no-frills linked list. Tested under MSVC++ 2003 and Comeau, but not guaranteed bug free. Snippet includes example main() . This snippet is intended as an example of a possible implementation of a linked list class (Of which there are many variations) For a better …

Software Development c++ linked-list
Member Avatar for Narue
0
3K
Member Avatar for theju112

[code] #include<stdio.h> typedef struct node { int data; struct node * link; }n; void addatbeg(n *); void display(n *); n* first=NULL; int main() { int ch; printf("%u",first); while(1) { printf("\n enter 0 to terminate else any other key"); scanf("%d",&ch); if(ch==0) break; addatbeg(first); } } void addatbeg(n* first) { int ele; …

Software Development c linked-list
Member Avatar for Narue
0
120
Member Avatar for RenanLazarotto

Hello guys! I want a simple app to crop a bit of some images. The fact is that all the codes I've found were too complicated, and I didn't understood a single letter of it. Can somebody help me with it? The codes I saw where using and start point …

Software Development image vb.net
Member Avatar for RenanLazarotto
0
3K
Member Avatar for karyal

hi every body! i set the Layout to be null [CODE]setLayout(null);[/CODE]. when i resize the window, components do not resize. if there any code that i can write to solve my problem? please help!

Software Development java
Member Avatar for karyal
0
111
Member Avatar for vishal1949

I am supposed to make a charstack program that has to run an error. This is the Question: [COLOR="Red"]Add explicit error reporting for stack underflow via a checked exception (i.e., one that must be declared and caught). Provide a main program that tests this new capability.[/COLOR] I don't what the …

Software Development java
Member Avatar for JeffGrigg
0
450
Member Avatar for bettybarnes

hi guys i've got a simple problem with fibonacci sequence.. I use tasm and my processor is amd and this, so far, is my code: [CODE].model small .stack .code org 100h start: mov ah, 02h mov cx, 07h mov bl, 31h mov dl, 30h A: add bl, dl int 21h …

Software Development assembly
Member Avatar for faroukmuhammad
0
271
Member Avatar for vinu4u4ever

[code]website_name_txt.DataBindings.Add("Text", ds, "vinu_personal.WebsiteName"); website_address_txt.DataBindings.Add("Text", ds, "vinu_personal.WebsiteAddress"); username_txt.DataBindings.Add("Text", ds, "vinu_personal.MyUsername"); password_txt.DataBindings.Add("Text", ds, "vinu_personal.MyPassword"); others_txt.DataBindings.Add("Text", ds, "vinu_personal.Others"); con.Close(); this.Refresh();[/code] can u plss mention the solution.

Software Development
Member Avatar for Mitja Bonca
0
130
Member Avatar for baby_c

Hi friends,I got a problem down here.. Ok here's part of my First GUI code. all I want to do is locate the[ICODE]labelImage[/ICODE] on the bottom half of the [ICODE]panel[/ICODE].. any idea..? I tried the following steps.but it didn't help Set the container's layout manager to null by calling setLayout(null). …

Software Development gui java
Member Avatar for baby_c
0
190
Member Avatar for jayuma

Am new to socket programming.Can you please help me with this issue I need to connect two computers which is already under some network using C#. After it gets connected I need to know the details of the "Task Manager" of the connected computer - (If any pogram/file is running …

Software Development c c# c++ socket-programming
Member Avatar for Ketsuekiame
0
267
Member Avatar for JoshuaBurleson

Is there a way to hide or at least automatically minimize the "shell-like" tkinter window, while running it?

Software Development python tkinter
Member Avatar for TrustyTony
0
356
Member Avatar for jesminya

I'm new here, but it looks like an awesome place to get some help. My assignment is to write a recursive function that determines the value of a unit of Pascal's triangle given the row and column, then use that to display the triangle with n number of rows. It's …

Software Development c c# c++ pascal
Member Avatar for Onlineshade
0
1K
Member Avatar for markdean.expres

I would like to create a textbox (search engine) that can search for items in a database that contains text as that keyed in the textbox. I am already aware of this code: bindingsource.filter = "table Like '" & textbox & "%'" EX: what I want is that when I …

Software Development apple vb.net
Member Avatar for markdean.expres
0
135
Member Avatar for hughesadam_87

Hey everyone, I'm checking some bessel functions in python using mathematica, and I can't find anything online about how to import values into python with exponentials. I know how to values with exponents. For example: [CODE]x=2032.43 * 10 **23[/CODE] However, when I read in a data file, say with one …

Software Development python
Member Avatar for JoshuaBurleson
0
143
Member Avatar for synaps

Im new in C++. Please help me for using C++ from basic. What should i do ?

Software Development c++
Member Avatar for cherrymae.calma
0
205
Member Avatar for starkk

segmentation fault...:( some one help me pls.. [CODE]#include<stdio.h> #include<stdlib.h> #include<string.h> int main() { char a[50]; char *x[10]; int i,j,n; char *temp; printf("enter the no of strings:"); scanf("%d",&n); for(i=0;i<n;i++) { printf("enter the string:"); scanf("%s",a); x[i]=(char *)malloc((strlen(a)+1)*sizeof(char)); if(x[i]==NULL){ printf("malloc not done"); exit(1);} strcpy(x[i],a); } for(i=0;i<n-1;i++) { for(j=0;j<n-i;j++) { if(strcmp(x[j],x[j+1])>0) { strcpy(temp,x[j]); strcpy(x[j],x[j+1]); …

Software Development c
Member Avatar for starkk
0
454
Member Avatar for Paul Norris

I've seen a lot of posts over time relating to importing and exporting CSV. Most of the answers involve using TextReader.readline and String.split, [B]which will not work[/B] with any but the simplest data. When you are writing for users who have the expectation that your application will work with anything …

Software Development vb.net
Member Avatar for Paul Norris
0
334
Member Avatar for NetJunkie

So I am creating an application that allows users to send basic keystrokes to end certain processes. But I am running into some issues. I know the code I have will work the problem is I do not know where to put the following code to execute the commands: [code] …

Software Development vb.net
Member Avatar for codeorder
0
189
Member Avatar for techlawsam

Alright back with the same but different example problem but this time I think it requires some "formating" and knowledge of "escape characters". As a novice programmer this is the caliber of trouble I am going through lol. Does this need knowledge of escape characters as well ? ("\t") would …

Software Development c#
Member Avatar for techlawsam
0
241
Member Avatar for JoshuaBurleson

I'm having a terrible time with regular expressions, possibly because I'm using a python2 reference, but maybe not. For example how would I find \s\w within a string and then change that character?

Software Development python regex
Member Avatar for JoshuaBurleson
0
308
Member Avatar for jigglymig

havn't programmed in c++ in well over a year and taking a new class at a different college. So I completly forgot how to work with linked lists. we are doing review so notes in book/slides don't include too munch information and is all in pseudo code. at the moment …

Software Development c++ linked-list
Member Avatar for jigglymig
0
108
Member Avatar for tfj

I have 3 forms: Form1, Form2 and Form99. Form1 and Form2 both call Form99. What statement(s) does Form99 use to determine which form called it (Form1 or Form2). Form1 Form99.Show Form2 Form99.Show Form99 Which form called me? Thank You.

Software Development vb.net
Member Avatar for tfj
0
141
Member Avatar for shivya jain

how we create a function/method in vb.net?? if i want to make a method of auto_generate_id, then how will i start? i have written this code please help me..... [CODE] void auto_generate_id() Dim j As Integer = 0 Dim cmd As New SqlCommand("select staffid from staff order by staffid", c.con) …

Software Development vb.net
Member Avatar for Unhnd_Exception
0
192
Member Avatar for hfx642

I would like my JSpinner to show up as having a Layout of GridLayout (3, 1), with; Panel.add (JTextField); Panel.add (Up_JButton); Panel.add (Down_JButton); and all 3 (contained) GUI components to be the same size. Is this possible? if (so) How? (My work around is to build it myself, which I'm …

Software Development gui java
Member Avatar for mKorbel
0
146
Member Avatar for bluehangook629

Ok this question is more like 'what is the term used for such as event?'. What I am trying to do with open a application config form in login window which is activated by combonation of keys pressed. for example alt+c or ctrl+alt+x. I tried using every term i can …

Software Development vb.net
Member Avatar for bluehangook629
0
428
Member Avatar for BarisD

Hello everyone, I'm not a very advanced programmer and here is my problem: I'm trying to write a hangman game and I want to use online dictionaries as database. I created a windows form application to do that. Is there a better option to achieve my aim? I could find …

Software Development c c# c++ open-source
Member Avatar for makman99
0
536
Member Avatar for techlawsam

Ok so here is the problem... this is my code: [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DesignOutput { class Assignment { static void Main() { Console.WriteLine("CCCCCCCCCC"); Console.WriteLine("CC\t\t##\t##"); Console.WriteLine("CC\t\t##############"); Console.WriteLine("CC\t\t##\t##"); Console.WriteLine("CC\t\t##############"); Console.WriteLine("CC\t\t##\t##"); Console.WriteLine("CCCCCCCCCC"); Console.ReadKey(); } } } [/CODE] Im trying to match this: [CODE]CCCCCCCCCCC CC ## ## CC …

Software Development
Member Avatar for techlawsam
0
287
Member Avatar for DisasterPiece

I want it to be advanced like say if you pressed remember me on login then the next login it will log you in automatically.

Software Development vb.net
Member Avatar for bluehangook629
0
133
Member Avatar for jackfriendstie

What I want, is for my text file to be read into the array named "CFiles()". Then once this is complete to delete the file But I get the error, The process cannot access the file 'C:\Users\Andrew\Desktop\New.txt' because it is being used by another process. On 3rd to last line. …

Software Development file-system vb.net
Member Avatar for codeorder
0
2K
Member Avatar for DisasterPiece
Member Avatar for codeorder
0
226
Member Avatar for rdhc1330

hey guys, just wondering how I can change this code to C++... It's an old code my brother actually made! [CODE] #include <stdio.h> const int ROW = 4; const int COL = 13; int main(void) { int i, c, max = COL; for(i = 0;i<ROW;i++) { for(c=0;c<COL;c++) { if(c == …

Software Development c++
Member Avatar for mike_2000_17
0
826
Member Avatar for Heioingi

Please, please please someone help me. This might sound a little pathetic but I cannot figure this out for the life of me, it compiles just fine but i get the complete wrong output. Here is all the code I have. The problem: Write an application a that calculate the …

Software Development c c# c++
Member Avatar for Heioingi
0
1K
Member Avatar for Evesy

I have a program I want to make. The main thing I need help with. I'm no programmer so I'm asking here. What I want is a program that does the following, 1) Open a save (needs to open any type of save) 2) Then, 'hex edit' by finding all …

Software Development vb.net
Member Avatar for kingsonprisonic
0
102
Member Avatar for .:Pudge:.

I have been trying to support certain built in commands such as 'cd' and 'help'. If I do 'ls' or 'mkdir' it executes them fine and they do what they are supposed to. If I type the command 'help' I get a segmentation fault and if I type 'cd' it …

Software Development c
Member Avatar for nezachem
0
206
Member Avatar for Vaikkundhnaair

I would like to develop a VB.Net based smart device app. A simple one. Do any of u know where i can refer to samples of such apps?

Software Development vb.net
Member Avatar for hericles
0
128
Member Avatar for DisasterPiece
Member Avatar for DisasterPiece
Member Avatar for MrAppleseed

I recently wanted to get involved in C++0x (Native, OS independent thread support?! Heck yes I want that!), and it seemed as though my compiler supports it. So, I added it in Code::Blocks, under Settings >> Compiler and debugger.. >> Global Compiler Settings >> checked "Have g++ follow the comming …

Software Development c c# c++
Member Avatar for mike_2000_17
0
187
Member Avatar for warlord902

I have a requirement that my java application should open a web browser when user click on a button and thereafter the web browser open up a page in which user have two options "Agree" and "Not Agree", depending on the button he clicks on, some code comes in the …

Software Development java web-browser
Member Avatar for warlord902
0
421
Member Avatar for BobTheLob

Hey, I have a potentially very stupid question. I'm working on a project where I need to input a few numbers. What I would like to do is run it via the command line like, "java test 2 3", where 2 and 3 would be the inputs. I want to …

Software Development java
Member Avatar for Ezzaral
0
122

The End.