132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mystycs

If statement acting weird. For some reason if in the IF statement `if ( choosePositionX )` goes to else which tells the user the other player already made the move it goes into the next if `if ( choosePositionO )` and prints out the else in that one. How can …

Software Development c++
Member Avatar for mystycs
0
128
Member Avatar for tyricec

I'm trying to make it where I can draw an square with the values in the global array. I made it work without vertex array before but now I need to save it in array so I can possibly delete a square with just a mouse click. However I can't …

Software Development c++ display opengl
Member Avatar for tyricec
0
128
Member Avatar for Labdabeta

I need to convert a true type font into a list of three dimensional vertices using openGL. I looked at the NeHe tutorial, but it only creates a display list from the font and as far as I can tell it is not possible for me to extract the vertices …

Software Development c++ opengl
Member Avatar for Labdabeta
0
120
Member Avatar for jdh1231

Right now, I am learning how to use an Array. How the program should work is, I declare how many numbers I want to input, and then, put numbers in. At last, I can choose either find the maximum, sum, or product. The program seems right to me but it's …

Software Development c++
Member Avatar for jdh1231
0
401
Member Avatar for Ruben1123

[CODE]public class Order { private int widgets; private double price; public Order(double undiscountedUnitPrice) { price = undiscountedUnitPrice; widgets = 0; } public void addWidgets(int quantity) { widgets = widgets+quantity; } public double getTotalPrice() { return price*widgets; } public double getUnitDiscount() { if(widgets>10000) { if((widgets-10000)/1000>47.5) double toTakeOff = (((widgets-10000)/1000)*.10); price = …

Software Development java
Member Avatar for Aviras
0
165
Member Avatar for jenbrandau341

Here is my project: Write a program that dynamically allocates an array large enough to hold a user defined number of structures (string name and three double tests). Using a function, the user will enter a name and 3 test scores for each element in the array. Using another function, …

Software Development c++
Member Avatar for WaltP
0
233
Member Avatar for dragon_chick

Ok, so for this assignment, we were given a program and a class. We have to find where the program code needs modified and make the changes necessary to use the class. [CODE]/****************************************************************************** Programmer: Date: November 6, 2011 Compiler: Cisual C++.NET Source File: hw7.cpp Action: Reads words from stdin and …

Software Development c++ ios
Member Avatar for Moschops
0
304
Member Avatar for TigerTeck

Directions...Write a program SumOfOdds that has one main method that asks the user to input two odd integers where the first is smaller than the second. The program ouputs the sum of all the odd integers from the smaller output to the larger output. You must use a while loop …

Software Development java
Member Avatar for TigerTeck
0
169
Member Avatar for dennysimon

hello all I have one textField and one textArea. How to move the cursor to the end of Text of TextArea when -cursor is in textField,and keyboard [Enter] pressed thank you denny

Software Development java
Member Avatar for dennysimon
0
189
Member Avatar for vegaseat

I am still trying to take a look at the gtk GUI package and reinstalled the following: gtk-win32-devel-2.8.6-rc3.exe and pygtk-2.8.2-1.win32-py2.4.exe (updated version) I have it down to a simpler error message now. Here are my warnings and errors with the sample file base.py [code]Traceback (most recent call last): File "D:/Python24/Atest/Demo/pyGTK/base.py", …

Software Development gui python
Member Avatar for vegaseat
0
300
Member Avatar for valestrom

Hi, I'm trying to make a set of monsters that have values that can be loaded. Like a Goblin having enemyhealth = 50, enemydamage = 15, etc. Here's what I kinda have an idea of doing... But I really have no idea how to use it. (File containing values for …

Software Development c++
Member Avatar for valestrom
0
296
Member Avatar for Tomie

I started taking a "introduction to programming" class a month ago, and the introductory language we are using is Python. Because I have never programmed before and only have a month's worth of experience with Python, please forgive my mistakes. So basically, here's the prerequisites to the "Piglatin Translator" assignment …

Software Development python
Member Avatar for woooee
0
860
Member Avatar for zack_falcon

Log In Failed for User '' The user is not associated with a trusted SQL Server connection Well, that's the full title of my problem. I'm working on a C# program that supposedly could access a database run by SQL Server Express. I know the program works, because it works …

Software Development c c# c++ sql
Member Avatar for lolafuertes
0
1K
Member Avatar for bbman

With the command"NumericUpDown Control" I would run a command based on the number selected in NumericUpDown Control example If I select the number 5 in the Control NumericUpDown instruction must be repeated 5 times/x5 PS: sorry for my English but I am Italian

Software Development
Member Avatar for bbman
0
113
Member Avatar for bjwittrock

I'm currently working on a implementing a matrix inversion method for a Matrix class in C++. One thing that isn't implemented is a check for when the pivot element is 0, meaning I will need to swap the rows (likely with the row just beneath it). Here is what I …

Software Development c++
Member Avatar for mike_2000_17
0
212
Member Avatar for kurohige

[CODE]If minutes > 1 Then ProcessTerminate (FindWindow(vbNullString, "King Kong V-1.4")) Shell "I:\DISTRIBU\Quality\RIMData\Monkey\KingKong.mdb" End If[/CODE] this will restart the application.. i'm terminating the app but i can't get it to start again.. any suggestions? thanks

Software Development vb.net
0
65
Member Avatar for pseudorandom21

Is there any reason I'm missing as to why not many languages let a programmer create a table of constant information at compile time? Something like: [code] public const Dictionary<string,decimal> SOME_DICT = new Dictionary<string,decimal>( {"A", 1.9}, {"B",2.3}, {"C", 4.4444} ); [/code]

Software Development c c# c++
Member Avatar for thines01
0
136
Member Avatar for rexdon

i want to add a word document into c sharp code as reference..and while clicking a button in the form,the word file has to get opened..

Software Development
Member Avatar for tgreer
0
368
Member Avatar for ramy84

HI, i am writing a program to enter monthly grocery items, purchase date and price. as part of program i have written to enter the data, write the entered data to a text file and read the existing data from the text file. [CODE]using System; using System.IO; using System.Collections.Generic; using …

Software Development
Member Avatar for thines01
0
1K
Member Avatar for ram619

Can you please tell me how is the processing of this code taking place. Because its giving a fixed address same as mentioned in the book. The Answer to this question is Address of i=FFE4 value at ptr =10 Address of j=FFE2 value at prt=20 how come addresses are these, …

Software Development c c# c++
Member Avatar for ram619
0
152
Member Avatar for Jessurider

can anyone tell me how to make appear a jframe in a slow motion in java i'm using netbeans editor..............

Software Development java java-netbeans
Member Avatar for NormR1
0
416
Member Avatar for iGuardian

This is the question: Define a function that takse a partially filled array of numbers as its arguments and returns the standard deviation of the numbers in the partially fille array. Since a partially filled array requires two arguments, the function will automatically have two formal parameters: An array parameter …

Software Development c++
Member Avatar for iGuardian
0
368
Member Avatar for sorrow0o

Hey folks, First poster here :icon_cheesygrin: So we got an assignment and part of it is, to write a stack with an array. So far so good, but I'd like to use a dynamic array that doesn't need the user to input any size. [CODE] void init() { int i; …

Software Development c++
Member Avatar for Narue
0
96
Member Avatar for fsefsef23

I have a program that is supposed to count the number of 'comparisons' during a selection sort. I'm having trouble trying to determine what a 'comparison' is considered! It runs the sort properly and sorts in ascending order, but I'm not sure where to put the comparison counter. I'm wondering …

Software Development c++
Member Avatar for Narue
0
533
Member Avatar for wnr78ta

I have a simple doubly linked list for a class I am in and I keep getting a seg fault on my last line of code, no matter what i make it. I can put a bunch of random couts and it will print them all then on the last …

Software Development c++ linked-list
Member Avatar for wnr78ta
0
718
Member Avatar for Dakot

Hello all , i have a small problem , i'm writing now a voting program , and i'm a little bit confused , how can i attribute the votes to a certain person? i mean , i enter the value 1 , and this vote must go to the first …

Software Development c c# c++
Member Avatar for Narue
0
102
Member Avatar for tedman102

I have made a program to make a rectangle in a text matrix. It begins asking for width and height. The variable must be greater than 2 and a whole number. The only problem is if a user enters a character instead of a number, or a decimal instead of …

Software Development c++
Member Avatar for Narue
0
266
Member Avatar for sike.mausa

[B]I have been given a chunk of code from my teachers, and I just need help getting it to run. I'm very new to java so any help is much appreciated. Here it is:[/B] [code] import java.util.*; import java.io.*; public class CourseStats { static String[ ] studentNames; static int[ ][ …

Software Development java
Member Avatar for sike.mausa
0
616
Member Avatar for Asotop

Hey! I'm trying to create a program which can multiplicate complex numbers. For example. (1+2j)*(3-4j)= 11+2j What would be the best way to split up the equation (1+2j)*(3-4j), so i can persom the calculations? I tried using the split method but I just got stuck, since i couldn't make it …

Software Development
Member Avatar for gusano79
0
165
Member Avatar for MORFIOUS

m beginner in c# i got periodic table project from here [url]http://www.daniweb.com/software-development/csharp/threads/379733/page2[/url] my prob is this is totally code based and hard to editable for me since m newbie .... windows form is empty but output comes in proper form ,.......... i want to drag that output form into form1.cs …

Software Development
Member Avatar for jbisono
0
153
Member Avatar for smmcfarl

I am having trouble inputting sample data into an array and am wondering what I need to do to correct this? The input sample is like this: 3 7 9 3 8 2 10 11 4 14 This is the code I am using and is not working. The MAX_SIZE …

Software Development c++
Member Avatar for smmcfarl
0
92
Member Avatar for dhsn

I would like to find a c compiler for windows 7. So far I have tried 3 and all get the message that "this program is incompatible with windows". Any suggestions? dhsn

Software Development c
Member Avatar for nilay2141992
0
306
Member Avatar for empyrean

Hi I am trying to run this C code in Visual Studio along with a set of Cpp files. It gives the below errors error 2143 : syntax error : missing ')' before '&' error 2143 : syntax error : missing '{' before '&' error 2059 : syntax error : …

Software Development c opengl visual-studio
Member Avatar for gusano79
0
273
Member Avatar for devjeetroy

So I'm making a text editor with syntax highlighting. I'm subclassing richedit and using drawtext to overwrite(Exactly like in Iczelion's tutorials). I was trying to solve the highlighting part, and up till now, I've managed to paint over all of the text(no syntax discrimination). But I've run into a strange …

Software Development c++ windows-api
0
123
Member Avatar for stereomatching

Boost provide us [code]is_base_of[/code] and [code]is_polymorphic[/code] Yet the dynamic type need to be deduce on running time What kind of situations would you use [code]is_base_of[/code] and [code]is_polymorphic[/code] to replace dynamic_cast? Thank you very much

Software Development c++
Member Avatar for rubberman
0
141
Member Avatar for jonnyboy12

Hello. I have a game with code like this. [CODE] class manualSetPosition{ public: Ogre::ManualObject * manualDebugger; void SetPosition( Ogre::ManualObject * manual, Ogre::Vector3 mousepos ){ manual->position(mousepos); }; }; [/CODE] Thats a class I use to draw a grid. I build it like this in my project. [CODE] manualSetPosition ManualSetPosition[1226]; [/CODE]this works …

Software Development c++
Member Avatar for nickcampau
0
136
Member Avatar for katarey

Hello Friends, I have developed a windows application using C#, its installed on [code]C:/program files/application folder/application.exe[/code] I have not used Data base so i have used files (CSV/TXT) for storing data, there is many types of files generated by application and some application setting variables are also stored in a …

Software Development file-system printer
Member Avatar for boyans
0
202
Member Avatar for kab5zb

I was wondering if someone could help me write the code for this... I have a text file with 10 lines, one word on each line and I am trying to get a word from a random line and then cout that word. Can anyone help?

Software Development c++
Member Avatar for thines01
0
191
Member Avatar for subone

Hi, I am making a program where the user has to input an integer with LESS than 5 digits. If he enters more than 5 digits, I want the program to print: "ERROR" How can I do that? I wrote this code till now. Do I have to use a …

Software Development java
Member Avatar for JamesCherrill
0
3K
Member Avatar for maria536

Ok, I worked on my code so that I can repost it here. This is what it has to do. I also need a static cast which I am not sure where to put it. Thanks for any help!!!! Users should enter each number at an input prompt, then enter …

Software Development c++ storage
Member Avatar for maria536
0
142
Member Avatar for duttydane

Create a class called “PROCESSINTEGER” for comparing two INTEGERS. Provide member functions input, isEqualTo, isNotEqualTo, isGreaterThan, isLessThan, isGreaterThanOrEqualTo and isLessThanOrEqualTo. The predicate functions simply returns 1 if the relationship holds true between the two Integers and returns 0 if the relationship does not hold. Also, provide a predicate function isZero. …

Software Development c c# c++
Member Avatar for tkud
0
160
Member Avatar for jpd5066

I am assigned the sort-of famous RMS assignment. This is what I have so far, it is just beating me. My biggest confusion is how to add the entries up. I think I will okay with squaring them, dividing the total and obviously the sqrt() at the end. [CODE]#include <iostream> …

Software Development c++
Member Avatar for jpd5066
0
576
Member Avatar for <HHH>

hello ! im trying to read few numbers from a file and but each line of numbers in diffrent array now i can read the numbers but in one array any help here is the code [CODE] public static void main(String[] args) throws IOException { File number = new File …

Software Development java
Member Avatar for <HHH>
0
106
Member Avatar for ntrncx

hey all i am studying from a book,and i have to do an exercise. i dont want code or anything i want tip or someone explain me how to do it. i have a oldmast.dat file with some records a trans.dat file with records and i have to update the …

Software Development c++ ios
Member Avatar for ratatat
0
743
Member Avatar for shady05

i am creating an audio Player . I just wanted to implement this particular iTunes software feature i.e COVER FLOW , in which songs appears in thumbNails and with the help of left & right arrow keys we could scroll the playlist I was wondering if anyone could help me …

Software Development audio ide java
Member Avatar for shady05
0
127
Member Avatar for BuhRock

So I have to program this MVC GUI of a checkout line. I have a gui that has 10 registers. Each register has a queue of customers. There is a button that when clicked, will generate a customer and the customer will be entered in the line with the shorted …

Software Development gui java java-swing queue
Member Avatar for JamesCherrill
0
213
Member Avatar for pankeel

how to access the running internet explorer in vb.net if my internet explorer open then how to use this internet explorer in vb.net thnks in advance

Software Development vb.net
Member Avatar for Pgmer
0
240
Member Avatar for adobe71

How to replace '/' to '//' in database path,after selecting it from openfiledialog() control. From [CODE]OleDbConnection con = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:[B]\[/B]Documents[B]\[/B]Visual Studio 2008[B]\[/B]WebSites[B]\[/B]myproject[B]\[/B]db[B]\[/B]mobile.mdb");[/CODE] To [CODE]OleDbConnection con = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:[B]\\[/B]Documents[B]\\[/B]Visual Studio 2008[B]\\[/B]WebSites[B]\\[/B]myproject[B]\\[/B]db[B]\\[/B]mobile.mdb");[/CODE] using button click

Software Development visual-studio
Member Avatar for Antenka
0
237
Member Avatar for Azmah

I'm looking at getting started with [URL="http://www.wxwidgets.org/"]wxWidgets[/URL]. I currently use Dev C++ as my IDE for C++ coding. wx Widgets looks very promising and could speed up my development if used. Though what the site doesn't state (at-least none that I've found) is whether it's an IDE of its own …

Software Development c++ ide
Member Avatar for Azmah
0
486
Member Avatar for Despairy

after vising cplusplus site and checking my book i havent found any example or explanation... so here it is: i have a function called "string stringreturn()" now inside i have INT LIFE , and INT NUM i would like to return the following "blabla bla (INT LIFE VALUE) bla bla …

Software Development c++
Member Avatar for jwenting
0
249

The End.