199,114 Archived Topics
Remove Filter ![]() | |
How can I make a program wait for a few seconds before proceeding? An example of where this would come in handy is when the program allows the user 5 seconds before it proceeds with some default option... can I do this using python? | |
Alright i am writing a program to read a sentence you write and judging by you punctuation it will tell you whether its a statement, question, exclamation or other. My problem is that it isnt running my If statement. am i just bind and missing something. [CODE]/* * To change … | |
I would like to create a java prob that will request three integers from a users and have it printout the sum and product as such: the 3 different integers are : 13, 27, 14. the sum is 54 The product is 4914 Completed Have i programm the right way: … | |
I need to learn .net 3.5 frame work. I dont have much knowledge about this. Can anyone please tell me what are the things i need to learn to handle a site as I am working in a site devlopment team and also how much time will take to handle … | |
Hey guys, I really do not know on how to start this loop logic structure. Can anyone give me a rough idea on how to go about it? The question is : Develop a solution to calculate a student's grade average for one semester. The letter grades should be entered … | |
Hi, okay i've spent hours in the web searching for the right image slideshow/gallery to use for my website but in vain! Dont get me wrong the jQuery, Ajax scripts i've seen so far are so good but they all use lists to load all the images at once and … | |
I want to reset the ComboBoxEntry when the arrow symbol on it is clicked, but could not find any method that is called when arrow symbol on dropdown list is clicked. None of the signals button_press_event, key_press_event or focus_in_event works. This all are called when the text area on dropdown … | |
[CODE] package Sample; public class Sam { public static void main(String[] args) { R obj[] = new R[100]; obj[0].current=0; } } [/CODE] [CODE] public class R { int current; } [/CODE] when executing this code i am getting null pointer exception. while debugging at "obj[0].current=0 " it shows as malformed … | |
[code] /* * This program displays "I Love C++" to the Standard Output */ #include <iostream> int main () { std::cout << "I Love C++"; return 0; } [/code] I just DLed and Installed Cygwin and Netbeans using instructions from: [url]http://netbeans.org/community/releases/65/cpp-setup-instructions.html[/url] I did see that ths "type" of problem has … | |
hi, i'm having problems with the output. I do not get anything when I select 4 and enter a binary number. Here is my code, if anyone could point out what i'm doing worng, thanks. [CODE]import java.util.Scanner; public class Driver { public static void main(String [] arg) { LineWriter Lw … | |
good day! Please help me here, I need to count the record according to my condition but with my code it only counts the last record in the table in MySql. Here is my code.. Thanks! [CODE]<?php //establishing connection mysql_connect("localhost", "abc", "bbb") or die(mysql_error()); $submit = $_POST['submit']; $cancel = $_POST['cancel']; … | |
There might have been a question like this but I cannot find. I use option buttons in the form but in the report I want to see text instead of numbers. How shall I do it? | |
I want my cookie not to be reset when i close the browser. The way i have it right now it expires whenever i close the browser... I REALLY REALLY need a solution to this so please if someone could give me some time id REALLY appriciate it!! I dont … | |
Assuming that a year has 365 days, write a class named DayOfYear that takes an integer representing a day of the year and translates it to a string consisting of the month followed by day of the month. For example, Day 2 would be January 2 Day 32 would be … | |
I have a general question about searching inside a two-dimensional array. I'm working on a number search program that allows the user to enter a number to search in a grid of numbers. For example: User wants to search: 234567 In a grid of: 232772725432 734234657337 272425672442 235533655737 252444474436 737533255325 … | |
[CODE]#include <fstream> #include <iostream> #include <cassert> using namespace std; int main() { ifstream inFile; ofstream outFile; inFile.open("file.txt"); assert(!inFile.fail()); cout << "everythings fine" << endl; cin.ignore(); cin.get(); return 0; }[/CODE] This is my current code, file.txt doesnt exist. The program simply crashes. I was hoping for an error message explaining what … | |
Hello. I'm a newbie and i was wondering if anyone can tell me how to create an array that contains objects and number 0 wherever there is no object. Thanks in advance | |
Hello everyone, I am a C++ newbie and I am running into some linking errors. I am using Vi to compile and link my code. Here are the linking errors: assign6.o: In function `cAccountList::cAccountList()': assign6.cpp:(.text+0x1db): undefined reference to `cAccount::cAccount()' assign6.o: In function `cAccountList::cAccountList()': assign6.cpp:(.text+0x22b): undefined reference to `cAccount::cAccount()' assign6.o: In … | |
Hello, I was wondering how to go about having a redirect of stdout with Python take effect in a C extension. My python script redirects sys.stdout into a file handle created with [i]open(...)[/i], but within the function in my compiled C-extension, any output ([i]printf[/i], [i]puts[/i], etc) is still given to … | |
Hi! I am attempting to change the innerHTML code of a div and to run javascript code at that time. But I seem to be unable to do it. The actual workings of the whole thing are really convoluted but here is the general idea: [CODE] <html> <head><title>JavaScript test</title> <script … | |
hello, this is my first post on this forum! i have a strange bug that i get when using the player/stage project. I have compiled it with the MinGW compiler and it works fine on my vista laptop. However, on a lower spec XP PC it segfaults. Using GDB, i've … | |
Hey everyone I am writing some code for my c++ class and in this program I am trying to sort back account information by there accountID #'s. When I try to compile, here are the errors I get: assign6.cpp: In member function ‘void cAccountList::sort_by_ID()’: assign6.cpp:110: error: ‘accountID’ was not declared … | |
[code] int do_openFile(void) { char *p ; /* pointer to outFileName */ char *m ; /* pointer to report date */ char *mon; /* month number in report date */ /* get output file name */ m = pk->CNCRptdate; m += 2; strncpy(mon, m, 2); p = outFileName ; strcpy(p, … | |
how do i get this code to stop referring to its present value, so that the values already saved in the list are not changed to the present value? [CODE] Cm = 0x5A827999; Mm = 0x6ED9EBA1 Cr = 19; Mr = 17 Tm = [[0]*8]*24 Tr = [[0]*8]*24 for i … | |
I would like that case 1: should display how many elements do i want, and that i can assign values to those elements. Mine because of the j++ goes infinite, so i can enter infinite values to infinite arrays. How could i do this? Cate elemente vrei sa adaugi: 3 … | |
Every thing works perfectly only it will not check for a full house. Ive tried to figure out what the problem was by rewriting pair checking and three of a kind checking but the same result always. The function simply returns an integer corresponding to the hand stength given a … | |
I've seen these in documentation, namely in the "importlib" documentation for Python 3.1, and I'm wondering what the difference is between a "universal newline" and a "standard newline", if any. I know it has to do with the byte sequence that is used to represent newlines, and I think universal … | |
Hello; can we give the variable in struct an initial values ? ex: struct example{ int id; float gpa; string name; }; can we but this inside the structure : int id=34440; the same Q is for the Class ? can we intialize the variable when definr it for the … | |
hi al, i have a webbrowser component that refreshes every 5 sec, but when it refreshes you hear the *click* sound. But how do i disable that | |
Hello, I've got a problem with my project... in short I've got a mysql db bond through a DataSet and BindingSource - if I'm editing like a user the gridview then all changes are commited to the db no problem... But I need the user to responsibly change foreign keys … | |
Hello, Im trying to create file . I'm almost done my program but Im getting this error. The method read() is undefined for the type Scanner | |
Hi I currently have date in database in this format: 11-7-2009 But I think I need to echo this in this format: 2009-11-07 | |
Hello C experts, I am searching for a tool which can validate content of printf (static string part) against an english dictionary , have anyone of you come across such tool , here is the example to clarify. [code=c] printf("The value of the interface identifier is %d",i); printf("This intarface is … | |
Hi there... I am a new member here. If my request is not appropriate anyone can delete it. I desperately need help with my school work. I have been doing this for about a week but still don't get how to do. This is a big programming work, so I … | |
I am trying to switch between to form in different project currently I am going this: [CODE] this.Hide(); form2 f= new form2(); f.Show();[/CODE] the new instance of form2 throws a null exception error. But I think because form2 is not active. How do I work around this or is there … | |
Hello. I'm new to C++ and I just learned how to use vectors and lists and indices and iterators, but i'm confused about iterators. Mainly, why should I use them instead of indices? They seem to add more complexity to accomplish the same thing as using indices... so could someone … | |
Is there a way to wrap the text on the list box items, i.e. go to the next line, when they're too long for the box. A few of my items are too long to fit, so they are truncated. | |
Hello, I have created a program and i have managed to publish my application. I have set it up to be installed via CD but it does not attach the MSAccess DB. My question is how do I add the DB? | |
I have been asked to create a student database using linked list. this is the question given to me. Write a C/C++ program to perform the task of maintaining student information for 123 College. You are to use a linked-list for storing the students’ information. Each node of the linked-list … | |
Ok i have a char with ''/afile.html" assigned to it. The extensions of it can vary so i need to get the extension to a seperate char to compare it with something else il show you what i have.... Basically i need everything after the '.' [CODE]char resource[16]; n = … | |
Hi, This is my first post so please be gentle.. I am building a site that has 100 or so pages the majority detailing a seperate training course. I have a contact.php page where visitors can fill in there details as most sites. this then gets sent via a mailer.php … | |
hi can any one tell me how to make a profile page for my website i have been tring for a bit but just can not do it sort of new to php. i have a dater base called clubwigan with a table in it called wigan_users in that table … | |
the error by the compiler is [code=text]Compiler: Default compiler Building Makefile: "C:\Dev-Cpp\Makefile.win" Executing make... make.exe -f "C:\Dev-Cpp\Makefile.win" all g++.exe Untitled1.o plants.o -o "Project1.exe" -L"C:/Dev-Cpp/lib" Untitled1.o(.text+0x182):Untitled1.cpp: undefined reference to `Plants::Plants()' collect2: ld returned 1 exit status make.exe: *** [Project1.exe] Error 1 Execution terminated[/code] main code is [code]#include <iostream> using std::cout; using … | |
If a class doesnt override toString() method and tries to print out the object like this: //some class [code] public class SomeClass1{ int x=4; } //another class class DemoOftoString { public static void main(String[] args) { SomeClass1 o=new SomeClass1(); System.out.println(o); } } [/code] output:SomeClass1@hex version of object's hash code ------------------------------------------ … | |
Problem: Write a pgoramthat uses a structure to store the following information: Name, IdNum, Test1Score through Test4Score, average, and grade. function to ask the user for student's name, etc. The average score should be calculated and stored in the Average member of the structure should be calculated in their own … | |
Hello all, great forum that have been a great source of information for me over the past many weeks. So now I decided to join up. I am currently trying to write a partial sum function as part of a much larger program I once wrote in Fortran. I am … | |
hello please help me on this how to write on notepad....example input your first name input your last name input your middle initial input your address input your age this should be the ouput in notepad after inputting the data and this should be proper align .thanks in advance..hoping for … | |
I have a Samsung Ellix 20 Thermal Parallel Printer. Can you please send me some programming sample commands using VB6? Please help me. Thank you. | |
Dev cpp gives me the error 18 C:\Dev-Cpp\Untitled1.cpp request for member `setStats' in `plant1', which is of non-class type `Plants ()()' And the same for line 19. Please someone tell me what's wrong. I'm a noob at c++. Thanks in advance. #include <iostream> using std::cout; using std::cin; using std::endl; #include … |
The End.