199,114 Archived Topics
Remove Filter ![]() | |
hi, can anyone help me with my assignment, I'm new in c++ and any help will be much appreciated: "You must design, implement and test a simple board game. The design should follow object oriented principles and use the UML tools that were introduced earlier in the module. The coding … | |
can anyone help me!? i have to create program to search word from text file, but i don't know how can i match word from input to text.. Can anybody help!!!?? | |
![]() | How do you make a function repeat itself using a while statement. Here's the function: [CODE] # the function accepts any positive integer parameter and returns the sum of # the squares of its digits. def zap(intNum): total = 0 while intNum != 0: last = intNum % 10 total … |
I trying to get text only from html code (no tags and exec) I used the next command (regular expression): htmlSurce = htmlSurce.replaceAll("\\<.*?*\\>", ""); it works fine but all the text between <!-- --> is not removed how can I remove it??? | |
hello all, i have a problem. First off, i am able to upload 200mb to mysql database; so im good there. I changed the values in "my.ini" to 700mb. The problem is, when i try to download it, i get a error 404 or something like that. Its like the … | |
I'm writing a class program for a pre-wrote driver. I'm having issues accessing the array variables from the driver. I know my problem is that my setProject is trying to take my array as an argument, but the specification calls for two ints(array index, array index value). But I'm not … | |
Ok so first off hello all and thanks in advance for your help. Ok so I've done some research with regards to the error messages I'm getting and I've checked all my curl braces so i don't know what could be wrong with. Anyways I'm writing code to emulate the … | |
how can i find the first word in my sentence having 'w' character. This character can be present anywhere in my word. Lets take an example of sentence "Hi, what are you doing here abxwxyz? So the result should be what. | |
Hi guys, I'm writing a program that can read the date and the time separately. The only function I knew is ctime but it reads both of them, so is there any functions that can reed the date as: month day, year and time as: hour::minute::second Thanks! | |
Hello, currently I'm working on my institute project. i've got some problem with me float data, when i enter the basic salary at the time of adding new employee, its not saving into my output file [data.txt] also not shown up when i search. also i got same problem in … | |
Hi all i need some help in my merge sorting [code] class Database { protected: struct data { string pName; string pCat; int pBarcode; double pPrice; string pMan; int pStock; int pSold; data *next; };//struture of product } [/code] [code] void Database::topX(int number,data output[]){ data *cur=_head; data* *sorted=new data*[_n];// new … | |
hi im working on a search field in drupal for a system that maintains student information. i have one interface that has the search student info box and the other which is search results i wrote some php code to search the and there are no errors yet still its … | |
Hi all, and thanks in advance for your help. I have a program which stores some large arrays of ints and reads and writes from text files. main() takes commands with cin and then runs various functions. One of these, generateSentence(), takes three ints and a char* as arguments, but … | |
double mean (int scores[], int numberOfStudents); double standardDeviation (int scores[], int numberOfStudents); perform the following task by using above function: 1.find maximum 2.find 2nd maximum 3.find minimum 4.find mean 5.find standard deviation 6.display scores 7.read a new set of scores 8.exit program | |
Here is my program so far: [CODE] #include <stdio.h> #include <string.h> #define max 200 typedef struct { char triple[6]; unsigned index; unsigned lower; unsigned upper; } mpn; unsigned load_MPN_table (mpn *mpn_table[], FILE* input, unsigned max_size) { unsigned i; for (i=0; i<max_size; i++) { fscanf(input, "%s%u%u%u", mpn_table[i]->triple, &mpn_table[i]->index, &mpn_table[i]->lower, &mpn_table[i]->upper); // … | |
Ok, so I wrote this generic/simple program for a class but am having some trouble with the pauses in the program. I want to use [COLOR="Green"]cin.get();[/COLOR] or [COLOR="Green"]cin.ignore();[/COLOR] to pause my program so I can avoid [COLOR="Green"]system("PAUSE")[/COLOR](word on the street is:shit sucks) and make it look cleaner. The thing is, … | |
I have created a Cryatal Report and set its Access database(.mdb) during design time. I have imported the crystal report into VB.NET. now i want to know how can we set the database path during runtime. The database to which i've linked will change its path and name every year. … | |
C program to perform Matrix operations such as Addition, Subtraction, Multiplication and Transpose according to the user’s choice. displaying following menu. ------------------ MAIN MENU ------------------ 1. MATRIX ADDITION 2. MATRIX SUBTRACTION 3. MATRIX MLTIPLICATION 4. MATRIX TRANSPOSE 5. TO EXIT --------------------------- Please enter your option <1/2/3/4/5>: The program should ask … | |
I am running Windows 7 on one machine and Linux Debian on another. I am creating a C application using NetBeans. It seems to be working just find on Linux when I run it there. But when running on Windows, messes up the output somehow, kinda prints the output more … | |
I have been working with opengl for past 2 months and find in very difficult to manage with it . The actual code for rendering the image is very less , compared to the code written to handle the view and other opengl attributes / controls. Is there any library … | |
Hey guys, I'm kinda new at C++ and need help writing a program that finds email addresses in text files and stores them in an array. The email addresses are then filtered to make sure there are no duplicates. They are then copied to an output file. The program should … | |
If a 3D box(a bounding box) knows it's position, it's width, it's height and it's depth, what would be the most efficient(can run in real time) way of detecting if a 3D co-ordinate is inside that box? I already have something in place to check for it but I am … | |
Hello everyone I have been trying to learn the greater mysteries of linked lists and have come across an error that is inexplicable to me at my current level of understanding. I have written a program that attempts to form a linked list to store student information in the form … | |
Can someone help me add a css rule to my web template? I want to change the width of it?? It is wider than the normal size template so it runs off the page. How do I make it skinnier? | |
Hi, I used to be able tpo do this but must of forgot something. I am trying to write to Excel sheet and while I have the right references, but something particuarly with the ranges I am doing wrong. Can someone please tell me what I am doing wrong. here … | |
I have looked everywhere but i have not been able to find any thing about comparing two strings alphabetically. I tried comparing the characters of each string but i do not know what comparing characters actually does. i am assuming it just compares the ascii codes of each character? [CODE] … | |
Frequently we need to copy-paste a code snippet and compile-run it. The problem is that the lines of code are tagged by line number. So what utility to use to elegantly discard the line numbers? | |
Greetings all, I've been programming local applications in Delphi quite awhile, but i only consider myself a so-so programmer... and i've never done anything server based. I also do a fair amount of web/PHP programming. That said, i'm trying to create a small program i can run on my Windows … | |
hi, i found this site by accident and am giving it a go for some help needed. I am new to linux and am using Debian Lenny at the moment. I am finding that a lot of my tasks can be made a lot simpler and quicker if i just … | |
I used [URL="http://www.parallax.com/Store/Education/KitsandBoards/tabid/182/CategoryID/67/List/0/SortField/0/Level/a/ProductID/313/Default.aspx"]Parallax's Basic Stamp Homework Board[/URL] and an [URL="http://www.radioshack.com/product/index.jsp?productId=2909788"]accelerometer[/URL] to use as a mouse. It works better than I thought it would. [URL="http://sourceforge.net/projects/pyserial/"]PySerial[/URL] is used to grab the debugged values from the stamp. The circuit is compiled of two push buttons, 2 LEDs to tell when a button is … | |
[B](Post was originaly posted in an XBOX forum - No help.)[/B] [code]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace Xbox_Live_Bio_Template { public partial class Form1 : Form { string a = "╋"; string b = "━"; string c = "┃"; string … | |
hello everyone, have a c++ test coming up and i am completing some practice problems, wondering if could look over what have so far what i got is in red. if see errors plse help me out | |
I would like to know if there is any other way to create a doc (or txt) file, then this way that I have in my code: [CODE] if (!System.IO.Directory.Exists(System.IO.Path.GetTempPath() + @"TestDirectory")) System.IO.Directory.CreateDirectory(System.IO.Path.GetTempPath() + @"TestDirectory"); string LogDatoteke = System.IO.Path.GetTempPath() + @"TestDirectory\TestFile.doc"; StreamWriter zapis; zapis = File.CreateText(LogDatoteke); zapis.WriteLine("Some text 1"); zapis.WriteLine(""); … | |
Hey, sorry if this question seems basic however I am relatively new to C++ and have done some searching around but to no avail. I then came across this community and thought I would try it out :) Basically, using Visual C++ 2008, I have a custom data structure, lets … | |
Hi im trying to make a 10X10 board using arrays and have to fill up 2/3 of the board with the letter b, and 1/3 with the letter x. Right now i have created the board and my output shows up as zeros for some reason. can somebody please help? … | |
So in my last problem, someone said "Use a pointer" (or something like that). When I googled it. It had to do with memory blocks (at least, I think). So what is it? And, oh yeah, can you make it as simple as possible. I have tried seeing what it … | |
I have a bunch of text files with different formats that somewhere in the file have email addresses. I would like to be able to parse through any number of these files for email addresses. Here are the types of input: CFO: [email="some_cfo@domain.com"]some_cfo@domain.com[/email] [email="misterman@domain.com"]misterman@domain.com[/email] The Main Man [email="mainman@domain.com"]mainman@domain.com[/email] To take … | |
Hi All, I am trying to create a GA to solve timetabling for exams, so far I have created a array of exams e.g. [2,3,5,4] means exam 2 is held at time slot 1 and exam 3 is at time slot 2. //This is the testChromosome.ChromosomeArray is the sample code. … | |
I am new to programming in Python and I am just wondering if I could have some help. I am trying to write a program which creates diary entries for events and I am currently trying to convert the raw_input from the user into a date (yyyy/mm/dd) and time (24hr … | |
Hi, We are having memory leak/performance issue/timeout. we have checked and tuned db and all our queries. The configuration for our server is as follows. OS - windows 2003 SP2 CPU - 8-way 2.66 ghz intel Xeon(R) X5355 @ Memory - 16GB I like to know for the above server … | |
hey mates We're writing a class "intArray_t" in c++ and we're supposed to forbid operations like: [CODE] intArray_t* t = new intArray_t(); intArray_t* t2 = new intArray_t(); //some code here, inserts and so on t = t2; [/CODE] and [CODE] intArray_t* t = new intArray_t(); //some code here, inserts and … | |
Hi! I need help! I need to create a program in c++ that ask a question, there is a multiple choice, display if your answer is wrong or correct. Like the gameshow "Who wants to be a millionaire" and included "LIFELINE" I tried and it runs but when I chose … | |
I need help with the following course assignment. Operator overloading shall be implemented in an existing composite Class. The overloaded operator shall be used to compare objects (strings) in a bubble sort sequence. It is not allowed to use Friend or Inheritance. My problem is if operator overloading only should … | |
Hello. First of all i'm compete newbie in the python. And second i was wondering for some time what does the value 'i" do in python or is it a value at all? I'm sorry if i'm pre-posting a question that have been answered already. This is the example : … | |
I need to create a linked list where I can continue to input integers and I'm not sure what I'm doing wrong, but every time I run it I'm allowed to enter two numbers and then I get exit code 216 saying I'm accessing memory I'm not allowed to. [CODE]Program … | |
Could someone please tell me if there's a way that I could insert the time of day into a calendar that I created using CF. I can post events and I know how long they last, but I have not been able to post the time of the events (as … | |
Hi, I am using ppm shell to install a perl module in windows. I have set http_proxy=http://localhost:8080. I don't have proxy server i am using TATA Indicom Connection. When i tried connecting and downloading perl module i got error like this: [code] ppm> install Mail::Sendmail Downloading Mail-Sendmail-0.79...failed 500 Can't connect … | |
Good Morning Everyone! I'm trying o turn my machine into a development station. I would like to install CF Server, with Apache and IIS. I'm Using widows 7 on a 64bit machine. Is here any certain order on what need to be installed first? Can someone walk me through the … | |
can anyone tell me what i did wrong with the decryption part of this code? ive been looking at it for some time now (while working on other related stuff), and i cant seem to find the problem with it. its getting really retarded, on my part [B]and this is … |
The End.