199,114 Archived Topics
Remove Filter ![]() | |
I am also havin the same difficulty, when i am trying my code in linux (ubuntu) using gcc. | |
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 … | |
What and when you would use Decimal vs Float Type? | |
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 … | |
![]() | 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 … ![]() |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
#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 … | |
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 … | |
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 … | |
![]() | [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' : … ![]() |
[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 … | |
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? | |
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 … | |
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 … | |
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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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! | |
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. … | |
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 … | |
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? | |
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. … | |
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 … | |
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 … | |
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 … | |
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. … | |
...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; … | |
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 … | |
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 | |
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 … | |
[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 … | |
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. | |
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 … | |
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 … | |
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? | |
[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 … | |
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 … | |
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 … | |
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 … |
The End.