43,549 Solved Topics
Remove Filter ![]() | |
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++ | |
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 … | |
![]() | |
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 | |
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++ | |
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 | |
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 | |
[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 | |
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 … | |
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 … | |
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++ | |
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++ | |
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++ | |
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++ | |
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 | |
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 | |
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++ | |
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 | |
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 … | |
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 | |
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 | |
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++ | |
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 … | |
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 | |
it isnt clrscreen; cause thats not working. Can anyone refresh my memory? thanks Software Development c++ ![]() | |
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++ | |
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 | |
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 | |
[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++ | |
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++ | |
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++ | |
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 | |
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++ | |
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++ | |
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 | |
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 … | |
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++ | |
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 | |
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++ | |
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 | |
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++ | |
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++ | |
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. … | |
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++ | |
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++ | |
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. … | |
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++ | |
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 | |
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 |
The End.