132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for abarlowa

I need help, I am getting an error on line 2. It says ; is expected but one is already there. Can someone tell me what I am doing wrong? [CODE]//Input String input; //Process while (input != ("!")) { if (input == "A" || input == "a") { Console.WriteLine("OK"); } …

Software Development
Member Avatar for jonsca
0
82
Member Avatar for pateldeep454

Assignment: One way to calculate ex is to use the infinite series expansion ex = 1 + x + x2/2! + x3/3! + x4/4! + ... If the loop variable is named i, then the ith term is equal to xi/i!. a. Write a method called myexp that adds up …

Software Development java
Member Avatar for pateldeep454
0
520
Member Avatar for shimbouzi

I've been trying to do this problem for awhile now, but im not getting any luck. im just not completely understanding how single dimensional arrays work. any help would be great here's what i have so far, and then the problem is below. include <iostream> include <iomanip> using namespace std; …

Software Development c++
Member Avatar for Lerner
0
112
Member Avatar for shivam saxena

hi please help actually i want to develop a software of image processing using either c++ or .net . please give more detail by using c++ langauge

Software Development c++ image
Member Avatar for Stefano Mtangoo
0
86
Member Avatar for jonniebl

I am writing a program that loads a web page then get data from the page for calculations. I can navigate to the web page but the code does not wait for the page to completely load before proceeding. I need a way to have the program wait for the …

Software Development vb.net
Member Avatar for jonniebl
0
260
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 …

Software Development c++ open-source
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' …

Software Development open-source vb.net
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]

Software Development
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 …

Software Development c++
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

Software Development c++
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, …

Software Development gui python tkinter
Member Avatar for SgtMe
0
1K
Member Avatar for calccrypto

forget it. i think i found the answer

Software Development python
0
67
Member Avatar for pikesh

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

Software Development c
Member Avatar for gerard4143
0
86
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...

Software Development gui ide python
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?

Software Development gui python tkinter
Member Avatar for vegaseat
0
123
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 …

Software Development java
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 …

Software Development c++ ios linked-list open-source
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

Software Development oop
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]

Software Development
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 …

Software Development c++ linked-list
Member Avatar for NitaB
0
328
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 …

Software Development c++
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<<"É"; …

Software Development c c# c++
Member Avatar for WaltP
0
972
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 …

Software Development c++ linked-list
Member Avatar for tshudyb
0
108
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 …

Software Development c c# c++ opengl visual-studio
Member Avatar for mrnutty
0
192
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 …

Software Development c++ visual-studio
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 …

Software Development
Member Avatar for Narue
0
148
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]; …

Software Development c
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 …

Software Development java
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 …

Software Development java
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) { …

Software Development c++
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 …

Software Development java
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] …

Software Development vb.net
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, …

Software Development listview
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 …

Software Development c++ ide open-source
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; …

Software Development c++ file-system
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, …

Software Development c++
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) = …

Software Development dataset sql vb.net
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]

Software Development c
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 …

Software Development c++
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 …

Software Development c++ ide
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); …

Software Development c
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. …

Software Development vb.net
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 …

Software Development python
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 …

Software Development c++
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??

Software Development c++ linked-list
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 …

Software Development vb.net
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 …

Software Development c c# c++
Member Avatar for jonsca
0
139
Member Avatar for ojung

can anyone help me!? i have to create program to search word from text file, but i don't know how can i match word from input to text.. Can anybody help!!!??

Software Development c c# c++
Member Avatar for onksssss
0
10K
Member Avatar for soUPERMan

How do you make a function repeat itself using a while statement. Here's the function: [CODE] # the function accepts any positive integer parameter and returns the sum of # the squares of its digits. def zap(intNum): total = 0 while intNum != 0: last = intNum % 10 total …

Software Development python
Member Avatar for willygstyle
0
1K

The End.