199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for aaabhish
Member Avatar for Salem
0
164
Member Avatar for aot

I've been trying to use binding to a KeyPress/KeyRelease such that a particular function runs as long as the key is pressed and ceases when it is released. However, it seems like my major problem is that most keys are considered to continually activate as long as you hold them …

Member Avatar for Quarks
0
15K
Member Avatar for jobs
Member Avatar for inflex

Hello I am a newbie in java so now i just write codes with dialogs and JOptionPane .. like this so it's easy codes. So i want to write a program like this; Application will use only Dialog Boxes. Frames are not allowed to use. Application should ask eight questions …

Member Avatar for peter_budo
0
142
Member Avatar for fatihpiristine

hi guys... i have two static value and between 8 and 16 other dynamic variables...which returns from sql queries everything.. like page titles, subjects etc... everything based on number in tables, Statics: Language and Index Dynamic values: Categories from 1 to 6 SubCategories from 1 to 10 system works like …

Member Avatar for fatihpiristine
0
97
Member Avatar for jacknight

I searched the forums but I didn't find any useful information. I am just trying to write a simple recursive solution to do F(n). It seems simple to me but I am probably not thinking about it correctly. My program has no errors, but it only returns 55 and then …

Member Avatar for jacknight
0
85
Member Avatar for keef12345

Hi my family computer needs a backup script... it needs to do the following tasks for us.. The script will ask the user which directory they wish to backup? the backup will 'ask' the user for the full pathname of the backup to create also i need the script to …

Member Avatar for Duoas
0
91
Member Avatar for SheSaidImaPregy

I have a few questions for those who know so much about the web.. 1. Is it better to declare.. 20 variables and do all your SQL queries immediately, or to do like 10 variables and open your connection, do one query, then reset your variables and runt he queries …

Member Avatar for SheSaidImaPregy
0
103
Member Avatar for n.aggel

Hi, if we had the following program:: [CODE=c++]int main() { int a, d; int b=12; int c=13; a=b+c; d=b+c; return 0; }[/CODE] what would gcc produce as a result? would it be:: [CODE]fetch b fetch c add store to a fetch b fetch c add store to b[/CODE] Or something …

Member Avatar for n.aggel
0
161
Member Avatar for gehad3003

hi can any one help with Mersenne Prime numbers calculator. A prime number is defined as being a Mersenne Prime if it is of the form 2^n – 1, where n is any integer greater than 1 display all the Mersenne primes from 2 through 1,000,000. Your results should be …

Member Avatar for gehad3003
0
800
Member Avatar for ickle2

My Task is....(this is in pascal code by the way i am using a software called pascal7) Produce a program that: [B]*reads in, from a text file, the names and dates of birth of 5 people *stores these names and dates of birth using a sensible data structure *determines which …

Member Avatar for Duoas
0
132
Member Avatar for nicz888

#include <iostream> using namespace std; void getMonthName(int monthNum); void main() { int month, i=0; cout << "Enter a month " << endl; cin >> month; while (!cin.good() && i <3) { cout << " Bad input.\n"; cin.clear(); cin.ignore(80,'\n'); cout << " Try again: "; cin >> month; i++; } while …

Member Avatar for vijayan121
0
95
Member Avatar for phalynx24

not sure if this the right place for this question so here goes. I am currently a Truck driver who had atleast 3 years of college work completed in Computer information systems. I have went back to school and want to change my major to Computer science because someon told …

Member Avatar for jwenting
0
404
Member Avatar for curt22

Hello everyone I'm having trouble writing part of a vector to a file. I'm getting this error: [QUOTE]main.cpp:287: error: cannot convert `std::basic_string<char, std::char_traits<char>, std::allocator<char> >' to `const char*' for argument `2' to `int fprintf(FILE*, const char*, ...)'[/QUOTE] This is part of my code: [CODE]ListViewTextItem.begin(); FILE * pFile; pFile = fopen …

Member Avatar for Salem
0
95
Member Avatar for handsome_94

[CODE]void hexad(int i) { int j=0; int x=0; int chii=0; while(x<8) { second2[x]=' '; second1[x]=' '; x++; } switch(codesum) { case 744 : while(i<12 && temp[i]!='\0') { second2[j]=temp[i]; i++; j++; } strcpy(second1,"CE "); break; case 410 : while(i<12 && temp[i]!='\0') { second2[j]=temp[i]; i++; j++; } chii=second2[0]; switch(chii) { 'A' : …

Member Avatar for handsome_94
0
130
Member Avatar for simon_wagstaff

[code] if(operatorStack.Peek() = '*') { //lowerPrecedence = true; strPostfix += operatorStack.Pop(); }[/code] OK I could really use some help here, I've tried this and other forums, and with all the superprogrammers we have out there no one will help me out on this..... Why am I getting a ": The …

Member Avatar for simon_wagstaff
0
90
Member Avatar for Steven_C

hi all, i am trying to find record in datagrid using a textbox (and/or a button) but it is not working. here is the code DataSet.Tables(0).Rows.Find(txtName) nothing happens when I type in textbox or when I press the Search button. can u tell me what wrong with it?

Member Avatar for Steven_C
0
76
Member Avatar for pacman326@gmail

Hey guys, I am trying to take chars from a file, and place them into 2 different dynamically allocated arrays. An example of the file would be name:John Doe&id:1448&phone:98765 One array stores name, id, and phone, and another should store each value. I have gone ahead and taken the string …

Member Avatar for pacman326@gmail
0
242
Member Avatar for rugae

Is it safe to compare strings with == operator or is .compare recommended? One of my teachers said NOT to use the == operator and always use a function when available. The example given was somthing along the lines of "when cpu is under high usage the == operator behaviour …

Member Avatar for vijayan121
0
206
Member Avatar for rogenie

Why does the code below stop executing after displaying all the numbers stored in an array? [CODE]//this will let the user enter 10 values and //store them into an array. After that //sort it out and cout the largest and the smallest number entered #include <iostream> using namespace std; int …

Member Avatar for rogenie
0
124
Member Avatar for jquick

Hi, I need to build a datetime object out of 3 drop down lists. I know I can use DateTime.TryParse().. but I don't know what format it wants? I tried this: [CODE=C#] showDate. = Convert.ToInt32(ddl_bday_day.SelectedValue); showDate.Month = Convert.ToInt32(ddl_bday_month.SelectedValue); showDate.Year = Convert.ToInt32(ddl_bday_year.SelectedValue); [/CODE] But those are read only properties. I then …

Member Avatar for jquick
0
114
Member Avatar for ztwalsh

When people add comments to my site there is always a slash before apostrophies. Is there a line of code that will prevent this from happening?

Member Avatar for chmazur
0
95
Member Avatar for maddog39

Hello all, In my python application I am trying to capture the output of stdin from a command that I run via popen2(). The python docs say that it returns a tuple of (stdin, stdout) however and i run: [code=python] result = popen2(command)[0].read() [/code] It only prints the results to …

Member Avatar for maddog39
0
136
Member Avatar for sandhyamanheri

Am not able to display the polynomial. Thr some problem in display function. Please help me out in this. [code=cpp] #include "stdafx.h" #include <iostream> using namespace std; // Creating a NODE Structure struct node { int coe,exp; // data struct node *next; // link to next node and previous node …

Member Avatar for Duoas
0
127
Member Avatar for phalaris_trip

I think I've been up too long at this stage.. I think this is a really stupid question: How do I declare all my objects from main() ? I have an object 'sun' of the class 'CPlanet' and within that class there is an instance of the class 'CAnimation'. But …

Member Avatar for phalaris_trip
0
120
Member Avatar for Massena

Hello! I'm new to the the forum and to programming in general, so after learning how to make variables, if statements and loops (badly) I decided I was tired of so much learning and had to make some sort of program or game :) . Tic-Tac-Toe jumped to mind and …

Member Avatar for Massena
0
83
Member Avatar for stan yost

All of a sudden I'm getting this error message in vb 5.0: Run- time error '3027' Can't Update Database or object is read-only. Can anyone help me with this? Thanks

Member Avatar for stan yost
0
194
Member Avatar for meiyantao

I am sorry for that I have solved it, just missing a ";" when I define the class. I have re-edited this thread. So sorry for flippancy!

Member Avatar for meiyantao
0
224
Member Avatar for redaqen

EDIT: Please note, this assignment was already submitted. Well for our assignment this time around, we had to write up a BASIC editor. It had to sort lines of code numerically. Each line would never be more than 80 characters long and there would never be more than 100 lines. …

Member Avatar for Ancient Dragon
0
155
Member Avatar for toucan

I started working with MIPS a couple of months ago and now I need to edit a given string so that it will only display the digits, arithmetic symbols and parenthesis that were in the original string as output. I though I could go ahead an print every string that …

Member Avatar for Duoas
0
1K
Member Avatar for joygqy

in pascal, if i wanna classify something into different category and count how many items i have in each category, how would i do that?

Member Avatar for Duoas
0
90
Member Avatar for mruane

I have been trying to figure out how to create a custom save script for text games and a text editor that I am working on. I was thinking I would have to have the script write to the actual program, unless I had an extra file just for saves. …

Member Avatar for jrcagle
0
121
Member Avatar for Alv45525

i am new to VB.Net. I have an assignment to submit next week that is on the 5 november 2007, and am having some problem in creating my program. Can you please help? i want to limit my MDI to open only one specific form at a time. like for …

Member Avatar for Alv45525
0
255
Member Avatar for skatamatic

Hey, I'm brand new to this site. Hopefully someone can help me out. How do you clear the console screen without any system-compatibility issues? This means that SYSTEM("CLS") and anything from a windows library (like #include<windows.h>) is not acceptable, as it will not run on linux/unix etc... I know theres …

Member Avatar for WaltP
0
2K
Member Avatar for LanierWexford

I am trying to learn Python by converting my C++ homework to Python. Below I am converting a Cobol file of employees to a comma delimited file. from: 00001JAMES ADAMSON 010104000014550324201021500067500040010011593 to: ID#,Last,First,Territory#,Office#,Salary,SSN,Department#,JobClass 00001,ADAMSON,JAMES,01,01,40000.00,145503242,01,02 I want to use EOF as my while loop control but I am getting a syntax …

Member Avatar for vegaseat
0
207
Member Avatar for rugae

I have like 5 classes, 3 of then need around 15 constants the other 2 classes need only 2 of the 15. I was thinking of having a header file to contain all the constants in header file and just include them in the header files of all 5 classes. …

Member Avatar for vijayan121
0
130
Member Avatar for cutekola

...kindly help me with this..........my code doesn't work.... ...create a program that will ask questions and at the end of the session it will display the total number of correct answers and the equivalent grade.... ...thanks..... import javax.swing.JOptionPane; public class questions { public static void main(String[] args) { int score=0; …

Member Avatar for peter_budo
0
150
Member Avatar for Barefootsanders

Hey evyerone, I'm currently working on a small project that would basically be a self hosted music server. Below is my code which, at a high level, goes through every music file in a specified directory and populates a multidimensional array with the ID3 tags and the file name. I …

Member Avatar for JerryShaw
0
128
Member Avatar for hawisme000

the title said it all, pls give me ideas on what i can use in making a chat box, like is using a many textbox good or a Big Nono, thx

Member Avatar for agrothe
0
113
Member Avatar for Azurea

Hi there, Im trying to start learning C++, but I haven't been able to find any compilers for it. Does anyone know any good compilers for C++? Thanks.

Member Avatar for ithelp
0
119
Member Avatar for Inny

Hi, I have popup window containing links called from the parent. If someone clicks a link in the child window (popup) I want it to open in the parent window (original window). Is this possible and can somebody please show me what script to add to child window to do …

Member Avatar for Inny
0
263
Member Avatar for asilter

[code] unsigned int nBolum = 0; unsigned long nKalan = 0L; unsigned long ulA = 0L; unsigned long ulB = 0L; ... printf("ulA=%u\n",ulA); printf("ulB=%u\n",ulB); nBolum = (unsigned int) ulA/ulB; nKalan = (unsigned long) (ulA%ulB); printf("nBolum = %u\n",nBolum); printf("nKalan = %u\n",nKalan); ... [/code] it prints; [code] ulA=2607503366 ulB=16777215 nBolum = 155 …

Member Avatar for Salem
0
155
Member Avatar for ditty

hi I am doing a project in asp.net with c#. Can anybody help me to edit data in the gridview. How can i enable the cells in gridview to modify the data.

Member Avatar for sandeep.thakur1
0
101
Member Avatar for dabu

I tried following this code for my program, but counting the consonants and vowels are not doing what I want them to. Is this the correct format to use? [code] #include <iostream> #include <string> #include <algorithm> using namespace std; void StateInstructions(); void GetInput(); void TurnUpper(); void TurnLower(); int NumVow(); int …

Member Avatar for zandiago
0
155
Member Avatar for jyovasinedu

hi once again iam posting a same query but with a different approach please try to understand and reply me Iam developing a site like yatra.com now how can i share the databases of all the airlines, hotels etc into my website.that means inorder to maintain a site like yatra.com …

Member Avatar for schoolsoluction
0
80
Member Avatar for federico090

I'm trying to learn something about assembly. I found this code: message db '.....Hello World.....',13,10,0 what is the meaning of the numbers after the text?

Member Avatar for federico090
0
80
Member Avatar for asilter

[code] unsigned long nBolum = 0L; unsigned long nKalan = 0L; unsigned long ulA = 0L; unsigned long ulB = 0L; ... printf("ulA=%u\n",ulA); printf("ulB=%u\n",ulB); nBolum = (unsigned long) ulA/ulB; nKalan = (unsigned long) ulA%ulB; printf("nBolum = %u\n",nBolum); printf("nKalan = %u\n",nKalan); printf("HVFE.c exiting\n"); exit(1); [/code] it prints : [code] ulA=2607503366 ulB=16777215 …

Member Avatar for asilter
0
3K
Member Avatar for Flakester

Hello, I am having some trouble on a light program. Ive spent the last 5 hours on it, and I'm a beginner so I'm relatively slow. =) I will show you what I have, but first I'll explain to you what I'm doing. I am writing a numerology program. I …

Member Avatar for WaltP
0
122
Member Avatar for Arbhin

Hello, people. First of all, I am new to this forum, so greetings. Second, I just started with learning C++. All the help, on where to start lessons and the like, are ver welcome. Why did I start on programming. * I wanted to create a MMORPG. And thought about …

Member Avatar for Arbhin
0
131
Member Avatar for tracethepath

i have made a menu driven program for selection sort, bubble sort and insertion sort.. the first two are working correctly but despite writing the correct code (according to me, i have checked my code many times) the insertion sort is not giving the desired output.. here's my piece of …

Member Avatar for tracethepath
0
86

The End.