199,111 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for biggie_011

Hi Guys, I'm trying to have the user enter an integer than an outline of a pyramid would be printed on the console. I just can't get the last line to print out with "*" all across. So say a user enters 5 I need the output to be: [CODE] …

Member Avatar for apines
0
125
Member Avatar for Roy1287

Hi. I'm new to this forum and to programming in general. This is my first programming class and it is in JAVA. I have been doing alright in the class, but am really struggling with this weeks program assignment. If you could help me out at all I would really …

Member Avatar for kramerd
0
831
Member Avatar for qvyhnl

Problem: write a function that returns a pointer to the maximum value of an array of double. I have written the code that return the maximum, but I don't know how to turn it into a pointer and return it =.= [CODE]#include <iostream> #include <string> using namespace std; const double …

Member Avatar for qvyhnl
0
114
Member Avatar for lu25

write a public class called IfElseDemo. Create a Method called go [I][B]that takes the args String array from the main method[/B][/I]. in that method create an if/else block that looks at the first element of the array and uses the string equals method to determine the output. if it contains …

Member Avatar for coil
0
135
Member Avatar for lochnessmonster

How do you all feel about class composition? say im making a class i would want to publish to the public for use...well if i perform class composition this means i would also have to implement the other classes/structs so the programmer can even properly use my class. Im just …

Member Avatar for mike_2000_17
0
192
Member Avatar for sravi.pearl

hai all , i have a string s= The POST variable NM_xwTapCtl%24_img_Banner is vulnerable.,The POST variable NM_xwTapCtl%24scrollTop is vulnerable. I dont know the procedure to modify that s to s = NM_xwTapCtl%24_img_Banner,NM_xwTapCtl%24scrollTop HELP ME PLEASE!!!!!!!!!!!!!!

Member Avatar for woooee
0
93
Member Avatar for brycematheson

I'm writing a program that will eventually be a Tic-Tac-Toe game, but as for now, I just want to get the layout done. Right now, all it does is read the game board from a file, display it, and then ask you where you want to save it afterwards. I'm …

Member Avatar for Greywolf333
0
703
Member Avatar for DallasFan3

Well I am now starting a new program and it evolves get the users height, weight, age and then calculating it into hat, waist, jacket sizes. I have to have four made methods in it also. One for each clothing size and on for asking the user if they want …

Member Avatar for Eric Cute
0
2K
Member Avatar for rlhh

First of all, thanks for any help that I'll receive. Now on to the question. I'm wondering how do I create an array of an object in C++? I've done this in Java before but I've got no idea how to do it in C++. [CODE] import Accout.java private Account …

Member Avatar for rlhh
0
205
Member Avatar for nettee

I am very new to js, getting very confused. I need three button's on the bottom using onclick.First button - change color scheme, second button - different color scheme and the third button - needs to return back to the original color scheme. thank you inadvanced [CODE]<html> <head> <title>My Table …

Member Avatar for nettee
0
86
Member Avatar for javajavajava

Hi, I need help in creating a never ending array using java. It should basically work like and ArrayList but should be done using arrays.

Member Avatar for Eric Cute
0
218
Member Avatar for mark2326l

This works in every browser I've tested except IE My .js [CODE]document.getElementById("location").innerHTML = object.city;[/CODE] My html [CODE]<div id="location" class='text1' ></div>[/CODE] I've spent hours searching the web, but have found no solution. Any advise? Thanks

Member Avatar for samaru
0
109
Member Avatar for jmcorpse

I need some assistance with my code. I figured it out and have it working for the most part. I just need some help in the carrying function where all the numbers that where added we carried over with paper and pencil type arithmetic. My biggest problem now is trying …

Member Avatar for daviddoria
0
100
Member Avatar for b_bayaraa_d
Member Avatar for MaryAnne19

Hi! Thanks for trying to help me! I'm building a program that will allow me to have a different form for each person in my database. When the program first starts, I want it to cycle through the database and open a form for each row (each person). I'm generally …

Member Avatar for MaryAnne19
0
171
Member Avatar for poorchap

(MOUSE CURSOR) Hello I'm wondering is it possible to set a condition if the mouse cursor's position changes or moves to a certain point , then it will execute a code like drag drop. Doing it on a windows form application

Member Avatar for poorchap
0
109
Member Avatar for ceyesuma

Hello. I have been reading some stuff on the action command pattern. ever heard of it? More inportantly, Do you understand it? Because I do not. although I would like to ask if the following class could use the command pattern as aposed to 'if" or "switch" statements. I understand …

Member Avatar for ceyesuma
0
120
Member Avatar for Judas543

To code pretty much makes a grid of a check board. However I want to modify it so if I click on any cell of the grid of the checkerboard it will display a red circle. If I click on a cell that already has a circle, it will remove …

Member Avatar for hanvyj
0
138
Member Avatar for Pinchanzee

I'm looking to re-order a table while keeping the table's id column constant. ie, Links has entries in no particular order, whereas LinksPopular is a duplicated table but I want it ordered by category X, while leaving the id category unchanged. That way the first most popular is at id …

Member Avatar for drjohn
0
175
Member Avatar for LuaMan

*sigh* I'm back again. Same program. Different problem. [CODE]private void executeToolStripMenuItem_Click(object sender, EventArgs e) { string aaa = String.Format(richTextBoxEditor.ToString()); /*<-- Guessing that this is redundant */ lua.DoString(aaa); //<-- problem code }[/CODE] When I attempt to execute the Lua code in the textbox, it crashes the program. Wat do?

Member Avatar for LuaMan
0
223
Member Avatar for clayton69692000

hi guys i really need some help. Im trying to turn my index array into a multidimensional array and cant get it to compile. thanx for the help. [CODE]include <iostream> using namespace std; #include <cstdlib> #include <cstring> #include <iomanip> const int LIMIT = 10; const int MAX = 10; class …

Member Avatar for jonsca
0
98
Member Avatar for LuaMan

I am trying to make a macro engine for a personal project, and it would work fine, except that the form won't show when I debug it. Take it for granted that I am using the LuaInterface DLL please. Code: [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; …

Member Avatar for LuaMan
0
349
Member Avatar for a_salted_peanut

Hi all, I am stuck on what 'should' be a fairly simple thing to solve, however after a good search i haven't got very far. Basically i am pulling data from a database which might have multiple lines of data, however for one particular task i only want to grab …

Member Avatar for a_salted_peanut
0
155
Member Avatar for Nathaniel10

I have a difficulty I need help to overcome. I am developing a program that uses more than 1 class. Variables defined in one class are used in other classes. For example: [code] class X1 { private: int a; int b; public; X1() { a = 10; b = 20; …

Member Avatar for Nathaniel10
0
153
Member Avatar for a-humam

[COLOR="Red"]Hello All Would you plz tell me how I can force a process to sleep for a specific period? i.e. I need an instruction similar to (Thread.sleep) Regards.[/COLOR]

Member Avatar for a-humam
0
91
Member Avatar for xcarbonx

Hi, im having trouble reading in lines of data using arrays and a structure. I believe my main problem is figuring out how to keep track of the lines read in, even if the whole array size isnt used up. Also, To break up each line I am trying to …

Member Avatar for alc6379
0
182
Member Avatar for triumphost

This is a program that is supposed to run on startup when the computer turns on... What I did was I put the name of the program in the RunOnce Registry key attached below... when u double click the key, it puts the program name in the registry telling it …

Member Avatar for triumphost
0
153
Member Avatar for markdean.expres

Does anyone know where I can find an absolutely free online tutorial on vb 2008 asp programming? I'd like to start learning web-based applications. Thanks!

Member Avatar for alc6379
0
91
Member Avatar for ironclads

I'm trying to get a VB.Net application to type into a file upload control field. The application currently navigates to the correct page, and clicks the "BROWSE" button so the "Choose File" window opens, but when I use SendKeys.Send( "Testing" ), nothing types into the field, even though the cursor …

Member Avatar for alc6379
0
184
Member Avatar for hacks14

heres the script basically it sets (supposed to) Local area connection ipv4 static ip address to 10.XX.XX.2 but it dosent work it works fine if you run cmd as addy and put the script in netsh interface ip set address "Local Area Connection" static 10.XX.XX.2 [code] Dim txtlen As Integer …

Member Avatar for alc6379
0
295
Member Avatar for programmer321

[code] Can any one guie me how to find yesterday's date (taking care of the leap years as well)in the format yymmdd using a shell script. Regards. [/code]

Member Avatar for cfajohnson
0
3K
Member Avatar for modesto916

Hi everybody, here i am again ¬¬, I am doing an exercise that ask me to write a program to calculate this constant: e = 1 + 1/1! + 1/2! + 1/3! ... The user need to input how much the program must calculate. I wrote this code, but i …

Member Avatar for modesto916
0
175
Member Avatar for jharter

Hi, In an old thread, it was explained how to replace a value in an array element. However, it does not work for me. Running my VS 2008 debugger, I can see that all variables are set and accurate, but the Array.Replace does not work. Any ideas? Here's my code: …

Member Avatar for alc6379
0
174
Member Avatar for aloha91

Hey guys, I am working on a program which allows me to create dance steps for a robot. I have 3 forms,namely movecategory.cs,arm.cs and head.cs. The movecategory.cs will have 2 buttons to access the other 2 forms arm.cs and head.cs. When I have chosen the direction of my head(e.g: 1), …

Member Avatar for alc6379
0
127
Member Avatar for CLina

Hello everybody! I have to Questions to ask please: 1) How can I find the maximum value in a single linked-list recursively? this is what I tried to do: int findMax(int key){ Node max=head; while (max != null){ if (max < max.getKey()) return(max.getNext()); } } it ends up to an …

Member Avatar for CLina
0
5K
Member Avatar for muppet

I have a query which generates an xml file from data collected. There are 2 columns in the data (reason, TotTime) but they are joined together into one column using the concat command. Currently the results are ordered by reason, but I want to limit my results to only the …

Member Avatar for muppet
0
143
Member Avatar for Aventurine

Hi there, would someone help me with this please? I accomplished this in the past and now cannot remember how I did it or find it on the web. Using a standard while loop I want to define a string prior and then add to it each time around I …

Member Avatar for Aventurine
0
9K
Member Avatar for sravi.pearl

Hai, can any one please help me to converts array elements to a single string For Example : Myarray = ['Mac','Windows','vista'] Ouput should be like id='Mac,Windows,vista' Pleaseeeeeeeee help me............

Member Avatar for TrustyTony
0
103
Member Avatar for Austinstig

I'm stuck. I currently have the following example file structure: X, Y, Z 0.000234E+04, 0.000244E+03, 0.000234E+04 0.000244E+03, 0.000234E+04, 0.000238E+05 0.000238E+05, 0.000244E+03, 0.000234E+04 I would like for the Scientific Notation to be converted to float or integer values: X, Y, Z 2.34, 0.244, 2.34 0.244, 2.34, 23.8 23.8, 0.244, 2.34 I …

Member Avatar for Austinstig
0
178
Member Avatar for auburner

I'm a newbie to Python and after much googling to no avail I wanted to see if I could get some help here. I'm trying to come up with a script to take lines from a textfile and insert them into specific places in another file. Here's a simple example: …

Member Avatar for TrustyTony
0
89
Member Avatar for Cort3z

Hi! I am working on an program that basicly needs a large list. The program works fine untill i comletely fill up the "List<Object>" type. And no, it is not due to lack of ram. The program tries to add more than System.Int32.MaxValue ammount of objects. I have thought about …

Member Avatar for Cort3z
0
3K
Member Avatar for extemer

i want to known that i am starting to work on chip programming so i cant understand my first step.The programming language on which i used to work is java and still working.so my question is that can i use c# to program a chip please let me knwn.thanks in …

Member Avatar for alc6379
0
132
Member Avatar for Smed

I'm looking for a simple way to modify a 2D list as shown below. Starting with a list such as this: 1,2,3 4,5,6 7,8,9 I want to create a list that looks like this: 1,2 4,5 7,8 1,3 4,6 7,9 Which is just the first and second column with the …

Member Avatar for Gribouillis
0
113
Member Avatar for arun_gan

I have this question that I've been trying to solve for the past hour but i've been getting it wrong, can someone help me? Question: Create a list of the odd numbers between 1 and n (include 1 as well as n -- if it's odd-- in the list). Associate …

Member Avatar for TrustyTony
0
2K
Member Avatar for coco24

The task is to be able to move the alien right, down, and left. So far all i can get the alien to do is move right and down. I need to get it to be able to move left. Can you help me please? import java.awt.Graphics; import java.awt.Image; /** …

Member Avatar for lee.j.baxter
0
410
Member Avatar for NathanMc

Hello. I'm running into a problem on an assignment I have for my C++ class. I've done similar things before with reading a file, but normally used a counter to know when to stop reading from a line and go on to the next, or code like this: [code] ifstream …

Member Avatar for hag++
0
177
Member Avatar for burcin erek

test program, dont understand after calling function it goes two times destructor "-5" is it wrong ? [CODE]#include <cstdlib> #include <iostream> using namespace std; class calculation { public: calculation(); // constructor ~calculation(); // destructor. }; calculation::calculation() { cout << "5"<<endl; } calculation::~calculation() { cout <<"-5"<<endl; } calculation function_one(calculation addition); int …

Member Avatar for burcin erek
0
100
Member Avatar for taylby

Hi; In need of some guidance. I have a form which has a list box upon it. with items in it. These items are dragged out of this and a custom control is added to the form. All this works fine. However a new requirement is that there should be …

Member Avatar for Diamonddrake
0
290
Member Avatar for sciprog1

Hello Members, Can anyone recommend any easy-to-use and free Java Script IDEs? Thank you!! sciprog1

Member Avatar for apines
0
98
Member Avatar for Xtremefaith

So let me start by saying I am new to PHP so any extra advice is helpful, working on a large scale personal project hoping to get better with PHP because of it. Now I have a script that displays my database just as I like, and next to each …

Member Avatar for hielo
0
4K

The End.