199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for lotrsimp12345

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 …

Member Avatar for mrnutty
0
253
Member Avatar for perumar

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.

Member Avatar for CodeDoctor
0
1K
Member Avatar for redrocket0274

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 …

Member Avatar for VernonDozier
0
107
Member Avatar for papanyquiL

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 …

Member Avatar for papanyquiL
0
115
Member Avatar for anetbegin

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 …

Member Avatar for anetbegin
0
110
Member Avatar for eclecl

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 …

Member Avatar for JugglerDrummer
0
120
Member Avatar for buriza

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 …

Member Avatar for NathanOliver
0
100
Member Avatar for carie

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? …

Member Avatar for carie
0
171
Member Avatar for DemonixXV2

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>_> …

Member Avatar for DemonixXV2
0
146
Member Avatar for The-IT

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) …

Member Avatar for The-IT
0
6K
Member Avatar for Doughnuts

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 …

Member Avatar for Doughnuts
0
284
Member Avatar for tiwas

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 …

Member Avatar for tiwas
0
111
Member Avatar for uNpReDiCtAbLe

#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; …

Member Avatar for sfuo
0
136
Member Avatar for thacravedawg

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 …

Member Avatar for thacravedawg
0
219
Member Avatar for Frederick2

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 …

Member Avatar for Frederick2
0
126
Member Avatar for jp12861

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 …

Member Avatar for papanyquiL
0
75
Member Avatar for kahaj

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 …

Member Avatar for majestic0110
0
237
Member Avatar for S2009

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 …

Member Avatar for mac1546
0
464
Member Avatar for jdub69420

#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) …

Member Avatar for StuXYZ
0
128
Member Avatar for DeadJustice

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 …

Member Avatar for StuXYZ
0
109
Member Avatar for decimo

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 …

Member Avatar for edwinhermann
0
494
Member Avatar for julia2009

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 …

Member Avatar for StuXYZ
0
199
Member Avatar for JainishP

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 …

Member Avatar for JainishP
0
190
Member Avatar for Darth Vader

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 = …

Member Avatar for Darth Vader
0
282
Member Avatar for serkan sendur
Member Avatar for esash

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, …

Member Avatar for vegaseat
0
157
Member Avatar for jralexander137

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) …

Member Avatar for codeguru_2009
0
241
Member Avatar for chandervijay

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 …

Member Avatar for chandervijay
0
255
Member Avatar for papanyquiL

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

Member Avatar for serkan sendur
0
210
Member Avatar for evilguyme

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 …

Member Avatar for evilguyme
0
482
Member Avatar for chicaloca

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 …

Member Avatar for chicaloca
0
228
Member Avatar for evilguyme

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.. …

Member Avatar for evilguyme
0
172
Member Avatar for xuexue

i already have a running code regarding this, however, when i embed the database, it cannot access the next records...help pls..

Member Avatar for diafol
0
115
Member Avatar for stoymigo
Member Avatar for I_Empire

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; …

Member Avatar for I_Empire
0
174
Member Avatar for shweta_babbar

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?

Member Avatar for wilch
0
106
Member Avatar for Darth Vader

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]

Member Avatar for Darth Vader
0
1K
Member Avatar for KirkPatrick

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 …

Member Avatar for KirkPatrick
0
123
Member Avatar for MervinKoops

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, …

Member Avatar for MervinKoops
0
185
Member Avatar for Dukane

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 …

Member Avatar for Dukane
0
416
Member Avatar for Xamas

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 …

Member Avatar for VernonDozier
0
2K
Member Avatar for jralexander137

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 …

Member Avatar for jralexander137
0
914
Member Avatar for itsjareds

Here's a script I worked up to convert binary code into ASCII. Didn't work out an ASCII to binary conversion yet.

Member Avatar for digital-ether
0
996
Member Avatar for nigelsponge

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) { …

Member Avatar for nigelsponge
0
429
Member Avatar for MxDev

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.

Member Avatar for papanyquiL
0
137
Member Avatar for jaimca

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..

Member Avatar for serkan sendur
0
137
Member Avatar for jrosh

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.....

Member Avatar for majestic0110
0
277
Member Avatar for GDICommander

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 …

0
175
Member Avatar for august_2007

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) …

Member Avatar for kvprajapati
0
383
Member Avatar for mz_rigel

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 …

Member Avatar for Tom Gunn
0
200

The End.