199,114 Archived Topics
Remove Filter ![]() | |
Hello hello. I've been dumped in at the deep end - my boss wants me and a co-worker to learn about Dynamic website (I know I know, it's a nightmare). So I've been doing a bit of research and found that I need to get hold of a package called … | |
As an assignment, I have been ordered to program the game Breakout/Arkanoid. We have to implement a class hierarchy starting with an Entity. We then expand this class to a PlayerEntity and an EnemyEntity. Then PlayerEntity is expanded to a PlayerBall and PlayerPaddle. EnemyEntity is expanded to EnemyBlock and EnemyProjectile. … | |
i have an introduction to programming class and i'm trying to write this program and the program is supposed to loop if you don't input a number within a specific range but it doesnt do it [CODE]def main(): endProgram = 'no' print while endProgram == 'no': totalScores = 0 averageScores … | |
[CODE] #ifndef HYS_MAIN_HEADER_H #define HYS_MAIN_HEADER_H #include <windows.h> #include <windowsx.h> #ifndef HYS_GLOBAL_VARIABLES #define HYS_GLOBAL_VARIABLES namespace hys { const short Null = 0; const bool True = 1; const bool False = 0; }; #endif // HYS_GLOBAL_VARIABLES #endif // HYS_MAIN_HEADER_H [/CODE] I want to avoid using macros as much as possible (C++ … | |
ok here is my project here so far: Main.cpp #include "Library.h" void main() { //GENERIC WECLOME SCREEN cout <<"\n\nWelcome to Hollow's Eye\n"; cout << "<Programmed by Ethan Rigel>\n"; cout << "Hollow's Eye a once bountiful and gorgeous land but alas; the\n"; cout << "Mighty Dragon has destroyed and ravaged our … | |
I'm having some trouble outputting a 2D vector as a grid in the Terminal. What I've done is create a class [ICODE]Grid[/ICODE] that creates a grid (in this case, a square grid), by creating a set of x and y co-ordinates whose spacing is [ICODE]dx[/ICODE] and [ICODE]dy[/ICODE]. I can then … | |
Hello, i have problem at address: 0x0040E0D6 mov eax,dword ptr [ecx] the solution would be to place an instruction to check if ecx is 0 and finishing this function, but how to do this? Thx! | |
Functionality Read 2 numbers Print multiplication as in following example: 3333 1111 ---- ***3333 **3333 *3333 3333 ---- 3702963 Prepare following functions Modulo division (you cannot use '%') Mulitplication Print a number with leading and "following" spaces Please I need to do that in C language, I think the best … | |
My problem is that i have to create a program to hold a series of weights in containers (elements in a list). The max weight for each container is 20units. I have got this working as this: containers = [0] inp = input("Enter a weight, 20 or less, or enter … | |
Hi! I'm working on a solitaire game, with a different card deck. First I create a big list with 81 elements (cards in this case), cardList. From this list, six cards are ramdomly picked and put into another list, playerCardList, and printed on the court. Once the cards are printed … | |
hello to all. can anybody say that what is "..." operator in c++?? is overloaded operator? my teacher say that ... is a c++ operator!! (sorry for bad English, is not my firs language :P) | |
Hey, I've got an array full of random numbers and I want to say if the array is below a certain value, say 15, then to make everything in that array that less than 15 equal to zero. So far I've tried a few things and they've not worked, and … | |
I am new to VB and usually work in C but was wanting to see if someone can take a look at this program and give me any advice I would really appreciate it and also let me know if I am close... I am going to first give instructions … | |
When parsing an EMBL record (attached) do I follow the same directions as when I parse a GENBANK record? I have to print out the ID, KW, OC, and SQ fields once I parse the record. I have a code that would parse a GenBank record and would like to … | |
Hello. I am using MYSQL to store articles. I wanted to present the articles in order by id, then let the user choose one of them and send the id of the article to another php page for processing, using ajax. To do so i have placed a simple form … | |
Hi! I would like to create textfields that will serve for sorting data in JTable, and the width of these textfields will correspond to a column width. So, below you may see the code that worked until I did not use an array of textfields. Now, the size of [ICODE]txtRegNum[/ICODE] … | |
Hey all, I'm doing a project to create an address book which uses a binary search tree (AVL node) structure to store, search and sort the data. There are 14 main fields for each address contact. All fields can be represented as strings. The 14th field can have unlimited entries. … | |
I have these 3 string: YELLOW,SMALL,STRETCH,ADULT,T21fdsfdsfs YELLOW,SMALL,STRETCH,ADULT,Tdsfs YELLOW,SMALL,STRETCH,ADULT,TD I would like to remove everything after the last "," including the comma. So i want to remove these parts ",T21fdsfdsfs" ",Tdsfs" and "TD". How could i do that in Python? | |
Hi people. I am having trouble printing out a list of items with n items per line. Here is my current code. [CODE]def printList(lst, lineCount): # given a list of items, print it out in # lineCount items per line. count=0 strList= '[ ' for element in lst: strList = … | |
what is report writting in programming and its uses by organization. let someone explain pls | |
Hi I updated something by mistake, now I get these warnings: (url is : [url]http://www.goldpharm.co.il/[/url] ) Warning: Cannot modify header information - headers already sent by (output started at /home/goldphar/public_html/classes/Tools.php:1) in /home/goldphar/public_html/header.php on line 3 Warning: Cannot modify header information - headers already sent by (output started at /home/goldphar/public_html/classes/Tools.php:1) in … | |
Please look at my code at: [url]http://www.bpaste.net/show/11961/[/url] I appear to have gone down a "blind alley" here. Having identified the location of the Word perfect headers, I need to verify that they are indeed genuine by reading the hex value 10 bytes from the beginning of the header. If it … | |
I am completely baffled by the lack of documentation for the Windows Media Player ripping interface. Has anybody successfully used it before? I am creating a system for my car, very similar to sync, and would like to add the ability to programmatically rip music from the inserted CD then … | |
its just a prank.. but shows the recatngle arrays and falling pixels in a 25 x 25 region snapshot of yur current screen after 10seconds... then creates a form and further cascades the pixels.. any key press will end it.. but its autostart will wait another 10 seconds and cascade … | |
Hi~ I've been stuck with this exercise for quite a few days. It's in a book I'm currently self-studying, C++ primer plus. The exercise requires using C syntax, while the exercise which follows this one requires using string objects instead, so i guess this is the appropriate forum^^. It is … | |
Problem stated: Write the function flip_lines(). Open the input and output files file using the parameters. Return true if both files can be opened and processed, false otherwise. If both files can be opened, write each successive line of output in reverse order. (In other words, switch line 1 and … | |
I need to make an OS For my school baisically it is for children's i am a 10 year old boy the poster of this question is my uncle i have 1 year of experience in doing C++ Regards Hayzam, | |
Hi all! I have moved on to learning about classes.....they don't seem as bad as the past things I have done so far. I have, however, hit a few snags along the way. Here is my code for my Rectangle class [code] public class Rectangle { private int x; private … | |
Sorry but I'm having a problem whit this function that is meant to let me edit records in a binary file. After I enter what I want to change an attribute to the file remains unchanged. [CODE]void updateStudent(fstream & file) { S students; long lenth; char snum[10]; char editChoice = … | |
New to C++ but can read it I need to break out a string sent via the serial port. The string :"N,1,2,3,4,5,6" I figure if I can load the string into an array then I can refer to each item via the index. EG: Myarray[0] should hold "N" | |
The code was designed to create a new page with the random number and then it would insert code into the newly created file. This worked when I was using my localhost, but now I receive these error messages. I looked around the web and I saw somethings about permissions??? … | |
I am using dijkstra's algorithm to try to gather fake street names and find the shortest path. However, I can only get numbers to work instead of strings... The example of my results is below. [B]Results:[/B] The shortest route from 0 to 1 is : From Street 0 to Street … | |
Please help I am brand new to java I need help creating the java code so that when I click a button it will add .01 to a running total. I have tried to modify a calculator code but it did not work. Any help at all. Thank you | |
It counts upper lower and digits in a file .. | |
I am trying to create a Unit Converter. My Idea is to have a select box at the top to select Length/Temp etc. which will populate the two select boxes below with appropriate units. The below code should Work only for Milimieters to Milimeter, Meters and Kilometers. It should show … | |
This issue is probably discussed before. However, I can still use a little insight. I am a python beginner looking to develop a small client/server suite. The clients will reside in different PCs across a LAN and their job is to recieve a file (say, a .txt file) from the … | |
Is there any drawbacks for using "this" pointer? For example: [CODE] Window_Properties::Window_Properties(wchar_t* wnd_title, wchar_t* wnd_class_name): window_width(1280), window_height(720), window_X(0), window_Y(0) { this->window_title = new wchar_t[ wcslen( wnd_title ) ]; if( this->window_title ) { wcscpy( this->window_title, wnd_title ); } this->window_class_name = new wchar_t[ wcslen( wnd_class_name ) ]; if( this->window_class_name ) { wcscpy( … | |
i wanna ask is that any statement can calculate number of occurrence of each letter (A-Z) instead of using switch statement or if statement to compare. | |
I think you all know of the Vista UAC dialog prompt that pops up on a new desktop to make you confirm things so my question relates to that. At The Code Project, a clever little cookie wrote what i'm after and it's called VDialog and its description reads "Vista-like … | |
Hello everyone! I'm writing a program to evaluate an infix expression(for example: 1.5*(2-3)+(4.5-4)). To do that I'm using function void infix2postfix(char* infix, char * postfix, int insertspace) to convert an infix expression to the postfix one (for this purpose I'm using a stack to hold operators of infix expression); then … | |
Hi, i have no idea how to go about doing this iv tried coding it a bit but just get very confused! if anyone could give me a hand or show me some sample code would be great. Thank you Create a program which: Implements a class called Queue: The … | |
Guys, I really really need a hand on this simple problem that I think, for me, is a really really big problem. I'm using the compiler turbo C. I have all the codes working except that it does not go back to the main menu. Can you please check my … | |
Hi there, I'm working on a 'queue program' which will queue 30 job numbers(case 1) between 1 and 30, validated, in an array, display the array , (case 3) and remove a number from the back of the queue.(case 2) I have the display array and remove from front of … | |
[CODE] #include <iostream> int main() { for(int i; i<3; i++){ volatile char str[]="hello\n"; std::cout<<str<<std::endl; } return 0; } [/CODE] Why? its gives output [ICODE] 1 1 1 [/ICODE] | |
okay, so i do not understand the building of a link list although my professor has explained during my tutorial before. I cant get the concept of insertion a node and deletion of a node. i tried building a linked list myself which is mostly memorised from books. therefore can … | |
Hi, I have a script to save Google Map markers in SQL. The datas from "type" and "type2" should be compared to datas in existing table "type_table" Unfortunatly the script does not save the datas. I always get the echo from "if($num_rows==0)", even if the gives datas from the formular … | |
Hey guys. I have a headache here as im new to Java. Ive tried searching, but found nothing that really helped me out. forgive a noob :) Im trying to split a string from a textfile with the following format: 0 0 0 0 0 0 0 0 0 110 … | |
I have a html template.I want to add login php script to my html.Putting frame and taking php to html is making some problem.Plaese help me, how i can take php script to my template | |
| |
how to assigned comma and period in thousand number?? (ex. 1,000.50) in c++.. this is my sample code... [code]#include <iostream> main () { int x=0,y; cout<<"Coverting Dollar to Philippine Currency:"; cout<<"\n\nEnter amount of dollar: $ "; cin>>y; x = y * 45.00; cout<<"Php "<<x; return 0; }[/code] i want to … |
The End.