43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for DemonGal711

I have to write a code that will produce a 2^n by 2^n board and then fill it (filling it isn't important, I think I got that down). Now, since my board is dynamic, any suggestions on how to deal with this. I'm passing my array from my main function …

Software Development c++
Member Avatar for DemonGal711
0
122
Member Avatar for 3Dees

Hey, Can someone explain to me how this function works in relation to a GUI output. Public Overrides Function ToString() As String My program do some calculation and conversions and displays the resluts in a list box. I need use this function but i am not sure how it affects …

Software Development gui vb.net
Member Avatar for Teme64
0
190
Member Avatar for leegeorg07

hi again after watching the film 'war games' i decided i would try to create logic games, i want to start out simply with something like noughts and crosses. but i have no idea how to start so any advice would be appreciated. thanks in advance leegeorg07

Software Development python
Member Avatar for shadwickman
0
104
Member Avatar for PaladinHammer

Hey guys, pretty confused about what a "pass-by-reference" function is and does. No one will put it into simple English for me and Google has become my worst enemy on the topic. What the Program has to do is convert the five-numbers of a zip code (for example: "64110") into …

Software Development c++ visual-studio
Member Avatar for PaladinHammer
0
153
Member Avatar for mathrules

I am writing a program that reads in from a file (60,000) words. I think I got my code figured out except for the getline part. I will show you what I have ...what am i doing wrong with the getline part? [code] [code=c++] #include <iostream> #include <string> #include <fstream> …

Software Development c++
Member Avatar for sidatra79
0
196
Member Avatar for intelli

can anyone help me with starting this program i have no idea how to start it. Design and implement an application that reads an integer value representing a year from the user. The purpose of the program is to determine the year is a leap year in the Gregorain calender. …

Software Development java
Member Avatar for intelli
0
159
Member Avatar for kasp4me

Hello, if anyone can help I'd greatly appreciate any input! I am of course another newbie and attempting to compile the Inventory program - it contains arrays and I am trying to create a method to calculate the total inventory which is contained within the array named sumInventory[] Here's the …

Software Development java
Member Avatar for kasp4me
0
150
Member Avatar for danfi766

[B]******************************[/B] [B]Sorry guys this works I tested with bad values[/B] [B]******************************[/B] Hello I'm having trouble with this function i have a list with dicts and I'm trying to make a search in the list. The problem is that my function doesn't return the list even though i know the values …

Software Development python
Member Avatar for Gribouillis
0
114
Member Avatar for BestJewSinceJC

Ok so lets say I have any GUI that needs its contents changed while it is running, so that it will re-display the new contents. An example would be a JTable that just lists things from an ArrayList. So if I had an ArrayList<GroceryList> my JTable might have Cheese Crackers …

Software Development gui java
Member Avatar for sanaulla123
0
7K
Member Avatar for lllllIllIlllI

Hi Im pretty new to the whole C++ programming language but after learning python and java i decided to give it a go. I have been using tutorials at [url]www.cplusplus.com[/url] and that has been working fine but i came across a bit of code today i couldn't understand. It went …

Software Development c++ python
Member Avatar for lllllIllIlllI
0
145
Member Avatar for dmanw100

I am writing a program using strings to pass messages into SDL functions. For some reason the compiler will not let me create any string objects though. I get a 'string' undeclared error when I try to compile this code: [CODE]#include "SDL/SDL.h" #include "SDL/SDL_ttf.h" #include <string> int errorMessage(int errorNumber) { …

Software Development c++
Member Avatar for dmanw100
0
156
Member Avatar for alin_yuhee

i'm trying to make a geme with c++ but i can finish it because i have trouble with the code :( .....this is the code of the game that i want to make.... [code=cplusplus] #include<iostream.h> #include<conio.h> #include<graphics.h> //using namespace std; int main(void) { double pos_x,i_pos_x,pos_y,i_pos_y,vel_x,vel_y; double time,gravity ; //t=time,g=gravity int …

Software Development c++
Member Avatar for alin_yuhee
0
116
Member Avatar for Liszt

With the code below I want to execute a task if the day is saturday and if the minute is >= 14. There is 2 things I wonder here. The code below is an infinite loop that never stops. So it checks for if this criteria is true but when …

Software Development c++
Member Avatar for Liszt
0
183
Member Avatar for maori

Hi Guys is there a way to incorparate the ping function into a app what i want to do is when the user trys to connect it opens a window and displays 1, pinging "ipaddress" and if succesfull displays connecting to host ie "ipadress" from above but if no ping …

Software Development c++
Member Avatar for maori
0
343
Member Avatar for ezkonekgal

i don't get it how do you create a text file? i've read some tutorials but still can't understand.. some1 help me?

Software Development java
Member Avatar for stultuske
0
106
Member Avatar for hisheeraz

Hello friends, can somebody please tell me how can i implement scroll bars onto a form so that i can put more controls on it... please hlp. ta

Software Development vb.net
Member Avatar for hisheeraz
0
138
Member Avatar for NinjaLink

Hello all... I'm having a few problems with my program. I will list the problems that I need help with.. 1) I need help printing out the highest testScore (I'm am getting garbage numbers) 2) I need help printing out the person's name in my input file who has the …

Software Development c++
Member Avatar for NinjaLink
0
134
Member Avatar for cknapp

So, I figured a fun little waste of time would be to write quicksort in scheme. I have my code below, poorly documented. Basically, it takes the first element as the pivot (for simplicity), and then there's a method which returns a pair which is ( (list of everything smaller …

Software Development
Member Avatar for cknapp
0
1K
Member Avatar for jdoneth

I have been using the below SELECT string for some time and it has worked well, I now need to add a SUM and GROUP BY to this string and have not been able to get it to work. Dim selstrHISTORY As String = "SELECT history.route_no,history.Acct_no,history.Post_date,history.tran_code," & _ "history.Amount,SUM(history.Amount),SERVICE.parcel FROM …

Software Development sql vb.net
Member Avatar for timothybard
0
98
Member Avatar for teddybouch

I just downloaded Visual C++ 2008 Express Edition and I'm trying to edit some old code for a lab that I am TAing. I took all the code and put it in a new project, since several of the old libraries will change and since I don't have them on …

Software Development c++ visual-studio
Member Avatar for Sci@phy
0
782
Member Avatar for Blackeagle

Hey, i'm trying to use the method [ICODE]getValueAt(int row, int column)[/ICODE] from [ICODE]Class DefaultTableModel[/ICODE]. This method returns [B]Object[/B] value, but i want to get an [B]int[/B] value. so can anyone suggest what class to use in order to convert the [ICODE]Object [/ICODE]value to [ICODE]int[/ICODE] ?

Software Development java
Member Avatar for Ezzaral
0
135
Member Avatar for NinjaLink

My program runs fine. The only problem is at the bottom of my "[B]insertAt[/B]" function. I am trying to insert a number to the array. Whatever number I insert, it keeps appearing at the [B]front[/B] of the array instead of the position I want it to. For example: Original Array: …

Software Development c++
Member Avatar for NinjaLink
0
415
Member Avatar for AKJo

Suddenly there is at least one line in my Delphi 2007 source code that is ignored when I single step through the program. If I set a breakpoint on it the line goes all green and execution will not stop at the line. There is no blue dot to the …

Software Development delphi pascal
Member Avatar for LizR
0
110
Member Avatar for sarifah

hi i have a problems. can anyone help to settle this problem? for exp; a person will know about their status that he must pay the fines he borrow my pencil.after 3 days, he must pay the fines. 1 late day, he must pay rm1. it will also automatically calculate …

Software Development visual-basic
Member Avatar for Teme64
0
102
Member Avatar for clutchkiller

it isnt clrscreen; cause thats not working. Can anyone refresh my memory? thanks

Software Development c++
Member Avatar for iamthwee
0
98
Member Avatar for mrboolf

Ok, sorry to bother but it seems I don't understand this properly ^^" I have a simple class, SLListNode, as follows [CODE=C++]template <class D> class SLListNode { public: static int Count; D Data; SLListNode *Next; SLListNode(void); ~SLListNode(void); }; template <class D> int SLListNode<D>::Count = 0; template <class D> SLListNode<D>::SLListNode(void) { …

Software Development c++
Member Avatar for mrboolf
0
84
Member Avatar for jammiedude

Hello, if anyone can help with this I would much appreciate it. I am writing a macro within vba for excel, and i have successfully managed to use the shell command to call my batch file but, how would i program the rest of the macro to carry on when …

Software Development visual-basic
Member Avatar for jammiedude
0
222
Member Avatar for winky

Hey everyone, I am trying to convert the members of a string into their integer values, but not ASCII values. For instance, if I have the string "12", I want the following portion of the code to spit out 3, but instead it spits out (49+50=99) for the ASCII values. …

Software Development java
Member Avatar for javaAddict
0
117
Member Avatar for clutchkiller

[Linker error] undefined reference to `add()' Can someone explain that a little? Do i need to include my code to help you guys explain? Thanks

Software Development c++
Member Avatar for clutchkiller
0
67
Member Avatar for n8thatsme

Ok well I have 4 char arrays. Each array has predefined words in them. For example: [CODE] char *article[MAX_ARTICLES] = { "the", "a", "one", "some", "every", "any" }; [/CODE] I'm trying to make random sentences as defined by the user. So if they type in the value 567 or whatever …

Software Development c++
Member Avatar for n8thatsme
0
169
Member Avatar for afg_91320

hey guys its me again with the rock paper scissors game. well after spending the whole day on it (ok not really) i was able to write a proper code for the game that would ask user for their input and randomly select one for the computer. now it should …

Software Development c++
Member Avatar for chococrack
0
131
Member Avatar for ahamed101

Hi, For last one week I have been trying to do conversions between UTF8, Multibyte, Wide Character and Ascii... Finally managed to code a working program... Thought this might help some one, so posting it here... If there are any errors, please point out... If you have any doubts please …

Software Development c
0
169
Member Avatar for JimD C++ Newb

Hello all!!! First off, I'd like to say THANK YOU for such a great site. I've learned a lot here in the last 2 months! I'm currently in a Data Structures class and our current assignment is: Read data from a .dat file (name, address, phone #) and store the …

Software Development c++
Member Avatar for JimD C++ Newb
0
109
Member Avatar for Freaky_Chris

Hi, i'm havnig problem with calling CreateThread. The problem is that it gives me a conversion error from const void* to void* [CODE=Ccplusplus]DWORD dwThreadId; HANDLE myThread; myThread = CreateThread( NULL, 0, MyThreadFunction, "HELLO", 0, &dwThreadId); [/CODE] dwThreadId id is the problem, the function is supose to take a pointer to …

Software Development c++
Member Avatar for Freaky_Chris
0
276
Member Avatar for polo_coins

I have some code bellow enum Part ( center,north,south); ...... how can i to prevent from an user to enter a data out of range of this enum group. I mean if he/she type 3 or 4 Thanks Sergey

Software Development
Member Avatar for polo_coins
0
78
Member Avatar for tcoma4x4

Hello All, I have a question and need some help with a c# console application project that asks the user to enter the number of rows to calculate and display Pascal’s Triangle. What I really need help with is how to properly format the output in the shape of a …

Software Development c# pascal
Member Avatar for tcoma4x4
0
251
Member Avatar for afg_91320

im making a program that will let you play rock paper scissors with the computer. the code will be in function format with a switch statement for the menu. this is how it should look: welcome to rock paper scissors! select a choice 1. rock 2. paper 3. scissors 4. …

Software Development c++
Member Avatar for kenji
0
348
Member Avatar for priti_s

Hi I have come across a question in a collection which says: One can add a reference of a collection to itself. Is it true or false? I read the explanation that, we can add the reference to the collection to itself, but it results in the [U][B]stack overflow of …

Software Development java
Member Avatar for Ezzaral
0
121
Member Avatar for Nemoticchigga

I want to delete a bitmap. How do I do this in c++. DestBitmap->Save("TempImage2.bmp"); . . . . . //later something like Delete("TempImage2.bmp"); is there a way to do this. thanks, nemo

Software Development c++
Member Avatar for Liszt
0
129
Member Avatar for TheBeast32

Hi, I was reading something that said goto was bad. Why is it a bad practice to use it?

Software Development c++
Member Avatar for Narue
0
126
Member Avatar for sonia sardana

I have two buttons Play & Full Screen. If u click on Play Button,Movie starts..Movie Starts within 15-20 Seconds.....When u clik on Full Screen Button.,Media Player is Maximised. I want the if the media player is maximised,& when we click on ESC Button, Media player is minimsed.......But I m nota …

Software Development vb.net
Member Avatar for sonia sardana
0
473
Member Avatar for kenji

Hey guys I'm having a strange problem with my program and I'm not sure how to solve the problem. I have a function which takes an array clears multiple white spaces to make a sentence so [code=CPLUSPLUS] "abc def ghi" //becomes "abc def ghi" [/code] and it returns the length …

Software Development c++
Member Avatar for stilllearning
0
76
Member Avatar for DemonGal711

Okay, I know what's wrong with my program but I don't know what to do to fix it. I have to take a program we previous made and make it a template class. Okay, sounds easy enough. I know all the writing it right cause it ran fine before, now …

Software Development c++
Member Avatar for Alex Edwards
0
3K
Member Avatar for kittycat07us

Hi, I'm having trouble coming up with a function that scans a word, starting from bit StartingBit, until the first zero bit is found. The function is suppose to return the index of the found bit and if the bit at StartingBit is alrieady what sought, then startingbit is return. …

Software Development c++ os-x
Member Avatar for Alex Edwards
0
414
Member Avatar for shopnobhumi

I need to write a program where it would ask the user to enter a positive even number,when entered if wrong then it would say value is illegal and will terminate the program. If it is even then program prints out the square of the number. I have just started …

Software Development c++
Member Avatar for shopnobhumi
0
99
Member Avatar for afg_91320

its me again! (and yes im stuck on yet another problem ***) i have created a code where the user is asked to choose a geometry formula and can solve a problem using any of the choices that are shown. now this code uses the switch function, but for my …

Software Development c++
Member Avatar for Lerner
0
199
Member Avatar for kittycat07us

Hi, I'm having trouble coming up with a function that scans a word, starting from bit StartingBit, until the first zero bit is found. The function is suppose to return the index of the found bit and if the bit at StartingBit is alrieady what sought, then startingbit is return. …

Software Development c++ os-x
Member Avatar for Salem
0
167
Member Avatar for grisha83

Hello, i have wrote a program using the while loop but it crashes whenever i run it Basically, the goal of a program is to calculate the population of a town with constant 10% growth annually and then find how many years left. here is my code (any help will …

Software Development c++
Member Avatar for grisha83
0
171
Member Avatar for chris5126

Hi guys, I am creating a monitoring program. I need to create a windows service to send a ping request to a list of servers from a sqp server database then store the results back into a sql server database. Need some help gettin started can i run the windows …

Software Development c# windows-server
Member Avatar for LizR
0
134
Member Avatar for SoulMazer

Well, I have recently created a "translation" program. It basically asks what languages you would like to translate between, then goes to the appropriate page on a translation website. I have integrated an option to keep using a language, rather than having to start at the main menu again. Except, …

Software Development python
Member Avatar for SoulMazer
0
158

The End.