199,114 Archived Topics
Remove Filter ![]() | |
When i run a black screen with cursor appears but nothing prints THANKS INTERFACE [code] //my_int_vector.h class my_int_vector { public: //destructor ~my_int_vector(); //copy constructor my_int_vector(const my_int_vector& b); //constructor that create an empty vector my_int_vector(); /*constructor that create an vector with capacity specified as a parameter but doesn't assign values to … | |
I have successfully load a dynamic array reading the numbers in a text file into form. But how can I save that array again into text file after I change some numbers. | |
Can someone tell me what's wrong with my program? import java.util.Scanner; public class TotalSales { public void getNumbers() { Scanner input = new Scanner( System.in ); double numbers[][] = new double[5][5]; int count = 0; // number of uniques read int x = 0; int y = 0; int productNum … | |
This is really frustrating me, I know it's something stupid that I missed. I have a combo box that loads all available fonts when the app starts up. When the user selects a font from the combo box, it should change the label to the font they selected. Here's what … | |
Hi, I am developing a lookup page i.e when i provide a zip code in the textbox and submit the button it should display the details like city,state etc. I've created two tables in the database, one with zip code and other with details city,state etc. how can i display … | |
Hello everyone, I'm learning JavaScript programming and I have a test to do. Will it be possible for someone to check what I've already written and let me know if I'm on the right track? In green are the questions asked and in red are my answers. I also put … | |
I am getting the following errors 25 D:\calculat.cpp expected `(' before "op" 49 D:\calculat.cpp expected `;' before "op" 53 D:\calculat.cpp `y' undeclared (first use this function) I partly suspect to change it to switch (op) but that gives more errors of the following 27 D:\calculat.cpp expected primary-expression before ':' token … | |
Hello, I'm working on a recursive loop subcategory system. The code below is ALMOST where I need it. The last thing I'd like to do is indent each subcategory based on levels deep, rather than just separate by commas. I can't seem to wrap my head around it. Any suggestions? … | |
Ok, I've got this code, it says that there are no main classes and that [I]public class Amicable[/I]; class Amicable is public, should be declared in a file named Amicable.java, but the file name is Amicable... Any help would greatly help me, since I have same prob. with another file>_> … | |
hello I have been doing a lot of Tkinter lately and I was wondering of there is a way i fit a scroll bar into a text wdiget using the .grid() method. right now the code i have writen is: [code]from Tkinter import * root = Tk() text = Text(root) … | |
Hello, I am a newbie a C++. I was doing a program where you calculate prime numbers, and it prints prime and non-prime numbers. Here is my code, [CODE]#include <iostream> #include <conio.h> using namespace std; main() { int n = 1; int i = 2; bool IsPrime; int Max; int … | |
Hi, I've beeb playing around a bit with files and stuff to learn some of the aspects of C#. In order to not make it too convenient and easy I opted for using a String to hold my path, and then use DirectoryInfo to use it. In one of the … | |
#include<iostream.h> main() { int opt,x,y,fact,ans; for(ans=opt;ans!=0;ans++) { cout<<"\n\t\t\t *******MENU*******" <<"\n\t\t\t[1] FACTORIAL OF A NUMBER" <<"\n\t\t\t[2] PRIME NUMBER" <<"\n\t\t\t[3] ODD OR EVEN NUMBERS" <<"\n\t\t\t[4] MULTIPLICATION TABLE" <<"\n\t\t\tYOUR CHOICE: "; cin>>opt; switch(opt) { case 1: { cout<<"\nThis program tells you the Factorial of the number you have input..."; cout<<"\nInput limit: "; cin>>y; … | |
I am currently developing a site that converts videos to a streaming format and plays these streaming videos. I am using ffmpeg as my conversion engine, and am encountering a couple issues. 1) I dont seem to be able to make the videos convert to .flv files. I have tried … | |
Not stuck and no real question, which is unusual for me. Just a comment. The 2nd term in a for loop establishes the condition under which the loop terminates. For example, this loop terminates when i increments to 5... for(i=0; i<=5; i++) { ... ... } It'll execute its contents … | |
Here is the code static void Main(string[] args) { int qty, prodNum; double totalRetail; Console.WriteLine("Enter product number 1, 2, or 3. "); prodNum = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Enter in quantity sold of this product or enter -1 to quit: "); qty = Convert.ToInt32(Console.ReadLine()); totalRetail = 0; while (qty != -1) { switch … | |
I'm using documentation on sun.com to try and learn Java. I was trying a simple Notepad type program but cannot get the menus to display. I'm receiving no errors and cannot figure out what I've done wrong and/or left out. [code] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class NotepadInJava … | |
Hi I have created a project using C# and SQL SERVER 2005. I want to deploy the project so that I can create .msi file. Can anyone help me with the steps I should follow to create the setup file? Also in which editor I should add then database and … | |
#include <iostream> using namespace std; class Fraction { public: Fraction() : num(0), denom(1) {} Fraction(int num, int denom) { setNum(num); setDenom(denom); } int getNum() const { return num; } int getDenom() const { return denom; } void setNum(int num) { this->num = num; } void setDenom(int denom) { if (denom) … | |
This is a method I used for adding a object, flightnode, into a linked list. Basically it takes in the value in and puts it in order based on the int flightno in the flightnode object. It works fine until a value needs to go at the end of the … | |
I have the following code that pulls data off a mysql database and stores it in a 2D array ($rows). But after I print the contents with a foreach loop I just can't seem to be able to use that array again! Can't figure out how to reset it (printing … | |
Hy there, I'm a newbie so be patient pls. I have a small but useful class (let's call it Class1), and another class, more complex (let's call it Class2). I need to use in the Class2 instances of the Class1. I need to declare objects of Class1 both in private … | |
I'm kind of stumped on a project. The purpose of the project is to decode a floating point number to find it's sign, exponent, and significand, etc... So far I've been able to get a user input float number into binary32 format using few lines of assembly code(professor told us … | |
I have a native code snippet that I am going to write in managed code instead. The native snippet code look like this: [code] std::string RClammer = "]"; std::string BigLine = "aaaaaaaa]aaaa"; int pos = 0; while(std::string::npos != (pos = BigLine.find(RClammer, pos))) { BigLine.insert(pos + 1, " "); pos = … | |
What are some good Unix application developer books? Thanks. | |
Hello everyone.. I'm a new user of python.. I have encountered a problem while trying to find the inverse of a matrix even after importing numpy and scipy. The error is: >>> a=[[[1, 2, 3], [2, 3, 4], [3, 4, 5]], float] >>> print a [[[1, 2, 3], [2, 3, … | |
I'm having trouble figuring out what exactly I'm missing in this Byte reversal method. For example is should take 0x01020304 and flip the bits to 0x04030201. I've attached my output giving the errors and here is my code: [CODE]/* * reverseBytes - reverse the bytes of x * Example: reverseBytes(0x01020304) … | |
Hi.. i'm basically a novice in php and have been trying to work out on a multiplication tables using textboxes (to arrive at the square of each number using loops). Given below is the code. Herein i'm not sure as to how to define the variable component which needs to … | |
This is an example of how to create your own custom button control with a specified visual style. It is intended for beginners and can be used at any discretion. [URL="http://rapidshare.com/files/279748515/CustomButton_Tutorial_C_.zip"]http://rapidshare.com/files/279748515/CustomButton_Tutorial_C_.zip[/URL] MD5: 663925296845ACF99AE1107FC18CA7B4 | |
ok so i have used ShellExecute() before but with a specific value eg. "http://www.facebook.com" but now i want this program to be more flexible and allow the user to put the website he wants to. the thing is i made a string like this [CODE]String ^URL; ShellExecute(NULL,"open",URL,NULL,NULL,SW_SHOWDEFAULT)[/CODE] this gives me … | |
hi everyone I'm really just looking for some help to get started really. I've done a postgrad in web design and multimedia however have had no luck getting relevant work yet. I've designed a small demo site which I've uploaded onto some free webspace however I want to expand my … | |
ok so i read about file I/O and the that only allows me to edit files... let's say i have a program that needs login info. the user creates his username and password and can then login with it. but when he closes the program, obviously the info. is lost.. … | |
i already have a running code regarding this, however, when i embed the database, it cannot access the next records...help pls.. ![]() | |
Windows: 98 2000 XP Home Vista Windows 7 -Thanks | |
Hi everybody, i was writing a small c++ class that uses a list as a data member , i then wrote a small print function to print the numbers in the list [code] #include <iostream> #include <string> #include <sstream> #include <list> using namespace std; class A { private: list<int> number; … | |
In my website on trip planner,I want that user can check if room is available or not...b/w particular dates.. how can i do this? also..how shud i create the database..??as in what atrributes shud i use? | |
I am about to convert this 2D vector to managed code where I instead will use a List<String>. The problem is that I dont know how to do that, I would be happy to see how that could be done. [code] std::vector<std::vector<string> > vector1(1000, std::vector<string>()); [/code] | |
Its been awhile since I have toyed around with java, so I'm a bit rusty. But decided to mess with it today. I have a jPanel that I will be adding objects to, but I want to add the in a new row each time a button is clicked. Anyways … | |
Hello, I need to create a function which takes parameters for a circle and checks if a given point(x,y) lies within the circle (or on the edge). Like this: [CODE]public static bool PointExistsInCircle(Double CircleX,Double CircleY,Double CircleRadius,Double PointX,Double PointY) { needs to return 'true' if the point is in the circle, … | |
![]() | Hi, I am new to Access 2007. I have two columns in my table, Make and Model. The Make column is a lookup from a Makes table which has different makes of computer (Dell, Toshiba, etc...) in it. I also have a Model column adjacent to it which is set … ![]() |
I need to build a program - hotel, which has from 1 to XXX rooms. It is ok, when I have only the: [CODE=JAVA]private static int[] array_of_rooms; <... CLASS CONSTRUCTOR ...> array_of_rooms = new int[size]; // Size is defined size, of rooms in the hotel. // Fill default room status … | |
I am having trouble understanding how to implement these problems in C using bit operators. I understand the basic logic gates and when I work them out on paper they work just not code wise. Any insight/help would be great. [code=c] /* * bitXor - x^y using only ~ and … | |
Here's a script I worked up to convert binary code into ASCII. Didn't work out an ASCII to binary conversion yet. | |
Hi , I am using an explode function to split some comma separated colors into a drop down list. [CODE]<?php // Split the string up into an array of values $dropdown_data = explode(",", $row_rsApparel['Item_Colors']); // Output a dropdown echo '<select name="color" id = "color">'; foreach($dropdown_data as $key => $value) { … | |
hi guys, Is there any tool for C# that shows the running fragments of source code at runtime or at least facilitate the navigation into source code I mean reading the source code. | |
I need a java script code tat changes the mouse pointer to an image of my choice when a button or an image is clicked .. Please help me out regards jai.. | |
I want to trigger an event when ever an item is changed in a combo box...how can i do it? what is the listener & action? thnkx in advance..... | |
Hi, everyone! I'm writing a program in C# that needs to know opened files in a Photoshop CS4 window. The old versions of Photoshop have a MDIClient window in the program that can be getted with GetWindow() and GetClassName() calls. So, I can get the name from the window title … | |
Hi everyone, I'm new here and I was really confused where to post this question but since I'm also confused about which programming language (C/C#) to use for image processing, I chose the C# section as I'm inclined to this option. However, I know a guy (experienced in this field) … | |
Hi, I am new to programming and am having trouble with this homework assignment. I am confused about how to implement the histogram and frequency. Any help will be greatly appreciated. :) [CODE] // Frequency distribution and bar graph program. User inputs 10 #s that range from 5-15 and is … |
The End.