132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nurulshidanoni

How to do a selection sort? Which I want to sort in descending order this data 1 50 2 90 3 40

Software Development c++
Member Avatar for Laiq Ahmed
0
90
Member Avatar for Cosa

I am trying to now multiply matrices stored in 2d arrays. When the program runs i get segmentation fault, using DDD i found the point where it stops after 3 loops. [code] int i,j,k; float** matrixc = new float*[rows]; if (matrixc != NULL) { for (int x = 0; x …

Software Development c++
Member Avatar for Cosa
0
113
Member Avatar for Taz x

im doing a java project on creating a music database, i need to store an array of cd objects, each entry in the array will be a single object for a cd. The objects are: Artist, Album, No of tracks could sum1 point me in d right direction, thanks

Software Development java
Member Avatar for javaAddict
0
255
Member Avatar for swapna7999

hi there in vb is there any possibility to get the ip of a system hope help thank u very much

Software Development visual-basic
Member Avatar for swapna7999
0
112
Member Avatar for seysmail

Hi everyone, I have a web page in my project which shows news and press releases of my client. I m showing the news page with headlines, pubdate etc. from a Rss Feed URL. I have used skmRss reader to read the data from the linke that returns Rss output. …

Software Development vb.net
Member Avatar for seysmail
0
77
Member Avatar for Yogesh Sharma

What is @@rowcount and with small code snippet explain the usage? Is the foll. code is rite-- Create procedure get_emp_count ( @emp_id int) As Select * from emp where emp_id =@emp_id If @@rowcount = 0 Begin Select 'no rows with emp_id= ' Select @emp_id End . Can u pls explain …

Software Development visual-basic
Member Avatar for rayofhope
0
135
Member Avatar for Adrian99420

Hi, I created 3 combobox: comboBox1, comboBox2 and comboBox3. I wish to select the require combobox according to different case. I tried to use comboBo(i) but it return me error.For example, [code] for (int i=0; i=3;i++) { textBox1->Text=comboBox(i)->SelectedItem->ToString(); } [/code] The code return me error on selecting "comboBox(i)". I knew …

Software Development c++
Member Avatar for Nick Evan
0
76
Member Avatar for Carlo_g12

hi! can u help me with my popup window? my goal is to display the window then inventories are in critical level. i made the form but im having a hard time showing it when in critical level. thanks!!

Software Development visual-basic
Member Avatar for rojiprajan
0
107
Member Avatar for zawpai

Hi, I would like to put 'user name' and 'password' before executing my project, but I really don't know how to do it. Could anyone give me a guide line to do this? Best Regards, zawpai

Software Development visual-basic
Member Avatar for zawpai
0
103
Member Avatar for wsn

Is the difference between the execlp execvp calls and execl execv, is that execlp execvp have the advantage of specifying a file name instead of a path name what makes these two functions better to use over execl and execv?

Software Development c
Member Avatar for wsn
0
104
Member Avatar for Icetigris

I'm trying to write a data structure for a basic 3D engine, but for some reason it always crashes when I try to add an index to the polygon vector. Anyone know what may be going on? Thanks [code] #include <iostream> #include <string> #include <iterator> #include <vector> #include <gl/glut.h> #include …

Software Development c++ data-structure
Member Avatar for Laiq Ahmed
0
106
Member Avatar for patrick91

hello I've this python code: [CODE=python]import wx class MyFrame(wx.Frame): def __init__(self, parent=None, id=-1, title=None): wx.Frame.__init__(self, parent, id, title) self.panel_1 = wx.Panel(self, -1) self.panel_1.Bind(wx.EVT_PAINT, self.on_paint) self.image = wx.Image('foto.jpg') # Menu Bar self.frame_1_menubar = wx.MenuBar() self.File = wx.Menu() self.Test = wx.MenuItem(self.File, wx.NewId(), "Test", "", wx.ITEM_NORMAL) self.File.AppendItem(self.Test) self.frame_1_menubar.Append(self.File, "File") self.SetMenuBar(self.frame_1_menubar) # Menu Bar …

Software Development python
Member Avatar for patrick91
0
224
Member Avatar for chunalt787

I am trying to add sound into a whack a mole game for my C++ 101 class. I found this code on the internet [code]PlaySound("woofwoof.wav",NULL,SND_NODEFAULT);[/code] to add code and have it work the site says this: "It's defined in <mmsystem.h> and you have to link with winmm.lib." What does it …

Software Development c++
Member Avatar for chunalt787
0
82
Member Avatar for Sh13

I feel really stupid by asking such question I have the following code [code] char choice; while( ( choice = MenuChoice() ) != 'QUIT' ) { PrintMenu(); { switch (choice) { case STRING: case 's': checkInput(strings); break; case QUIT: break: default: break: } } } char MenuChoice(void) { char menuchoice; …

Software Development c
Member Avatar for Sh13
0
153
Member Avatar for nurulshidanoni

How to declare the array and read the array? Must I use data structure? [U]Two array[/U] 1 30 2 20 3 10 4 50 5 15

Software Development c++ data-structure
Member Avatar for nurulshidanoni
0
104
Member Avatar for jimJohnson

I am writing a function and need to calculate the median...I am gonna b honest I absolutely have no idea how to start this but it is pretty much one of the last things I need to do with my program. Any advice would br greatly appreciated..... [code=c++] #include <iostream> …

Software Development c++
Member Avatar for Ancient Dragon
0
228
Member Avatar for dpfaff

I cant figure out how to fix the errors in this prooram. Any help would be great. [CODE=cplusplus] // date: April 25, 2008 // username: dpfaff #include <cstring> #include <fstream> #include <iomanip> #include <cstdlib> #include <iostream> using namespace std; const int MAXCHARS = 25; const int MAXSIZE = 6; typedef …

Software Development c++
Member Avatar for Ancient Dragon
0
134
Member Avatar for Platinumempire

I would like to know if you can measure execution time in nanoseconds - I have the following source code, however the time is measured in milliseconds. Help If You May ! [code=c] #include <stdlib.h> #include <stdio.h> #include <windows.h> #define NUM_ITEMS 500000 void quickSort(int numbers[], int array_size); void q_sort(int numbers[], …

Software Development c
Member Avatar for Ancient Dragon
0
254
Member Avatar for marti3a3

I'm trying to implement a menu choice, so the user can define what kind of triangle they have, with the focus on class implementation. I'm trying to define a class attribute that offers the choices, but then depending on the choice, sends the compiler to the appropriate attribute. Example: [CODE]int …

Software Development c++
Member Avatar for marti3a3
0
151
Member Avatar for ninjaimp

I have a listview which is populated with values from a data base. What i am trying to do is select an item from the listview via a checkbox and then have that value displayed in a listbox. But everytime all that is displayed in the list box is: (Collection) …

Software Development listview vb.net
Member Avatar for Jx_Man
0
126
Member Avatar for Adrian99420

hi, I link up a combobox item with a MS access database by setting the data source and display member of combobox properties. However, I wish to filter some repeated item in the combobox, how can I do that? For example, my MS access table contain value as follow: profile …

Software Development c++
Member Avatar for Ancient Dragon
0
138
Member Avatar for Sh13

Hi, I read in data from a file something like this in my main function text text texttext texxttet texet [code] char **array; ifp = fopen (filename.txt , "r");[/code] then I allocated some memory using malloc [code]for(i = 0; i < 3; i++) { array[i] = malloc(50 * sizeof(char)); } …

Software Development c
Member Avatar for Sh13
0
101
Member Avatar for VisActualyBasic

Hi all, I have problem with Counting running sum. intDiff = days different between two dayTimePickers If I click btnOne this will change my dateTimePickerToday to next day and increase intDiff to 1 I want to use intDiff as counter when ever i check some checkboxes to count total of …

Software Development vb.net
Member Avatar for VisActualyBasic
0
104
Member Avatar for oldSoftDev

hi I am a beginner python user studying python is fun and i have learned many thing now a days I am working on a program to find prime numbers and non prime number in a list generated by range function. i am done with my work the problem is …

Software Development python
Member Avatar for jrcagle
0
100
Member Avatar for Designer_101

Hi Im currently a web designer, but i want to get to grips with software development aswell. Could anyone tell me what i need to get started. For example -Software -Usfull tutorials -Testing Pods (if you use them?) Anything like that would be of great use. Thanks

Software Development c++
Member Avatar for Ancient Dragon
0
55
Member Avatar for roulette843

I want to create a method in Python that will read all of the text on a webpage and put it into a text file. Eventually I will have it distinguish between hyperlinks by having it exclude lines in the text containing href="....." Any help would be greatly appreciated.

Software Development python
Member Avatar for vegaseat
0
3K
Member Avatar for charitha_sharma

Hello all i am deadly needed this please any one have idea let me know my requirement is i am having 4 client computer and one server my form1 have 10 buttons ( all client computer has the same form installed vb form on client side and database on server …

Software Development client-server vb.net
Member Avatar for ericstenson
0
86
Member Avatar for Chunkymonkey

Hi everyone, I'm new to daniweb and seems cool there are alot of nice helpful people on here. With my dad we are trying to script a simple poker game on python(and tkinter). There are 4 players ( 1 real and 3 artificiel intelligence players), each AI should be able …

Software Development python tkinter
Member Avatar for Chunkymonkey
0
184
Member Avatar for Mackjan

Hi I try to copy a list to another list but it dosent work[code] def kopi(x,y): i=0 for i in range (1,len(x)-1): x[i]= y[i-1] i+=1 print y [/code] I dont know what is the problem with my code. thanks alot for your help.

Software Development python
Member Avatar for vegaseat
0
110
Member Avatar for FreezeBlink

Hey. I'm working on a simple project that requires a way to find all the empty grid cells accessible along a path that's <= n cells long (an analogy would be TBS movement), and I've got an [i]almost[/i]-working piece of code for it. Here's the function I wrote: [code=Python]def findArea(distance,origin,gridUsed,emptyChar): …

Software Development python
Member Avatar for vegaseat
0
142
Member Avatar for Micko

Hi to all, after two months I decided to give Python one more chance. Here is a little code snippet about counting number of words in text file. (Under word I assume any combination of letters and numbers delimited by standard separators " .,\n\t" [code] file = open ( "Test.txt", …

Software Development file-system python
Member Avatar for vegaseat
0
5K
Member Avatar for Black Magic

Hey, I have noticed when you use srand or rand you write: [CODE=C++]rand() % 99 + 1[/CODE] I was wondering about the 1, is it just tradition to use it or is it from 1-99? Just because i was wondering how i could make it between say 20 and 40 …

Software Development c++
Member Avatar for CoolGamer48
0
88
Member Avatar for iamnoangel26

Umm i just want to ask how to use an array and when to use them. I just cant get what my teacher is telling. Maybe someone can give me a new idea. That's all thanks :)

Software Development c++
Member Avatar for gazoo
0
215
Member Avatar for Azurea

Hi guys, I have a simple question. I'm trying to import my modules from a different folder (the different folder is in the same place as the the program I'm importing from), but I don't know how. I've looked on Google, but I've had no luck so far. My question …

Software Development python
Member Avatar for Azurea
0
89
Member Avatar for CodeBoy101

How do I read a file thats in a folder, but is in the same folder as the exe.? And how do I do this no matter what folder the root folder is placed in?

Software Development c++
Member Avatar for CodeBoy101
0
339
Member Avatar for tymk

Running 64-bit Fedora 8 on HP laptop with AMD Turion 64bit/dual core, developing in Eclipse, compiling with g++. The [icode]clock();[/icode] function always returns 0. Any ideas why this is so? I have had no problems using the rest of the [icode]ctime[/icode] library. [code=cpp] #include <ctime> using std::clock; #include <iostream> using …

Software Development c++
Member Avatar for Salem
0
5K
Member Avatar for Mark515

how do you create a flowchart for a c++ program?

Software Development c c# c++
Member Avatar for Colin Mac
0
113
Member Avatar for CFrances

I'm new to Python and I'm working on a craps game. I got the basic code down, but I need to simulate a total of 200 games and track the number of wins. I need a counter in my program, but I can't figure out how to do this. Here's …

Software Development python
Member Avatar for CFrances
0
3K
Member Avatar for samudebr

I am desing a POS resturant system, is it possible to add a timer at the buttom of a button so that when the first order is entered the timer will start ?

Software Development
Member Avatar for tgreer
0
193
Member Avatar for Onixtender

Hi, I have a problem creating one part of the program, Lets say we have a line (from data file): 333 hou 23se 444 bi 4g and the program should change to : house big deleting first number if there is one ,and changing word parts to numbers, and deleting …

Software Development c c# c++
Member Avatar for Onixtender
0
150
Member Avatar for Black Magic

Hey, i was just going to start making a game where srand made a random number between 1&99 and that is the power you would hit of someone else, the one to defeat the other person won, I got some prefix errors etc : [code=c++]#include <conio.h> #include <iostream> using namespace …

Software Development c++
Member Avatar for Black Magic
0
157
Member Avatar for kbehemoth

I have a problem geeks!!! In following program..... [code=c] #include<stdio.h> #include<conio.h> void main() { float f=0.7; clrscr(); if(f<0.7) printf("C+"); else printf("C++"); getch(); } [/code] in the above program when I give the value of f=0.7 and in if statement also I put the same value 0.7 then the output of …

Software Development c++
Member Avatar for Salem
0
154
Member Avatar for dreamgirl

Hi, well my question is how to calcuate the total cost for a shop which is as follows [code] Item Quantity Price per unit Total cost 1 2 20 40 3 1 25.50 25.50 [/code] Total 65.50 [code=cplusplus] float total(int qty, int price); { int t; t=qty*price; if ((qty<10.00)&&(price<100.00); return …

Software Development c++
Member Avatar for dreamgirl
0
107
Member Avatar for David Wang

I am doing windows forms application in C++, using visual studio 2005. I could reach Form2 from Form1 by clicking a "log-in" button in Form1, after fill in the name in a textbox. Then I would like to show the log-in name in Form2 somewhere. I have got a class …

Software Development c++ display visual-studio
Member Avatar for mitrmkar
0
301
Member Avatar for its.romi

Added just to help other.... [code=c] #include<stdio.h> #include<conio.h> #include<stdlib.h> void createHashTable(void); void getData(void); void formatting(void); int insertData(int); int collision_OpenHashing(struct hashOpen*& ,int); int generateKey(int); void DispData(void); void DispHash(void); #define dataSize 15 #define empty -1 #define fail 0 #define success 1 struct hashOpen{ int item; struct hashOpen *next; }*head, hashTable[10]; int dataArray[dataSize]; …

Software Development c
Member Avatar for rizrash
0
117
Member Avatar for Brent.tc

Hi, I was wondering how to make a program listen on a port... lests say port 54321. All I want for it to do is listen for any message sent on that port, and then output "54321"... Is this as simple as I think, or is it something that is …

Software Development c++
Member Avatar for Laiq Ahmed
0
97
Member Avatar for farifari

hi, Can anyone tell me how to retrieve data from one form to another in VB.net,,,???? Actually I have a form in which i have 5 values with labels and text boxes,I know I can edit n save them,, i have linked this through Data base but i want that …

Software Development vb.net
Member Avatar for charitha_sharma
0
196
Member Avatar for echoestroy

I was wondering how i could set up a random number loop, but have it stop looping when it hits 1 or any other number i assign. i use dev C++ compiler [code] //Damage Roller #include <iostream> #include <cstdlib> #include <ctime> #include <conio.h> using namespace std; int main() { srand(time(0)); …

Software Development c++
Member Avatar for echoestroy
0
142
Member Avatar for selvaganapathy

Hi My Question is how to use printer in vb6. I know some of the printer properties. But when printer prints some text it automatically goes to next paper, it is not good for bill printing. any one say how to code printer for bill format

Software Development printer visual-basic
Member Avatar for selvaganapathy
0
118
Member Avatar for RanmaSaotome

okay. i ahve a question, if any one is willing to help me out. aim: recreate a dynamic 'lights out' i want to position controls into a grid like view at runtime, so the result would look something like this: 00 01 02 03 04 05 06 07 08 09 …

Software Development visual-basic
Member Avatar for selvaganapathy
0
132

The End.