199,114 Archived Topics
Remove Filter ![]() | |
3. Consider the Boolean expression F(A,B,C) = ABC + A'C' + A'B'. (a) Using the laws of Boolean algebra, derive an expression that uses only AND and NOT operators. (b) Using the laws of Boolean algebra, derive an expression that uses only OR and NOT operators. First, I am sorry … | |
Good morning all, i have a text file contains following data..... sec TID ATTRIBUTE 69013 1-3039-1 REGISTER 69013 1-3039-1 100 69013 1-3039-1 401 69013 1-3039-2 REGISTER 69013 1-3039-2 100 69013 2-3039-1 REGISTER 69013 3-3039-1 REGISTER 69013 4-3039-1 REGISTER 69013 1-3039-2 200 69013 2-3039-1 100 69013 2-3039-1 401 .................. .................. 69023 … | |
[CODE]/* My problem is I do not understand the following statement in 45. used[minIndex] = [COLOR="Red"]true[/COLOR]; // Record minimum as used boolean array used[] can sort array values[] by minimum when we set "[COLOR="Red"]true[/COLOR]" ? */ // Soln4_4.cpp : main project file. #include "stdafx.h" using namespace System; /* This uses … | |
Hello everybody! I’m new to C++. Need some help. I am trying to prompt the user to enter the file name. File itself includes list of 5 emails. After user enters the file name, program should check the list of emails and output all emails that have wrong email format … | |
Hello... I am still a newbie! I have an assignment to write a C++ program to cover a series of ASCII character digits into numbers. Like if the input (that I have ti input from a saved file) was $1,9,56#%34,9 it would output 1956 349 on two seperate lines ignoring … | |
Hi, Can private static data members of a class be accessed through non-static methods of that class? I'm asking this (dumb) question because on a C++ book I've read that a class's static data members can only be accessed through a static function, but when I tried doing it with … | |
When converting Roman Numerals, how do I tell the code to consider the fact that the letters are also used for subtraction? Like, X=10 and L=50, but XL is 40 and not 60. How do I do this ( instead of listing all combination )? [code] include <string> using std::string; … | |
greetings all. this is my first post on these forums so excuse me if i'm not familier with etiquettes! im looking for a way of making my program wait before continuing on to the next line of code. i know a function does exist, it is even one i have … | |
Hi, I was wondering if it is possible to fetch all items in a form in one go in PHP rather than using $_POST[] or $_GET[] for each individual element in the form. I often deal with forms having more than 30-35 elements and it get really tedious (not to … | |
i have a codelike this: [CODE] do { int i; }while(i!=0); [/CODE] Shows error "Cannot find symbol i" | |
Hi, I'm trying to select from 3 tables but I can't seem to get it right. Here is the code: [CODE]$query_Recordset1 = sprintf("SELECT * , image.user_id, image.name, page.user_id, page.urlcode FROM users JOIN mystuff.page JOIN mystuff.image ON page.user_id = image.user_id = users.user_id WHERE users.last_name = %s AND users.first_name = %s", GetSQLValueString($colname_Recordset1, … | |
Hello This is my base [CODE]class BaseClass { // base has no body };[/CODE] and child [CODE]class ChildClass : public BaseClass { public: void testMethod(); };[/CODE] I do [CODE]BaseClass* base = new BaseClass(); ChildClass* c = static_cast<ChildClass*>(base); c->testMethod();[/CODE] Above compile and ChildClass::testMethod() executes fine. my memory is allocated by BaseClass … | |
I m developing module in my eclipse IDE, I have designed a web page using JSP and Hibernate concepts where in i have to enter required details and after clicking on submit button they are directly entered into database. this part is done successfully but the only problem is when … | |
[URL="http://www.mobilenin.com/mobilepythonbook/examples/057-btchat.html"]http://www.mobilenin.com/mobilepythonbook/examples/057-btchat.html[/URL] In the sample code given in the link ( which is THE only one I could find over net for bluetooth chat using PyS60. When I run it, the python on my client closes after discover. It doesn't go past the bt.discover() function ( I wrote some text in … | |
does it's possible to retrieve data from a javascript ?? coz js is a client side script and php is a server side how can i get value of my js??[CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script type="text/javascript"> … | |
hey guys i got this new project for my java class and got the overall idea but my code still does not seem to work ...here are the directions: - make a 5X5 boolean array assign 5 random elements for 5 ships - user can have 15 guesses to find … | |
I getting an error that one when click on the Export Button in the show shows the data of GridView Along with PageIndexing NUmbers also [CODE] protected void btnexcel_Click(object sender, EventArgs e) { Response.Clear(); Response.AddHeader("content-disposition", "attachment;filename=Emp.xls"); Response.ContentType = "application/vnd.ms-excel"; StringWriter sw = new StringWriter(); HtmlTextWriter htw = new HtmlTextWriter(sw); GridView1.RenderControl(htw); … | |
A text box show current date(like 24-03-2009). I write in other textbox 3. I want when I write 3 then the textbox (24-03-2009) automatically increase month like 24-06-2009. how it possible? | |
i am a starter and this has been giving me some head ache.. i have been working on something....and not really getting good results its like an admin page where the contents of a form submitted on the site can be reviewed before the contents are actually posted on the … ![]() | |
Hello i have created a webpage for a project using jsp in netbeans. I have created a listbox. I want it to display data from database(MS-access) and I should then be able to modify data in database like I should be able to change an entire record through the listbox … | |
Hi, stuck and haven't been able to find a solution. Problem is pretty simple, I'm importing XML content using Javascript in an HTML page. I managed to display the XML elements and positioned it correctly using a table. Now I wanted to style the fonts of each element extracted specifically. … | |
Hi All, I have a problem and I dont understand what's happening, because my method usually works. I am querying a bunch of records from a database given a foreign key id. See code as follows [CODE] $castQuery = "SELECT * FROM cast WHERE production_id = '$newID' "; $cresult = … | |
ok... i know a lot of you are probably tired of me asking questions but i am trying to learn and i am asking about stuff i dont know, not just to get you to do the whole program for me. this question is if there is a list of … | |
Is there a program where i can launch a website, click on a button or textfield and it will give me the getElementByID? I searched around for this and i have found nothing? Why doesn't this exist? I am writing a program that will enter information into a copiers web … | |
can someone help me, each time i send my friend a program he says tht the windows goes away once he enters something. please help. | |
Hi there, I am new to VB.Net, i have cracked my brain to figure out on how to use if else statements in form1 to call button.click from another class. Please help me! :( THANK YOU SO MUCH! I REALLY APPRECIATE IT! :) | |
Hello, I'm a newbie in VB.Net. I'm creating an application using VB.Net. I have a loggin form which has a username and a password textboxes. I have the following code which is working, which I believe is actually validating the username and password. My hicccup now that I need help … | |
Can anyone pls help how to dispose objects by my own. i.e i should not allow the garbage collector to dispose my object automatically when object is out of scope, instead it should leave the job of disposing the object to me whenever i need. Thank You all | |
Hi, I recently set about making a simple application using python with some 3d components, i switched from PyOpenGL, because it was a little bit to complex for what I wanted to do, to VPython, which based on the YouTube video's looks very easy and simple... which is exactly what … | |
I'm having some problems trying to input records into a relational database. The design is really simple but I'm running into a wall when it comes to having the foreign key from my child table autopopulate the primary key from the parent table. I've made the connections in Access and … | |
How are iterators used in C# ? suppose I have say: [code] List<int> someList = new List<int>(); /* assume some items are added here */ /* and now I wonder if C++ style iterators are available? */ for( var i = /* iterator begin of list */ ; i != … | |
I have read about how multicore processing works of the Intel. The manual that I read had left out a part that would of been useful how to actually use multiple cores. It just explained how all the different parts of the CPUs interact with each other, so could someone … | |
hi there, i have been asking this question every time. [CODE] public bool ValidateTelNo(string TelNo) { bool value = false; string rePhoneNumber = @"[1-9]\d{2}\s?\d{3}\d{4}$"; string PhoneNoFormat = @"\([1-9]\d{2}\)\s?\d{3}\-\d{4}$"; Regex re = new Regex(rePhoneNumber); Regex re1 = new Regex(PhoneNoFormat); if (re.IsMatch(TelNo) || (re1.IsMatch(TelNo))) value = true; else value = false; return … | |
Hey daniweb forums, Okay so my question is, what is the difference between VC++ (visual C++) and C++ with any other IDE (or none at all). I know for a fact that VC++ is an IDE but according to some people that I have met. They say, stay away from … | |
I am not looking for an explicit answer to this question, and I have googled/searched this site for hours trying to find an example to work off of. What I can't figure out is how to write a nested "for loop" that will allow the user to input one number … | |
Hey guys , i haing a problem with using stringstream and atoi . I am trying to conert a string to in integer When using stringstream [CODE] string d = "033116"; int b = 0; stringstream ss (d); ss >> b ; [/CODE] When using atoi [CODE] string d = … | |
I have this array that should be returning a value in the 50's due to the data input i am giving it but it is returning 0 everytime What the code should do is input to and array from the file then pass it to the array monthSum then it … | |
Hi guys, I need to pass a variable from a php page to another php page. There are two methods GET POST both involve user action like submitting by clicking a button or clicking a link How to send a variable without such user actions? | |
Hell can you help me on this,how can i insert a new node in the binary tree and to keep track the current node example: input number: 50 Succesfully inserted! input number:40 this will print "inserted at the left of 50" input numbr: 80 this will print "inserted at the … | |
Hi, sorry a bout this question but I have no Idea how I would texture something drawn by using glDrawElements? From what I gather you need to use glTexCoordPointer? but I'm still really confused. [CODE] public class DrawWater { public Expr2 func; // The function that is being drawn. private … | |
I have been looking into an internship through Google, i have a good basic background, but I need more knowledge, I read C++ Primer Plus 5th Edition and got a good background from it. Where can I continue to expand my knowledge? I am trying to nail a phone interview … | |
I've been given an assignment as follows and I'm having trouble getting it to work properly, hoping if anyone out there can lend word on how to get it running? "A bank account starts out with $10,000. Interest is compounded monthly at 6% per year (0.5% per month). Every month, … | |
Okay here's what I have... it's a start. My only problem is when I run the program the sequence does not print the first 1 in the 1, 1, 2, 3, 5, 8,... it will only print 1, 2, 3, 5, 8,... I believe it has something to do with … | |
I am a beginner JAVA coder, and yes this is a homework assignment for a online class... I am stumped, and cannot get help fast enough when it is 11pm at night :<) To better explain, I need to be able to have four methods. My first method contains all … | |
I am coding a web spider for research purposes and have run into an error I am uncertain about. I am fairly new to web programming and need a bit of guidance. I use http.client to get a connection, request a site, get the response, and read the resonse into … | |
I am trying to write this program to get a user inputed number of grades up to 15. I then need to add the grades, find the largest, smallest and average of the grades, and finally display the results. Here is what I have so far. I can get past … | |
Hello Hope you guys can help me. I have created a system that stores information using php and my dbase is MS Access.Currently im on the debugging phase since i finished all major development a while ago.Now im stuck because i need an incrementing 4 digit number.Can anyone assist me … | |
I should probably begin by stating that I am not a mathematician, not even close. When asked to produce a JavaScript program using the Sieve of Eratosthenes, I started googling. There are a lot of examples out there but very few are for JavaScript, and even fewer include comments. Could … | |
Hey, I have a question. I was writing a custom Array type class. In my template declaration I use the type name as DataType. I was making an attempt at creating an insert method, which takes a DataType argument and the index to insert at. I originally had this code: … | |
im having this problem when i try to add [CODE] m + 1 = k;[/CODE] it says this- *lvalue required as left operand of assignment* in my compiler, please help. dont mind the unfinished code. [CODE]#include <iostream> using namespace std; int main() { double b, m, k; string x; b … |
The End.