199,114 Archived Topics
Remove Filter ![]() | |
create a text file called contacts using Notepad (programs> accessories > Notepad) with n=15 records for storing their name,sex age ,telephone and email address that resembles the below. "Hiba", "M",20,1234567,"aaa@yahoo.com" "ahmed", "f",21,2345678,"bbb@yahoo.com" "ali", "M",25,3456789,"ccc@yahoo.com" write a program to read the file display contact information. | |
Hello. I was reading http://xkcd.com/287/ while bored and thus decided to write a program that would solve such np complete problems. Here is what I got: #include <iostream> #include <vector> using namespace std; template <typename T> T NPMenuProblem(T desired, vector<T> options, vector<T> &ret) { vector<T> save=ret; T remainder; T min=desired; … | |
Hey guys, I'm trying to get an idea of my job possibilities in a programming-related field without a degree. I've been going to my local university for far too long in persuit of a computer science degree, however, I now face the very real possibility of not being able to … | |
Firstly Thanks in Advance.. I am trying to store an image in BLOB form into database and want to show that image on browser on retriving it from database.. Code used to convert image to blob is given below.. `ini_set('display_errors', 'On'); error_reporting(E_ALL); $img=file_get_contents("$_file[tmpname]");` but i am not able to display … | |
Yes, you can let your computer read text to you. The task is relatively easy, if you have Windows on your machine. All you need is Microsoft's speech-API SAPI, the Python Text to Speech module pyTTS, and an updated version of win32com, all free downloads. Here are some experiments with … | |
You can fix one parameter of function call by calling underlying method of fixed parameter instead of using functools.partial or lambda statement. | |
I have this code. pdfCreator.ActiveSheet.PrintOut copies:=1, ActivePrinter:= _ "PDF Complete on PDFC", collate:=True How can i add a save location to this code . My default is the desktop when i save all the the file to be converted my desktop becomes a mess . can anyone help me how … | |
![]() | Hi I'm not sure what to used to split numbers and letter from words. So far I try **preg_split()** function and also **mb_split()** function both gave me **No ending delimiter ^** There is **^** (**caret**). For example my data is from my database and it's not an array and it … ![]() |
The default print area is upto cell H how can i extend it to I? Can anyone here help me .. thank you. | |
I'm just starting to get into c++ development and am experimenting with different IDEs. I was curious about what everyone's favorite IDE is and why that made that decision. I've tried: Visual C++ 2012 express Code::Blocks Eclipse CDT So far, my favorite has to be Eclipse CDT. That may be … | |
Hi all it's that time again, java exercise! Mindful of what happened last time http://www.daniweb.com/software-development/java/threads/449525/building-a-simple-airline-reservation-system-exercise/ , this time I have decided that I want to have all the pseudocode done before I even start thinking about how to code the whole thing. This is what the exercise requires: > Create … | |
Hello my fellow Daniwebers. I am to ask for some ideas for a challenge. I want a good challenge for my skills, and even help expand my skills Please post your challenge below. Thanks, Begginnerdev | |
[CODE]#include <stdlib.h> #include <stdio.h> #include<conio.h> void main() { int ch; clrscr(); printf("\n\n~~~~~~~~~~~~~~~~~SHUTDOWN MENU~~~~~~~~~~~~~~~~~~~\n"); printf("1.Shutdown\n2.Restart\n3.Logoff\n4.Hibernate\n5.exit"); printf("\nEnter choice : "); scanf("%d",&ch); switch(ch) { case 1:system("shutdown -s"); break; case 2:system("shutdown -r"); break; case 3:system("shutdown -l"); break; case 4:system("shutdown -h"); break; case 5:exit(1); break; default:printf("Invalid choice"); } getch(); }[/CODE] | |
Can anyone tell me how can i convert excel to word . I hope anyone can show me how to include the tables in the convertion. thank you!! | |
I made an object-oriented maze game. It compiles but I can't move the character around in the maze. Please help me out, thank you. Person.h file: #include <windows.h> #include <process.h> #pragma once class Person { private: int m_X; int m_Y; public: WORD Color; Person(); ~Person(); void DrawASCIICharacter(int x, int y, … | |
here i found the solution for windows 8 while installation apache , mysql , php http://connectwww.com/how-to-install-and-configure-apachephpmysql-and-phpmyadmin-on-windows/457/ | |
hi all pls help me.... im trying to select all related items of a particular product... related items are also another products... here is an example of my table product... prod_id related_id 100 101,102,103 101 104,105 102 101,100 103 100,101 104 103 105 104 if i select product with prod_id … ![]() | |
Hello everyone I just finished my last program for class this semester and would love to have some feedback from the memebers here on things that I still need to improve on or good coding practices that I may not know about that can help me become better. I have … | |
i want to be a well learner about PHP. Why PHP is The Most Popular Web Programming Language? | |
I recently undertook a development job where i needed to create a music player. We decided that the music should be managed from soundcloud.com (let them deal with the storage band width). There was one problem. to make it work in ALL modern browsers there needed to be be at … | |
I have a new laptop and it has windows 8 on it. Which is more preferred, wamp or xampp? I know that wamp is for windows and xampp is multi platform and is easier to use (I have heard). So for my laptop, should I get wamp over xampp? | |
Has anyone installed tkinter 8.6 on windows ? There is a known bug in filedialog.askopenfilenames which properly returns a tuple of file pathnames under linux, but returns a string under windows. Typical windows return string (should be tuple): C:/testdir/AnotherFile.txt {C:/testdir/This is file with spaces.txt} {C:/testdir/z_last-file test.txt} I'm curious if tkinter … | |
Hi This code not run : it show this error: incompatible types-found java.lang.String but expected HuffmanCodingAnimation.Node This line of code ` root.left.code = root.code + "0";` Here is the code: import javax.swing.*; import java.awt.*; import java.awt.event.*; import javax.swing.tree.*; /* * This program enables a user to enter text and displays … | |
I needed a 5 minute countdown for a project I was working on so I hacked this up, It does nothing more and nothing less. Figured I would post it while I was here to save someone else the trouble. (Not that it's in anyway difficult to do.) | |
Do anyone here Know how to get the previous month of a given date.. Example given date: 11/25/2012 Output: 10/25/2012 thank you.. i know you can help me .. | |
This is the php code i have in my logout.php file: <?php session_start(); session_unset(); session_destroy(); header('Location: index.php'); exit(); ?> While starting the session, I set the variables username and password. My logout file isn't working properly. When i click logout, it leads me to my home page (index.php), but on … | |
Good Day Hi, I would like to know, how to work with wireless and lan connections in vb6 and how to generate a random password on every users who wants to use the internet connection,this password has a limited time only it expires depends on the number of minutes you … | |
Hello All, I intend to develope a console application in C# in which there should be 3 functionalities :- 1. Open Wordpad.exe and automatically type something. 2. Save the updated document. 3. Close the Wordpad with changes saved. Kindly guide me if anyone has some ideas. I have managed to … | |
hi I need some help. I have XML file with the folowing structure, and I wanted to know if there is a way to get some FLD nodes from a LIN Node in 1 XPATH command so I can get these values in 1 command. I need just the first … | |
Can you help me about inserting video in resources of visual basic and how to call it and play in my media player in a form..because i have media player in my project and my problem is how can i insert video and call it from resources... i hope you … | |
Hello, I made a class to connect with database but now I have run into a little problem. I need to get the id of last inserted row, but I dont know how to accomplish it. Here is my connection class: <?php class Connection{ public function __construct($config){ $this->mysqli = new … | |
According to new research from Randstad Technologies, a specialist recruitment company, less than half of those working in the IT and technology industry in the United Kingdom are happy with their levels of pay. By contrast, however, 60% appear to be quite happy with their jobs despite of this. Interestingly, … ![]() | |
I have no problem of putting a break statement in the default option of a **switch case** statement, just wondering why it is needed. Anyone any ideas? int a = 42; switch (a) { case 1 : case 2 : //statements for case 1 and 2 break; // probably more … | |
I want to start by saying, I hope this is the way we can ask questions on this site. If Not I am very sorry! Hi guys!! I have been stuck with this issue for a long long time. I am creating a site. But my Search bar is not … ![]() | |
I´m working on (and now using) the following image gallery on my website. There's no bell's and whistles just the basic utilities: Forward, backward, start/stop auto, set speed, loading animation. The slideshow as described below is optimized for pictures that are all 400px in height, but you can easily change … ![]() | |
## RSS Class ## The code snippet is a PHP class for retrieving RSS feeds from the DaniWeb website. There are two exposed methods, one for retrieving the list of predefined article types, and another to get a specific RSS feed. If you pass parameters to this method, there is … | |
am an upcoming web developer .your articles have really helped me alot to accomplish so many things.thanks alot | |
Hi, I'm working on classes with pointers. I do have a main function that calls this. This program compiles. But the input from the user isn't getting passed to the other functions. The user_input function should take the response and pass it to the create_posting then it is outputted to … | |
Hello Community, I have been looking for a facebook news feed api, i couldn't find one. All i could find is bits of script for construct my own news feed api. So thats what i did and i thought i might share the script with you it's a bit messy … | |
This program reads in some numbers then outputs the numbers, low to high, by using a bubble sory. I need some help to start how to do the bubble sort on a linked list. Here is what i have so far. .h file #include<iostream> #include<fstream> #include<cstdlib> using namespace std; struct … | |
I would be very interested to read some educated speculation concerning why there is no c++ standard way to handle unbuffered input, e.g. something like getch + kbhit. For literally decades, innumerable c++ console programmers have sought a way to simply implement, "Press any key to continue..." The fact that … | |
According to a press release that arrived today, entitled "Kaspersky Lab identifies first targeted attack utilising malware for Android devices", it marks the "first serious wave of targeted attacks using Android malware" but just how worrying is that really?  The PR company sending the release were at pains … | |
I have cart that sends its information to paypal with the hidden html inputs. My problem is when the user finishes the payment in paypal my script the the paypal return sends its return url is not processing the information. When the user clicks pay in paypal it does redirect … ![]() | |
Hello everyone, I am puzzled... when I run a JUnit test, there is no main method in the class and it still runs. Alo, a java/maven web app does not have a main anywhere. My assumption is that it is hidden somewhere on some class I somehow extend or something. … | |
hey guys ! i am unable to understand how to implement the function insert at head and insert at tail .. class Book { public: char * title; float price; // constructor for class Book Book () { char* title = new char[20]; strcpy(title,"untitled"); price = 0 ; } void … | |
Format a local time/date according to locale settings ![]() | |
Hello! I'm writing some mathematical iterators over some big classes that I don't want to store in memory at all, but I still want to be able to iterate through them. As an example (but I have a few of these), think of a class `Combinations({0,1,2...7}, 3)`, which means I … | |
I am using Netbeans 7.1 I have 2 jFrame JFrame1 and JFrame2 I just not able to close or hide the JFrame1 when I switch to JFrame2 This is the JFrame1 Code - private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { try{ int flag=0; String sql="Select * from login;"; smt1=con.createStatement(); rs=smt1.executeQuery(sql); String log=jTextField1.getText(); … | |
I currently have SVN down pat in Zend Studio. However, I can't figure out how to upload the changed files? | |
Hello everyone, im new here and dont know yet most of the policies.. but i have been reading lots of your C++ codes, mostly, codes made by Narue.... i wonder if you someone could help me make a code for pascal's triangle wherein the ouput would look like a triangle … |
The End.