132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Rahul.menon

how to print the below triangle without using arrays a a b a e i a b c d a e i o u

Software Development c
Member Avatar for Ancient Dragon
0
136
Member Avatar for lewashby

I'M reading the book "Beginning Game Development with Python and Pygame". The book showed me how to calculate the distance between two points using vectors. It first explained that you just subtract the values in the first point from the second. But just page or two pages later it says …

Software Development python
Member Avatar for Beat_Slayer
0
89
Member Avatar for lewashby

[CODE]class Vector2(object): def __init__(self, x= 0.0, y = 0.0): self.x = x self.y = y def __str__(self): return "(%s, %s)" % (self.x, self.y) @classmethod def from_points(cls, P1, P2): return cls( P2[0] - P1[0], P2[1] - P1[1] ) A = (10.0, 20.0) B = (30.0, 35.0) AB = Vector2.from_points(A, B) print …

Software Development python
Member Avatar for Beat_Slayer
0
110
Member Avatar for fire_

Hello. I know this is lame questinon but what is multi-if syntax? Like this: [CODE]if (a == 0) doSometihng(); if (a == 1) doSomething(); else doElse();[/CODE] Or like this: [CODE]if (a == 0) doSometihng(); else if (a == 1) doSomething(); else if (a == 2) doSomething(); else doElse();[/CODE] I'm useing …

Software Development c++
Member Avatar for Fbody
0
90
Member Avatar for awmantonio

I have program in VB.NET 2008 where I want to update the premamt cell value in the tblPrem Access table, where the premno is the maximum (autogenerated as 1,2,3...), but only within a specified set of common numbers in a column (contno) I am currently saving. This contno is from …

Software Development microsoft-access sql vb.net visual-basic
Member Avatar for awmantonio
0
110
Member Avatar for viandante

Hi guys! I'm writing my first small application*. For this I'm using Sqlite as database, Glade as GUI builder and Python as coding. The application is pretty simple: it's a notebook to store names, surnames, adresses, etc.. I've been able to create a first window to store data in Sqlite …

Software Development gui pdf python sqlite xml
Member Avatar for woooee
0
891
Member Avatar for jakesee

Hi folks, I have a mathematic Vector3 class that looks like [CODE] class Vector3 { public: union { struct { float x; float y; float z; // btw, if declared like // float x, y, z; // will there be a difference in packing order? }; float v[3]; }; // …

Software Development c c# c++
Member Avatar for jakesee
0
161
Member Avatar for durpderp

I am writing a program that duplicates the command: [CODE]grep -cr Thread nachos/ | sort -t : +1.0 -2.0 --numeric --reverse | head --lines=5 [/CODE] My code: [CODE] #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> #include <sys/wait.h> #define R_FILE "/proc/meminfo" #define GREP_EXEC "/bin/grep" #define SORT_EXEC "/bin/sort" #define …

Software Development c
Member Avatar for durpderp
0
167
Member Avatar for esy928

How do I pause a thread indefinitely? im creating a game and i need a thread to be paused when the user pauses the game and the thread will resume when the user unpauses the game. =) im using thread.sleep right now but it requires an integer to determine how …

Software Development java
Member Avatar for NormR1
0
2K
Member Avatar for sivaprakashm

surfing all related java sites and forum I cant able to get the answer for when we going for abstract class ? Please help me out ....

Software Development java
Member Avatar for jon.kiparsky
0
77
Member Avatar for praky

i am writing a program on huffman's code in C++. I have wriiten the program till building the huffman tree. now I have to generate the code by traversing the huffman tree. I have no idea how to do that logically. please help with code or algorithm. Here is my …

Software Development algorithm c++ ide ios queue
Member Avatar for praky
0
4K
Member Avatar for fire_

Hello. I need your help. I need to write program wich will take numbers from other program's edit. I'm pretty sure that other program is writen with C++. Can you help me to write reading from edit part?

Software Development c++
Member Avatar for fire_
0
166
Member Avatar for judithSampathwa

Hi there, I have a question in datagrid view , hwat I want is when a user edits a datagridview cell in a row in the datagridview I want to check a check box in the same row, how can I do this and what is the event that I …

Software Development vb.net
Member Avatar for Geekitygeek
0
163
Member Avatar for W34531

You need to submit printouts for question 4c only. We want to display one of the following blocks on the screen, using the same program: [code] *************************** ************************ * * * * * * * * * * * * * * * *************************** * * * * * * …

Software Development c++
Member Avatar for W34531
0
149
Member Avatar for beginner21

ok.i have a problem in displaying the images into a jlabel.. the images is stored in mysql database and i used blob as its datatype.. my program is like a search engine.. when the user search for a keyword and click the search button it will show another class which …

Software Development java java-swing
Member Avatar for masijade
0
132
Member Avatar for sommer_queen

Hello everyone , Have a small problem which i dont know how to deal with . at the same time not sure if i need delegate or event handlers . here it goes . I have two classes with two forms : Form A and Progress Form . Form A …

Software Development
Member Avatar for edepperson
0
116
Member Avatar for extemer

i want to print number after decimal point.Is there any way to do it e.g This is a decimal number 6.28 and i want to print .28.can any help me out with a simple example

Software Development java
Member Avatar for extemer
0
12K
Member Avatar for zerey02

.hi guys! good day to all, i am currently developing a library system as one of my school projects using Visual Studio C# 2008 and SQL Server 2008. however there are several problems i have encountered. 1st: How to retrieve the value of an auto-incremented field. 2nd: How to use …

Software Development visual-studio
Member Avatar for Geekitygeek
0
194
Member Avatar for cezarjont

is min heap different from max heap...? can you please show me examples...?

Software Development c
Member Avatar for Narue
0
6K
Member Avatar for sDanyal

I have installed windows 7 which has a built-in intel graphics media accelerator. But there is no option available to check and change its properties. So the problem is that i am building a 3D game in OpenGL but when i run it a message appears that this program has …

Software Development c++ image opengl
Member Avatar for Valaraukar
0
155
Member Avatar for ja0

I am having the following trouble: "System.Data.SqlClient.SqlException: Incorrect syntax near '11'. Unclosed quotation mark after the character string ' )'. I tried the solution of using double quote right there, but it give me another problem. The more strange thing is that the data is begin copy to the new …

Software Development sql
Member Avatar for ja0
0
156
Member Avatar for daudiam

From my home directory, I created a directory [B]pkg[/B] and wrote 2 files [B]A.java[/B] and [B]B.java[/B] in it. [B]A.java[/B] [CODE]package pkg; class A { B b; }[/CODE] [B]B.java[/B] [CODE]package pkg; class B { }[/CODE] I went back to my home directory and typed the following : [CODE]javac -classpath . /pkg/A.java[/CODE] …

Software Development java
Member Avatar for ~s.o.s~
0
212
Member Avatar for awie10007

Scanning from a laser line and usb cam V Python fill up memory to 1.6G and crash the system Smaller Scan works fine is there a better plotting module or a way of getting past V Python memory block? The plot must happen in color xyz rgb. [CODE]import thread import …

Software Development image mathematics python
0
202
Member Avatar for jineesh

Pls any body help. I am in a crucial situation :( I want to back up and restore database which is created in sql server 2000. how can I use this in C#. The code which I have written is not working properly. It throws an exception at step 31. …

Software Development c# sql
Member Avatar for gop_1983
0
297
Member Avatar for TrustyTony

Here is code which I wrote to experiment how hard it is to get Royal Flush in Poker.

Software Development python
Member Avatar for TrustyTony
0
592
Member Avatar for sandipan.rcciit

hello friend i have a text file name url.txt contain lots of url, one url in a line. now i want to get the content of each an every page which are open on the basis of those urls, here is my code: [ICODE] using System; using System.IO; using System.Net; …

Member Avatar for rameez jawaid
0
469
Member Avatar for dre-logics

I use Visual Basis 2008 With MySQL. I Have one from with 6 (six) Datagridviews controls I Have the following problem: If i use Form1.Show method than the form1 is [COLOR="Red"]only show [/COLOR]if data connections are [COLOR="Green"]made[/COLOR] and all the datagridviews are [COLOR="green"]filled [/COLOR]with data . What i want is …

Software Development vb.net
Member Avatar for dre-logics
0
99
Member Avatar for chamber8401

I am newbie in Visual Studio 2005 and i just has finished install the VS05 but I can't start new Visual Basic Project. When i go to Menu Project, Add New Item there is no templates Win32 Project. There are just Text File, XML File, Bitmap File, etc. Is there …

Software Development vb.net visual-basic visual-studio
Member Avatar for kvprajapati
0
165
Member Avatar for gudads

Given the equation: ax3 + 7; x raise to power 3; if any which are correct; a) y = a * x * x * x + 7; e) y = a * ( x * x * x ) + 7; i believe both are correct; cuz both will …

Software Development c
Member Avatar for gudads
0
88
Member Avatar for ukshir

Hi, I want to add my custom controls to the visual studio toolbox programatically (not manually by selecting "add items") with my own tab. How can I achive it? Is there any registry entry where all the Toolbox items are entered to be able to view in the toolbox? where …

Software Development vb.net visual-studio
Member Avatar for kvprajapati
0
155
Member Avatar for JDean89

Hi, I'm not sure what this code does. [CODE]int total(int value1, int value2) { int sum; sum = value1 + value2; return sum; }[/CODE] This method should take in 2 values and calculate the sum and return it. But I don't understand where it returns it to? In my main …

Software Development c++
Member Avatar for chiwawa10
0
116
Member Avatar for NewOrder

i want to move a bishop diagonally from one point to another i want to move it from (row=8,column=3) to (row=7,column=2) the move is valid but i want to secure it against any collision with another piece. so i am running an loop from the initial position to the next. …

Software Development algorithm java
Member Avatar for NewOrder
0
103
Member Avatar for kenji

Hey, I'm trying to figure out how pointers and C String work together I know the basics about pointer arithmetic but I am having trouble implementing it in my program. I am having a problem at the for loop. [code=CPLUSPLUS]/* Trying to print a string from an offst using pointer …

Software Development c
Member Avatar for vinay_verma107
0
259
Member Avatar for nhidman

someone help! how to split an audio file into chunks using c++? and merging it again...

Software Development audio c++
Member Avatar for chiwawa10
0
180
Member Avatar for knasha

hello, pls help me out with an program written in java or c to find the ip address of the systems,routers,printers.. present in the network. also let me know they r up or down. thanx, asha

Software Development java
Member Avatar for stultuske
0
134
Member Avatar for aravind rao

Hi I am developing a program that uses Breadth First Search to map a grid(2d array) out. Breadth First Search involves storing nodes in a stack and then exploring these nodes based on Breadth or level. I know how to create a vector array which I shall use as a …

Software Development c++ seo
Member Avatar for aravind rao
0
178
Member Avatar for hemal1972

[B]Hi Guys, right now i am making accounting software project. In this project, i have used one list box for storing accounting groups. now here is a problem. I have stored 50 groups. But, I can see only 30 groups at a time. to see another 20 groups i have …

Software Development vb.net
Member Avatar for meeni
0
118
Member Avatar for Pushpasheela

Hi all I am programming a database-related application in Java(with msaccess). I have to facilitate several different types of queries, but I'd like to use the same JTable to display the results of each query (one at a time, of course). Initially the Jtable display all records. [CODE] JTable tableview; …

Software Development java
Member Avatar for DeadSoul
0
1K
Member Avatar for rayden150

im using eclipse helios and i seem to not have the .scanner function, can someone please help

Software Development java
Member Avatar for extemer
0
6K
Member Avatar for acash229

Hey Guys Can someone tell me how would i get started with trying to draw a graphical output Snowman. I am trying to make it with colored ellipse and rectangles. Thanks

Software Development java
Member Avatar for NormR1
0
127
Member Avatar for Lerner

Suppose you have a node declared like this:[code] struct node { int data; node * next; };[/code] and a list class declared like this:[code] struct myList { node * head; node * tail; int numNodesInList; //member functions etc, but no other member variables. };[/code] Then what is the size of …

Software Development c++
Member Avatar for Lerner
0
158
Member Avatar for eikal

Hey guys, i'm just starting in VB and am experimenting with programs. I'm trying to make a simple program that when you type in your name and phone number it displays it in a label. So i have everything good up until getting the info from the box to the …

Software Development vb.net
Member Avatar for eikal
0
2K
Member Avatar for gunneronaspooky

Trying to get a program to fine the slope and intercept of a line on a graph.... I've got it all working so far...except the last line. I broke it down into pieces and ran it assigning numbers to the variables, but in the program, it doesn't work. Here is …

Software Development python
Member Avatar for IsharaComix
0
171
Member Avatar for aviavyne

Hello It's me again, some might have seen a similar string, and it is probably because it is the same, but with a different problem. The following shows a program which uses a function that converts Fahrenheit into Celsius. The problem is that a person can enter any value they …

Software Development c++ oop
Member Avatar for NathanOliver
0
200
Member Avatar for doomfrawen

Hello friends, I am writing a program that behaves like a (Linux)shell (but it's not really a shell because it does not interpret commands itself). It will read some commands like in Linux shell and then run the command in the same window of course. The standard MSDOS shell does …

Software Development c++ microsoft shell-scripting unix
Member Avatar for doomfrawen
0
678
Member Avatar for Toulinwoek

Is anyone aware of a nice, easy-to-use tool for creating a ribbon menu system in a C# application, that costs "considerably less" than $1000 or more?! I'm kind of wondering why Microsoft didn't include this in VS2010. I found a little thing called VRC (Visual Ribbon Creator), but it's pretty …

Software Development c#
Member Avatar for Diamonddrake
0
260
Member Avatar for Rhuntsman21

I am trying to find a way to convert measurements and add measurements together. Does anyone know of anything like his? Thanks.

Software Development
Member Avatar for Rhuntsman21
0
103
Member Avatar for zachattack05

I am adding a feature to my application that allows users to backup an entire SQL database, as well as include application settings with that backup file. My dilemma is choosing a good file extension to use. The over-used .bkp type could cause conflicts in systems that have applications that …

Software Development file-system
Member Avatar for zachattack05
0
92
Member Avatar for Obsidian_496

Hello. I've been trying to understand an online material about Binary search trees posted there [URL="http://www.vias.org/cppcourse/chap21_10.html"]http://www.vias.org/cppcourse/chap21_10.html[/URL] I wonder if the code given for class is wrong, or does it use ideas I'm not familiar with? I'm not able to get it to work in my Borland compiler either. It seems …

Software Development c++
Member Avatar for Narue
0
105
Member Avatar for Syrne

So for my first assignment of the semester I need to write a program that: 1.) Asks the user to input a string 2.) Asks them to replace part of the string 3.) Have the program prompt "Yes" or "No" on whether the user wants the program to restart, if …

Software Development c++
Member Avatar for Syrne
0
96

The End.