132,726 Archived Topics
Remove Filter ![]() | |
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++ | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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++ | |
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++ | |
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 | |
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++ | |
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) … | |
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++ | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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++ | |
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++ | |
| |
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 | |
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 | |
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 … | |
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++ | |
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++ | |
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++ | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 |
The End.