199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for vivekvxz

AAROHAN 2010 OVERNITE MAINS PROBLEM :1 There are 3 kinds of money in a planet far away from the earth: Mone, Luck, and Rpin. There's a money exchange company in this planet. You must go to this company if you want to do some money exchange, and, more autocratically, this …

Member Avatar for Nick Evan
0
574
Member Avatar for j_808

Hi all, just having problems with my next, previous, last and first buttons on my form. there not working but i am not sure where i am going wrong because i am a beginner. When i press any of the buttons it says 'there is no row at position 1' …

Member Avatar for j_808
0
103
Member Avatar for GAME

I am trying to copy all my 160 text boxes into one line. Each Textbox holds 1 character. [code]private void Menu_Copy(System.Object sender, System.EventArgs e) { if(textBox1.SelectionLength > 0) textBox1.Copy(); } [/code]

Member Avatar for GAME
0
182
Member Avatar for mik3

I'm having a problem with a part of my code that is designed to take a number (code) and extract the individual digits using a functino call for use later in the program. (At this point in the program I have alreay input the code number as an int) void …

Member Avatar for mik3
0
112
Member Avatar for empror9

hello guys, how can i print a random values and print random function? could you please write the code thank you

Member Avatar for Stefano Mtangoo
0
128
Member Avatar for virtualsaum

[CODE]# File: Manager.py from Tkinter import * class Manager: def choose(self,master): tasksf=Frame(master) tasksf.grid(row=1,column=0,padx=3,pady=3) Label(tasksf, text="Task ID:").grid(row=0,column=0,padx=3,pady=3) Label(tasksf, text="Description:").grid(row=1,column=0,padx=3,pady=3) Label(tasksf, text="Start Date:").grid(row=2,column=0,padx=3,pady=3) Label(tasksf, text="Deadline:").grid(row=3,column=0,padx=3,pady=3) self.tid=Entry(tasksf) self.tdesc=Entry(tasksf,width=25) self.tstart=Entry(tasksf) self.tdead=Entry(tasksf) self.tid.grid(row=0,column=1,padx=15,pady=5,sticky=W) self.tdesc.grid(row=1,column=1,padx=15,pady=5,sticky=W) self.tstart.grid(row=2,column=1,padx=15,pady=5,sticky=W) self.tdead.grid(row=3,column=1,padx=15,pady=5,sticky=W) def asdfg(self,master): print "dsgsfd ",v def __init__(self,master): master.title("Manager") menuf=Frame(master) v = IntVar() Radiobutton(menuf, text="Tasks", variable=v,indicatoron=0, value=11,command=self.choose(master)).grid(row=0,column=0,padx=5,pady=5,ipadx=5,ipady=5) Radiobutton(menuf, text="Meeting", variable=v,indicatoron=0, …

Member Avatar for SgtMe
0
1K
Member Avatar for calccrypto
Member Avatar for pikesh

what is lvalue required in turabo c++,Hoe i can solve this type of error?

Member Avatar for gerard4143
0
86
Member Avatar for mtroute

I m trying to create a table using the results of a SUM on separate tables within a single DB. I have tried various join scripts but can't seem to get it right. As a work around, I have created a single SUM table for each Table and run the …

0
79
Member Avatar for Clueless86

I was wondering is there a good IDE for python /wxpython/pygame? I was wanting something that would do all 3 very good, for when I do finally jump to a GUI... I was messing around a little with pygame, and I noticed it dose not like the python IDLE...

Member Avatar for Stefano Mtangoo
0
324
Member Avatar for HiHe

Does anyone have a code example for using the mouse wheel with the Tkinter GUI toolkit handy?

Member Avatar for vegaseat
0
123
Member Avatar for tryphy

Hi, I have a javascript function to disable and enable a textbox. [CODE] <SCRIPT LANGUAGE="JavaScript"> function enable() { document.form1.tmphone2.disabled=false; document.form1.pmphone2.disabled=false; } function disable() { document.form1.tmphone2.disabled=true; document.form1.pmphone2.disabled=true; } </SCRIPT> [/CODE] I need to call the function in a php code, on condition Heres my code: [CODE] <?php $cc = $row['company_country']; $s …

Member Avatar for EvolutionFallen
0
2K
Member Avatar for darek9576

Could anyone give some info on the printf() method.. I know we can put %d and %s in the format argument so that it takes a string data type and a decimal data type but apart from that are there any other uses of printf()? some simple examples will do …

Member Avatar for BestJewSinceJC
0
91
Member Avatar for atticusr5

Hey everyone, I am trying to get my school program on pointer variable linked lists to work, but I have incountered a runtime error. When I try to print my data to the screen or a file, it does not work. I am not sure if my program is not …

Member Avatar for tetron
0
89
Member Avatar for FlippA

Hi all, I have a list of Classes and I want to sort the list of Class by one of the Attributes held within the Classes does anyone know a easy way of doing this. Kind Regards FlippA

Member Avatar for FlippA
0
152
Member Avatar for GAME

I'm trying to make a button that saves Multiple text boxes in to 10 lines and 16 characters per line(only found stuff for VB).Also just to make sure for my clear button would I put:[Code] textBoxX1.Clear();[/code]

Member Avatar for apegram
0
163
Member Avatar for NitaB

Okay, maybe I'm just overlooking something but I need help. I have this program that reads in some numbers from a file and makes a linked list. The only function that is not working properly is one I called IsThere. Basically, it's just supposed to tell me whether or not …

Member Avatar for NitaB
0
328
Member Avatar for avinash_545

Dear all, can you please help me with a small timer problem.i dont know why but firefox is not displaying the small clock from my codes, though javascript is enable. <html> <head> <script type="text/javascript"> function startTime() { var today=new Date(); var h= today.getHours(); var m= today.getMinutes(); var s= today.getSeconds(); //Now …

Member Avatar for avinash_545
0
112
Member Avatar for DavidDD

Hey there! Summarizing the problem within the title is too hard but I tried. Let's just jump right in! I am pretty new (enough to only program in the console) to C++. Right now I am trying to code a hi-lo game. Where you guess if the next card is …

Member Avatar for WaltP
0
114
Member Avatar for aianne

Hi! I need help for my c++. This is the code: [CODE]#include<iostream.h> #include<conio.h> void box(int x, int xx, int y, int yy); void box(int x, int xx, int y, int yy) { int xs,ys,i,j; xs=xx-x; ys=yy-y; for(i=1; i<xs; i++){gotoxy(x+i,y);cout<<"Í"; gotoxy(x+i,yy);cout<<"Í"; } for(j=1; j<ys; j++){gotoxy(x,y+j);cout<<"º"; } for(j=1; j<ys; j++){gotoxy(xx,y+j);cout<<"º"; } {gotoxy(x,y);cout<<"É"; …

Member Avatar for WaltP
0
972
Member Avatar for aboell

I have a Sharepoint (WSS) question that due to the keywords make it difficult to effectively find solutions on the web. We are trying to roll out a new Sharepoint site, but have some PR commitments to keep our original front page. I would like to know if there is …

Member Avatar for aboell
0
119
Member Avatar for tshudyb

I need to use an array of 5 elements. Each element of the array is a structure with 2 fields: the name of the hotel and a singly linked list of attendees staying in that hotel. Functions are: CheckIn CheckOut Transfer Count Print Quit If someone could just show me …

Member Avatar for tshudyb
0
108
Member Avatar for eenceo

Can anyone think of a reason why a PHP // comment cancels the execution of a file? Here's the setup: I have an index.php file that loops through different commands. [CODE]if(in_array($act2, $a2)) { if($act2 == "prods") { require('prod.php'); } else if($act2 == "stats") { require('stats.php'); } else if($act2 == "cust") …

Member Avatar for eenceo
0
197
Member Avatar for Hawkpath

Alright guys, I have a really weird error here. I'm programming a program that lets you specify the red, green, and blue components then stores them in arrays and uses the colors when drawing shapes. The program worked perfectly until about five minutes ago. Nothing affecting that specific part of …

Member Avatar for mrnutty
0
192
Member Avatar for darrylpatterson

Now that Perl is losing its popularity, which one the these languages will be the next to go: PHP or ASP? Which one of them do you like best? and why?

Member Avatar for digital29
0
142
Member Avatar for CodyOebel

I am programming with visual studio express using the Dark GDK libraries, and If I wanted to conceal my hard artwork such as pictures and artwork I developed so that no one could take it from my project directory to play my game how can I compile all of the …

Member Avatar for CodyOebel
0
119
Member Avatar for Lebowsk1

Hello there folks. I'm very new to programming and am having a bit of trouble with one of my first projects, a simple "lottery number generator" programme. At first, it all appeared to be fine, but of course a lottery number generator cannot generate two identical numbers in a single …

Member Avatar for Narue
0
148
Member Avatar for AbdullahDar

Hi there i m new to GUI programming and i have started it from midlet. the problem is, i have made separate classes for each page/form that is to be displayed on a mobile screen but dont know how to link them. Like i want when my login successful, my …

Member Avatar for jwenting
0
113
Member Avatar for tinkerkyala

THIS IS A CALCULATOR PROGRAM LIKE FOR EXAMPLE: 2+3*4 WHY DO I GET NULL RESULT? THE CONVERSION TO INFIX TO POSTFIX IS RIGHT BUT WHEN I EVALUATE THE RESULT IS NULL... PLEASE PLEASE HELP...T__T [code]#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #define MAX 100 typedef struct { char data[MAX]; …

Member Avatar for abhimanipal
0
126
Member Avatar for ckjie

Hello all, I get the server source code below: [CODE]#include <winsock2.h> #include <ws2tcpip.h> #include <stdlib.h> #include <stdio.h> // Need to link with Ws2_32.lib, Mswsock.lib, and Advapi32.lib #define DEFAULT_BUFLEN 512 #define DEFAULT_PORT "27015" int __cdecl main(void) { WSADATA wsaData; SOCKET ListenSocket = INVALID_SOCKET, ClientSocket = INVALID_SOCKET; struct addrinfo *result = NULL, …

Member Avatar for Salem
0
166
Member Avatar for javitis

Hello, i have a simple question. Let's say you have 3 private attributes. If you want to insert a value you use a set method and when you wish to display its content you use a get method. When you use a constructor with a parameter list e.g.: private String …

Member Avatar for javitis
0
64
Member Avatar for MoooCow

Hello, I need help with the print function. Everything works fine, but when I run the that function it gives a stack over flow problem. I do not understand why when this print function works fine with the other binary search tree implementations. [CODE] public class SplayTree<AnyType extends Comparable<? super …

Member Avatar for obscured47
0
186
Member Avatar for DARK_BYTE

I wrote this code below and it isn't working giving me a stack overflow problem.Can someone please help me? [CODE]#include<iostream> using namespace std; int partition(int* A,int l,int r) { int v=A[r]; int i=l; int j=r; int temp; while(i<j) { while(A[i]<v) { i++; } while((i<j)&&(A[j]>=v)) { j--; } if (i<j) { …

Member Avatar for DARK_BYTE
0
128
Member Avatar for osman_sonic

hi all, i am final year university student and i need some ideas for developing a distributed application to my final year project. any ideas ,example, that help me to finish my project in time because our last day of proposal is 05/04/2010 i do not need code just ideas …

Member Avatar for osman_sonic
0
259
Member Avatar for mshdpotato

How can I get the value of the year, month and/or day from the DateTimePicker if I'm trying to compute for the age? I've tried [CODE] Dim x As String = "" x = Date.FromOADate(Val(DateTimePicker1.ToString)) MsgBox(x) [/CODE] But it only gave me 12:00 AM. and [CODE] DateDiff(DateInterval.Year, DateTimePicker1, Now.Date) [/CODE] …

Member Avatar for drewpee
0
91
Member Avatar for ticktock

Hey all, I am currently making a phonebook as a final project for my introductory c# class and I was wondering how can I save my form's contents to a database? and how do I export it to an excel file? I have a listview of items that indicate name, …

Member Avatar for ticktock
0
112
Member Avatar for Excizted

Hello. :D I've been working on a project for couple months now, on Linux. When I invited a new team member, of course he came with his Windows. I want to hear [B]your opinion[/B] on how to make the development easy cross platform. Usually I would just tell him to …

Member Avatar for Excizted
0
123
Member Avatar for gaurav10

hi i have a file dictionary.txt which contains a list of four-letter words which i have to read into a string vector. i have written the following code [CODE] char* char2str(char); //convert single char to null terminated string int main() { vector<string> dict; ifstream in("dictionary.txt"); char *temp, ch; int i=0; …

Member Avatar for gaurav10
0
124
Member Avatar for iamcreasy

Why I try to run the following OpenCV program, it shows the following error : ---------------------------------------------------------------------- test_1.exe - Application Error The application failed to initialize properly (0x80000003). Click on OK to terminate the application. ---------------------------------------------------------------------- [CODE] #include "cv.h" #include "highgui.h" int main() { IplImage *img = cvLoadImage("C:\\face.bmp"); cvSetImageROI(img, cvRect(100,100, 100, …

Member Avatar for iamcreasy
0
218
Member Avatar for shrighead

[code] Dim da2 As OleDb.OleDbDataAdapter Dim cols As Integer = Attendance_QueryDataGridView.ColumnCount Dim rows As Integer = Attendance_QueryDataGridView.Rows.Count Dim a(cols) As String Dim dt As New DataTable("Attendance") da2 = New OleDb.OleDbDataAdapter(sql, con) da2.Fill(ProjectDataSet, "Attendance") Dim NewRow As DataRow NewRow = ProjectDataSet.Tables("Attendance").NewRow For z = 0 To cols - 1 a(z) = …

Member Avatar for shrighead
0
177
Member Avatar for ravikiran32

i have written small c language code to execute "dir" command which displays directories and files in the current directory, using system() function in c. But my code doesn't work. please help me. [CODE]# include <string.h> # include <stdio.h> # include <stdlib.h> void main() { clrscr(); system("dir"); getch(); }[/CODE]

Member Avatar for gerard4143
0
159
Member Avatar for re41verse

hello...i'm currently a third year highschool student...and i was wondering if anyone can help me on how to use arrays and utilizing them in fstreams...i'm currently doing my case study and i'm stuck since i still don't have any idea on how to use arrays...our teacher didn't teach us about …

Member Avatar for Excizted
0
78
Member Avatar for lich004

i need to draw a 2D graph in C++, so i had downloaded koolplot to draw it. But the condition is- i want to use koolplot under codeblocks IDE not quincy, dev++ or else, so how should i link them?? i tried to link the libkoolplot.a but it still showing …

Member Avatar for Nick Evan
0
689
Member Avatar for nimuns

i have here 2 program the first one #include<stdio.h> [CODE]#include<conio.h> #include<stdlib.h> #include<process.h> struct record{ char acc_name[6]; int pin; float bal; }; void main() { FILE *fp; struct record b; clrscr(); if((fp=open("accounts.dat","wt"))==0) { printf("Error"); exit(1); } printf("Enter account name:"); gets(b.acc_name); printf("Enter account pin:"); scanf("%d",&b.pin); printf("Enter balance:"); scanf("%f",&b.bal); fprintf(fp,"%s %d %.2f",b.acc_name,b.pin,b.bal); fclose(fp); …

Member Avatar for Nick Evan
0
2K
Member Avatar for flushfire

I am trying to send keystrokes to a window/s that is not in focus using sendmessage. Finding the window's handle using its name is simple enough, however what I want is to get the handle by clicking on the window or puting that window into focus (whichever is easier) bec. …

Member Avatar for flushfire
0
150
Member Avatar for rasizzle

I have a series of rules that I want to be able to execute without having to manually edit the code. I'd like to give my rule conditions at the beginning and have the program run it. This way, I can test every single rule combination in a for loop …

Member Avatar for willygstyle
0
289
Member Avatar for empror9

ok could you please see my code [CODE]srand(time(NULL)); system("MODE CON: COLS=90 LINES=360"); system("TITLE Press ^<ESC^> to exit"); cout << "Press <ESC> to exit\n\n"; int milliseconds = 500; char key=0, esc=27; while(key != esc) { int villain = rand(); system("cls"); char wall = 177, flute = 14, hero = 2, life_hero …

Member Avatar for Excizted
0
143
Member Avatar for MyRedz

i was wondering. of all the data structures like list linked list,stack,queues,graph of bfs and dfs. hashing,sorting,searching,arrays...heaps, can anyone of them be solved using computational methods and statistic like linear regression,quadratic regression,trapezoidal rule,simpson's rule..which is to improve accuracy of integral.. just wondering is it possible??

Member Avatar for tetron
0
196
Member Avatar for j_808

i am trying to add a edit button where the data displayed in the textboxes from the selected record in the datagridview on vb gets update if i change any details when i press the edit button. problem is when i click the button it says 'There is no row …

Member Avatar for j_808
0
91
Member Avatar for sssouljah

Hello i am trying to construct a class for the first time...its called Field and is very similar to a vector in that it tries to store an array of double.. i am not able to compile the code..i get the error that field.h does not exist..pls see if u …

Member Avatar for jonsca
0
139

The End.