199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ABDALSLAM.ALI

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.

Member Avatar for jhai_salvador
1
410
Member Avatar for Labdabeta

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; …

Member Avatar for Labdabeta
1
212
Member Avatar for PsychicTide

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 …

Member Avatar for Bean7
1
273
Member Avatar for garyrichard

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 …

Member Avatar for veedeoo
1
254
Member Avatar for vegaseat

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 …

Member Avatar for ZZucker
1
2K
Member Avatar for TrustyTony

You can fix one parameter of function call by calling underlying method of fixed parameter instead of using functools.partial or lambda statement.

Member Avatar for paddy3118
1
290
Member Avatar for imBaCodes

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 …

Member Avatar for imBaCodes
1
337
Member Avatar for LastMitch

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 …

Member Avatar for LastMitch
1
525
Member Avatar for imBaCodes

The default print area is upto cell H how can i extend it to I? Can anyone here help me .. thank you.

1
104
Member Avatar for Stein102

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 …

Member Avatar for Stefano Mtangoo
1
195
Member Avatar for Violet_82

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 …

Member Avatar for Violet_82
1
4K
Member Avatar for Begginnerdev

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

Member Avatar for Begginnerdev
1
177
Member Avatar for murtazamzk

[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]

Member Avatar for deceptikon
1
467
Member Avatar for imBaCodes

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!!

Member Avatar for imBaCodes
1
131
Member Avatar for TheNewbie1234

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, …

Member Avatar for Schol-R-LEA
1
1K
Member Avatar for amar k

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/

Member Avatar for masterjiraya
1
126
Member Avatar for amith_ami

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 …

Member Avatar for diafol
1
146
Member Avatar for nova4005

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 …

Member Avatar for nova4005
1
468
Member Avatar for rajhoq12
Member Avatar for <M/>
1
501
Member Avatar for theHop

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 …

Member Avatar for theHop
1
247
Member Avatar for <M/>

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?

Member Avatar for Octet
1
178
Member Avatar for rwe0

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 …

Member Avatar for vegaseat
1
398
Member Avatar for Dorar

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 …

Member Avatar for JamesCherrill
1
653
Member Avatar for Diamonddrake

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.)

Member Avatar for kplcjl
1
3K
Member Avatar for imBaCodes

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 ..

Member Avatar for imBaCodes
1
172
Member Avatar for beginnerpals

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 …

Member Avatar for imBaCodes
1
12K
Member Avatar for androidz

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 …

Member Avatar for Saleem_1
1
385
Member Avatar for KushMishra

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 …

Member Avatar for tinstaafl
1
535
Member Avatar for barakros

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 …

Member Avatar for barakros
1
343
Member Avatar for jayrbete

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 …

Member Avatar for jakewebb
1
4K
Member Avatar for Martin C++

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 …

Member Avatar for Martin C++
1
155
Member Avatar for happygeek

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, …

Member Avatar for diafol
1
491
Member Avatar for ddanbe

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 …

Member Avatar for ddanbe
1
366
Member Avatar for Dreamer180

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 …

Member Avatar for LastMitch
1
382
Member Avatar for kasse

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 …

Member Avatar for LastMitch
1
436
Member Avatar for pritaeas

## 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 …

Member Avatar for pritaeas
1
568
Member Avatar for josep1992

am an upcoming web developer .your articles have really helped me alot to accomplish so many things.thanks alot

Member Avatar for imBaCodes
1
87
Member Avatar for Melly3

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 …

Member Avatar for RonalBertogi
1
226
Member Avatar for joshl_1995

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 …

1
575
Member Avatar for CHOCHOCHO

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 …

Member Avatar for Schol-R-LEA
1
1K
Member Avatar for tehsmartniss

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 …

Member Avatar for Schol-R-LEA
1
1K
Member Avatar for happygeek

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? ![ad9c332c555679ef709b67f0c7093e73](/attachments/large/0/ad9c332c555679ef709b67f0c7093e73.jpg "ad9c332c555679ef709b67f0c7093e73") The PR company sending the release were at pains …

Member Avatar for peter_budo
1
691
Member Avatar for Jfunch

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 …

Member Avatar for LastMitch
1
422
Member Avatar for bibiki

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. …

Member Avatar for bibiki
1
128
Member Avatar for waqas.zafar.125

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 …

Member Avatar for rubberman
1
184
Member Avatar for Scribbller
Member Avatar for Xorlium

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 …

Member Avatar for Xorlium
1
325
Member Avatar for vishalonne

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(); …

Member Avatar for rush_parekh
1
10K
Member Avatar for Dani

I currently have SVN down pat in Zend Studio. However, I can't figure out how to upload the changed files?

Member Avatar for Dani
1
253
Member Avatar for PolarClaw

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 …

Member Avatar for H A hashim
1
1K

The End.