199,114 Archived Topics
Remove Filter ![]() | |
Hi, I was wondering: if the memory allocation in the following codes is static or dynamic, why the upper limits on their sizes are different, why some of them would cause segment fault? what you would suggest to allocate array according to different need? 1. [code] double data[1048000]; for(int i=0; … | |
Hello all, I am trying to make a lottery number generator. So I need 6 random numbers. The current code below displays the same number 6 times. Thoughts? [code] #include <iostream> #include <cstdlib> #include <ctime> using namespace std; char userchoice; int main() { cout<<"Welcome to The Lottery Wizard!"<<endl<<endl; cout<<"This program … | |
I have the following class called Advanced Account, which inheritis from MobileAccount. The constructor for advanced account is defined below. AdvancedAccount::AdvancedAccount(MobileNumber & rnum, string & rname) :MobileAccount(rnum,rname) { mFreeCalls=0; mMaxFreeCalls=3; mMinTopup=1.0; } I then also have the following overloaded operator described below which makes LHS=RSH. AdvancedAccount& AdvancedAccount:perator= (const AdvancedAccount& raa) … | |
This is urgent. I have a complied php file, the file appears to have been run through an intentional obfuscation process with something called ionCube. I need someone to de compile this file to source file ASAP. Please contact me at <SNIPPED> so I can send this file to him | |
I am working on a fairly large project for my chemistry teacher (NOT homework!). I thought that it would be nice if the program could search a file for a user entered string and display all lines that had that string. I have gotten it as far as I can … | |
I have an assignment to use templates for a linked sorted list. The SortedType.h file is in our book and that is what we have to change. I understand how to do all of that and it compiles and everything. When I create a driver to test it, I just … | |
Hello, I'm getting the following error with this code, also i would like to know how to add the path and filespec together with a and be able to split the 2 so it would be 3 args not 4. [B][I][U]ERROR:[/U] error C2664: 'std::vector<_Ty>::vector(const std::allocator<_Ty> &)' : cannot convert parameter … | |
Hey guys thanks for viewing this post. I have created an array to store usernames and passwords. Im tryning to get the array ReDim-ed mid program. Here is the array: [code] Public Sub Usernames_Passwords() [COLOR="green"]'Assigns names to array space 1[/COLOR] arrNames(0, 0) = "bnsjon" arrNames(1, 0) = "bnsjack" arrNames(2, 0) … | |
Hola. I went through the forums and found that NOORA000 asked this question before, but the thread is dead by now and no answer was given. I have a program that i need to send an SMS from as soon as it produces a certain output. Does anyone know of … | |
I have three tables in the mysql database. Let's say: Table: Human -> Fields: human_id (primary key), name Table: Attribute -> Fields: attribute_id (primary key), name Table: Human_Attribute -> Fields: human_id (foreign key to human table), attribute_id (foreign key to attribute table) Cardinality: Human Table to Human_Attribute Table (1 to … | |
So here is my problem. I have developed guestbook's and comment systems before, however they were simply used on one page and used the auto increment feature to seperate enteries. Each entry was stored on a seperate row in my database and they were organized by an array when called. … | |
Can anyone point me in the direction on how to develop a plug in system for my application. so that the user can extend the functionality of the program by including more hardware to it. Evan | |
I think, we would need cURL only for cross domain applications. I mean if I use pages stored under same domain then I should simply use POST rather than cURL. Is this right? Also, For example: how do i check if username=1 and password=2 in check.php page and return TRUE … | |
I have a query that was working fine, but I recently switched hosts. I couldn't tell you what version of MySQL was on the old host, but I am now on version 5.0.67. The query asks for multiple fields using AND and LIKE. My error message is telling me there … | |
It is my understanding that in C++ objects of derived classes invoke the derived class' constructor but before the body is executed the base class' constructor is invoked and takes effect and then the derived class' constructor's body is executed. If this knowledge is correct, then what happens if the … | |
Okay so I have a problem that involves assigning random masses to cars and assigning these into random positions (on a "grid" if you would like to picture it that way) which will eventually move around and cars with a bigger mass will destroy the smaller ones and then I … | |
Hello, I'm pretty new to PHP and MySQL. I was wondering what the most efficient way to access a large database would be. All the tutorials I've seen show something along the lines of: [icode]$database = mysql_query("SELECT * FROM table");[/icode] But it seems to me that if 'table' was a … | |
Hello, I have a bit of a problem, I am think its not the script that has the problem, but wanted to be sure before contacting the server masters. In my website, I can make cookies, and sessions, I can echo them successfully. But when I logout, it doesn't work, … | |
Hi im trying to make a program to the following specifications: 0) initialise a temporary numerical value to 00H, base value to 10H and count value to 00H 1) Read in a character 2) Apply series of checks against ‘0’-‘9’ and ‘A’-‘F’ and convert the digit to a numerical value … | |
i'm writing a program that takes a string and list of files and prints all the lines that contain the string. i'm having problems with my findString method. i did some debugging and it turns out when i call strcmp on strings that are the same it returns -1 or … | |
ITs a simple textbox ITs works as a ID no in a program. So a person cannot have similar id no..so how to do that..anyone>>> If user enters the same number then display error message " you entered the same number" --when the user clicks the cmd.submit button..... | |
You are a member of CIA. And your duty is to decrypt encrypted data sent by the spy of Iraq. They send four strings. 2nd one is a subsequence of 1st one and 4th one is reverse subsequence of 3rd one. To decrypt the message you need to replace each … | |
In VB 2005, I want to be able to make a window and then have a program i already created RUN in the window INSIDE VB 2005.. So for example: I want to be able to make a Window inside VB 2005 and be able to run MS Word.. Is … | |
Please, I need an active solution for 2-Dim dynamic array, the code I have written is that: int x , y; // size of the the array (Array) char* array = new char [x][y]; // Decleration of the Dymamic array There is syntax error in the decleration of the array, … | |
Hey guys, Can anyone tell me why this doesn't work in VS2008? I've commented out the #includes and whatnot so you can paste it into a single .cpp file and run it. Here are my errors: [quote]1>test.obj : error LNK2028: unresolved token (0A000320) "int __cdecl eval(class Tree<struct InfoNode> &)" (?eval@@$$FYAHAAV?$Tree@UInfoNode@@@@@Z) … | |
I would liek to invisibly run a console application, capture it's output, and save its contents into a log window with an edit control. I know it's possible becuase i've seen it done, but how can I capture terminal output? | |
hai I am new to socket programming.Its greek and latin to me.can someone tel me wat actually happens with socket programming.Or can u plz suggest some good links for socket programming tutorials | |
hi, does anyone have or know were i can get some coding for a fractual curve any curve that is or may be a Dragon Curve. thanks | |
Hi all, In my application i will be writing data to a text file periodically (assume every 5 min.) after some time i want clear the old contents without halting the application and with out deleting the file. thanks in advance johny | |
Hey every one , well i was writing program which inputs "[B][U]Statistical data for example x 1 2 3 4 5 y 1 4 9 16 25 and analysing the data my program must suggest a suitable algebraic equations like looking at this one it should tell me the equation … | |
I wrote my rock paper scissors game for glass, but i used a recursion and not a while loop. I haven't been able to get my while loop to work at all, part of the reason i didn't put it there in the first place. Also, i have to test … | |
Hi pythonians I am trying to sort a Numpy array by field, but I am having trouble setting up the fields. I think I may have the dtype wrong. I keep getting a TypeError: "expected a readable buffer object". Here is a sample of the infile: 1480 CL 9 2004 … | |
Hello everyone, I have a program that i am working on using more than one Form. The way i am going through forms is by minimizing my first form then showing the other forms. I was wondering if i start the program from a module maybe i can unload forms … | |
[code=c++] #include <wx/wx.h> class Hello : public wxApp { public: virtual bool OnInit(); }; IMPLEMENT_APP(Hello) bool Hello::OnInit() { wxFrame *frame = new wxFrame(NULL, -1, _T("Hello"), wxPoint(60, 70), wxSize(500, 600)); frame -> show(true); SetTopWindow(frame); return true; } [/code] C:\Documents and Settings\Levi\Desktop\C+++\Makefile.win [Build Error] exe: *** [Output/MingW/Project1.exe] Error 1 Why do i … | |
This code adds & removes textboxes from the screen. In the remove function, it also renames any textboxes that come after the one deleted so that the numbering stays in order (i.e. 1,2,3,4 instead of 1,2,4,5,8) and updates the count parameter of the textbox's corresponding remove link so that the … | |
Hello everyone. I have a small problem. I have a Streamwriter writing things to a file. But when i write more than one thing, the previous item gets overwritten. I.E. Write 1111, Write 2222. 1111 gets replaced by 2222. Here is some of my code: [CODE] Dim fileOut As New … | |
I have a registration page that needs one final thing and I'm a little stumped... In one table I have email, pass, gender, dob and the other I have company... In the registration page, I want to check that the company exists before I submit the form... Since I'm using … | |
Hi, I'm preparing a presentation about bluetooth, can i get a little help about mechanism and working of bluetooth. How one device connects to another through bluetooth? | |
Here is my code [url]http://rafb.net/p/noi06840.html[/url] Now I will paste a list of errors that I keep getting, Any help appreciated 1>c:\users\vypr\documents\project0809\Board2.h(19) : error C2061: syntax error : identifier 'boolean' 1>c:\users\vypr\documents\project0809\Board2.h(28) : error C2079: 'RandomPlayer::moves' uses undefined class 'MoveList' 1>c:\users\vypr\documents\project0809\Board2.h(29) : error C2079: 'RandomPlayer::cm' uses undefined class 'CheckerMove' 1>c:\users\vypr\documents\project0809\Board2.h(33) : error … | |
Hi, The examples in w3 page don't work. I do copy and paste and create exactly same database but nothing changes. It returns "Error on Page" error. [url]http://www.w3schools.com/php/php_ajax_database.asp[/url] [url]http://www.w3schools.com/php/php_ajax_responsexml.asp[/url] [url]http://www.w3schools.com/php/php_ajax_livesearch.asp[/url] | |
Greetings, I am creating an applet to draw a shape based on the selected item within the awt choice object. It currently draws the selected shape based on selection and quickly dissappears. I believe that I should be doing all drawing elements from the paint method (which I am not). … | |
This set of code below shows all SQL Server Agent jobs that have failed for the date 200.03.29. The run_date column is an integer, but I want to run the code in such a way that the resultset is automatically generated for the day before the current date. The code … | |
a question was given to me some time back...now im wondering how to do it in my free time ....it would...please see the atteched document to see the question...dont laugh as im still a novice in programming in java | |
What are some of the advantages of using XSLT and XPATH version 2.0 over their 1.0 predecessors? Any disadvantages? | |
hi i an designing a website and i just want that if a user open it on any resolution then it will fit it self to that resolution and no scroll bars will come like google,yahoo etc. i know it is possible but not know how so pls help me … | |
This is the code i am using for displaying data into the DataGrid,bt its not working,plz help Set DataGrid1.DataSource = rs If rs.EOF And rs.BOF Then MsgBox "Invalid Entry", vbOKOnly, "Stop!!" Exit Sub End If Do DataGrid1.Columns(0).Caption = rs!PS_NO DataGrid1.Columns(1).Caption = rs!Name DataGrid1.Columns(2).Caption = rs!DT_PREP DataGrid1.Columns(3).Caption = rs!ADV DataGrid1.Columns(4).Caption = … | |
Hi everyone! First, sorry for my bad English! I have a problem with httplib... I must send XML contain throu HTTP protocol, and here is my code [CODE] import sys import httplib xml = """ <?xml version="1.0" encoding="utf-8"?><!DOCTYPE Doc SYSTEM "TenorOAM.dtd"> <Doc date="1196693972484" from="10.1.1.180" nid="CMS000001" sid="94" to="85.90.74.15"> <ReqMsg><MsgHead mid="1"/><Cmd><New><ObjPath><Instance otype="Null" … | |
Hi, Is it possible (using VC++6) to change background and forground text colors when builing a simple console application? | |
Hi, all I have one assignment about implement the stock website. i stuck in some problem which i can't solve. i want to implement one function which all the $row related to the $result in sql and for each row initialize the class once. i found if i gave the … | |
ok so im creating a program minmax to find the minimum and maximum numbers of an array. heres my code but i get segmentation fault where do you think im going wrong? [code=C] #include <stdio.h> #include <stdlib.h> void minmax( int numberlist[], int n, int *p_min, int *p_max ); int main( … |
The End.