199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for princessophia

I have to create a program that uses a class Pstring derived from the STL class. The only error I am getting says that I have one unresolved external. How do I fix this? Here is my code: #include <string> class Pstring : public std::string { public: Pstring(const std::string &text) …

Member Avatar for iamthwee
0
218
Member Avatar for samuel terngu

I have created a table in mysql database table(tblmysq) with id(autoincrement),name(string),branch(string),sex(string),and dat(datetime).The following error occurs when i try to insert a record:check the manual that corresponds to your mysql server version for the right syntax near line 1. My lines of code are : Try conn = New MySqlConnection(conStr) conn.Open() …

Member Avatar for samuel terngu
0
354
Member Avatar for princessophia

This is the assignment: Assuming that a year has 365 days, write a class named DayOfYear that takes an integer representing a day of the year and translates it to a string consisting of the month followed by day of the month. For example, Day 2 would be January 2 …

Member Avatar for iamthwee
0
2K
Member Avatar for fheppell

When I open a page the page loads for a very long time and no errors appear in the logs. I've run it through a syntax checker which told me there was one more opening parenthasis than expected, but didn't give me a line number, so I have no idea …

Member Avatar for iamthwee
0
317
Member Avatar for karimun.jersey

Here my web service.. package ahsanfile.webservice; import ahsanfile.webservice.util.DataBase; import ahsanfile.webservice.model.Karyawan; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.ArrayList; import java.util.List; import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebService; /** * * @author Master */ @WebService() public class DataKaryawan { /** * Web service operation */ @WebMethod(operationName = "getKaryawan") public List<Karyawan> getKaryawan() { List<Karyawan> lk …

Member Avatar for peter_budo
0
97
Member Avatar for cambalinho

see these class: class test { public: void Created(){}; test() { Created(); } }; now we can create objects from it. ok. but can i overloading the scope-resolution ('::') for the object accept and change the Created() function?

Member Avatar for Ancient Dragon
0
246
Member Avatar for Ikanda Simeon

Am having problems converting from if-else statements to switch statements and vice-versa

Member Avatar for L7Sqr
0
205
Member Avatar for word2the wise

Hi group, I am searching for a complete word list A thru Z. No definitations, parts of speech, or origins of the words. Just a comprehensive, unabrigded listing. Any suggestions?

Member Avatar for L7Sqr
0
132
Member Avatar for Remy the cook

I have been trying to find the frequency distribution of nouns in a given sentence. If I do this: text = "This ball is blue, small and extraordinary. Like no other ball." token_text= nltk.word_tokenize(text) tagged_sent = nltk.pos_tag(token_text) nouns= [] for word,pos in tagged_sent: if pos in ['NN',"NNP"]: nouns.append(word) freq_nouns=nltk.FreqDist(nouns) print …

Member Avatar for Remy the cook
0
1K
Member Avatar for Mr.M

Hi Dw I'm currently doing a research in how to create a system application file, the program that I'm creating will be visible to screen only when it has been called by the user other then that it will be running but doing nothing other then waiting to be called. …

Member Avatar for Mr.M
0
250
Member Avatar for grafic.web

Hi there, this is the code of my contactcontroller.cs : using ContactMvc.Models; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace ContactMvc.Controllers { public class ContactController : Controller { // // GET: /Contact/ [HttpGet] public ActionResult Index() { return View(new ContactMessage()); } [HttpPost] [ValidateAntiForgeryToken] public ActionResult Index(ContactMessage post) …

0
160
Member Avatar for Mafiamanandre

Hi all. I am following this tutorial: http://msdn.microsoft.com/en-us/library/bb546195(v=vs.100).aspx on the C# method. I have recently discovered that I do not have the System.Web file in either the C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5 or in the C:\Windows\Microsoft.NET\Framework\v3.5 I have downloaded the .Net Framework 3.5 frameworks off the Microsoft website to repair missing files, …

Member Avatar for Mafiamanandre
0
159
Member Avatar for zoraster01

can you help me to my fingerprint scanner .. do you have idea how will work to vb6 .. i am doing a time attendance.. its better if its a simple program.

Member Avatar for abubakar.hamza.520
0
568
Member Avatar for skyyadav

I have written this code to find the cycle in graph public boolean hasCycle(int i, int[][] mat) { visited[i] = 1; // for( int i = 0; i < numNodes; i++ ) for (int j = 1; j < mat.length; j++) { if (mat[i][j] == 1 && i != j) …

Member Avatar for noorullah06
0
217
Member Avatar for Mr.M

Hi Dw I've created a program which I don't want it to be visible by any means, I don't want it to be visible to people who will be using Group View tools to manage the computer, I want it to be like the windows system files which does not …

Member Avatar for Mr.M
0
206
Member Avatar for nadiam

So im not too sure if im posting this in the right forum. please dont be angry! new at daniweb so basically what i wanna know is how to save real time date into database. what i have is a page with tabs of month and in each tab the …

Member Avatar for JorgeM
0
1K
Member Avatar for inspire_all

Suppose i have an algorithm whose time is represented by th function T(n)=n^3+2n^2 So what does n mean?

Member Avatar for amina.bm
0
145
Member Avatar for techyworld

Hi am creating a java web application using jsf framework. I generate report using BIRT report. i create a table but when i view the report the line and border of the table is not displaying. how to make it appears? Anyone can help?

Member Avatar for cool_zephyr
0
166
Member Avatar for cool_zephyr

hey how can I handle no-mapping found exception in spring dispatcher?? so that, if no-mapping to a controller is found in the dispatcher, I would like to redirect the user to a separate Resource not found page Suppose I have only 2 pages in my web application, "/about", "/help" and …

Member Avatar for cool_zephyr
0
1K
Member Avatar for kanoy83

hi, im trying to compare the string from my new $_POST['title'] and in my database. If my new post is the same in database, it must notify it is the same. I am trying to use strcmp if it is better. Or maybe anyone has better or simpler code. $newtitle …

Member Avatar for kanoy83
0
3K
Member Avatar for Dio1080

Ok, I need help on a for loop nested program using for loops, I'm trying to use a patten that goes like this: 123456 12345 1234 123 12 1 but when I try it, it goes like this: 654321 65432 6543 654 65 6 This is my program: public class …

Member Avatar for JamesCherrill
0
544
Member Avatar for fheppell

I've got a page that requires a file called config.php, this file is included in several other files, all in the same (root) directory. PHP gave me the error `[16-Nov-2013 12:30:17 UTC] PHP Fatal error: require_once(): Failed opening required '/models/config.php' (include_path='.:/Applications/MAMP/bin/php/php5.4.4/lib/php') in /Applications/MAMP/htdocs/things/picturecamel/uploader.php on line 70` however the file is …

0
290
Member Avatar for erminasrcutp

The update database is not working , please help me. edit.php <?php include_once('db.php'); if(isset($_GET['edit'])) { $id=$_GET['edit']; $res=mysql_query("SELECT * from apple WHERE id='$id'"); $row=mysql_fetch_array($res); } if(isset($_POST['newName'])) { $newName= $_POST['newName']; $id = $_POST['id']; $sql = "UPDATE apple SET name=''$newName' WHERE id='$id'"; $res = mysql_query($sql) or die("Could not update".mysql_error()); echo "<meta http-equiv='refresh' content='0;url=index.php'>"; …

Member Avatar for erminasrcutp
0
465
Member Avatar for nadiam

So the article title says it. i wanna make the name as like a welcome message, something like "Welcome, <name>!" and yes there are many articles on the web that gives you coding and what not but i still don't understand how to get it done. sigh. forgive me im …

Member Avatar for nadiam
0
392
Member Avatar for JBProgrammer

I am having trouble getting the health deductions from the TaxablePay method to the getNetPay method. I have tried everything I can think of including using a taxablePay class. I am running out of ideas. I have below... 1.The program description(what i want the program to do). 2.The expected output …

Member Avatar for JamesCherrill
0
1K
Member Avatar for JOSheaIV

Okay, so I have been trying left and right to figure this out, but I just can't figure it out. I have been trying to produce a collection of Bitmap variables in my program of a series of characters. The problem is that during my tests, I save a file …

Member Avatar for ddanbe
0
212
Member Avatar for AARTI SHRIVAS

when i click on add to cart button page is not reload cart shows empty and when i refresh page throught f5 it show data in cart and give error TypeError: jQuery(...).fancybox is not a function "transitionOut" : "elastic" in admin side i disable fancybox jquery so i got this …

Member Avatar for AARTI SHRIVAS
0
208
Member Avatar for Linddha

i want to get the result of my count query in 2 table my table : $userfans=mysql_query("select *from fans where id_userfans='$_SESSION[id_user]' and level='umum' limit 1"); while($oinf=mysql_fetch_array($userfans)){ $coinp=mysql_query("select * from fans_news where id_userf='$_SESSION[id_user]' and id_fans='$oinf[id_fans]' and status='Y'"); $koinp=mysql_num_rows($coinp); while($oinp=mysql_fetch_array($coinp)){ $comentar=mysql_query("select * from fans_comment,user where fans_comment.id_newsfans='$oinp[id_newsfans]' and fans_comment.id_usercf!='$_SESSION[id_user]' and fans_comment.id_usercf=user.id_user "); $comme=mysql_num_rows($comentar); …

Member Avatar for urtrivedi
0
204
Member Avatar for pce369

So I have the following MySQL query, which works fine: select year(created_at) as year, month(created_at) as month, day(created_at) as day, item_sdb_id, price_per_unit from (select l.item_sdb_id, l.list_price / l.quantity as price_per_unit, l.created_at from listings as l inner join purchases as p on l.purchase_id = p.id where l.item_sdb_id in (12345) and p.created_at …

Member Avatar for urtrivedi
0
337
Member Avatar for karen.frias0316

Hi! I have been trying to post on my own wall page but nothing happens till now. I have an app and everytime i was submitted/ everytime a user visits it, i want it to post a link on my own page as page not user. i have this code. …

Member Avatar for karen.frias0316
0
354
Member Avatar for smdjilani

hai I have Sunjava 7 installed in my pc, but when i run my java programs in my linux it won't works it's again saying to install java what should i do

Member Avatar for jalpesh_007
0
97
Member Avatar for santoshkumar.palivela.7

<?php class Jcart { public $config = array(); private $items = array(); private $names = array(); private $prices = array(); private $qtys = array(); private $urls = array(); private $subtotal = 0; private $itemCount = 0; function __construct() { // Get $config array include_once('config-loader.php'); $this->config = $config; } /** * …

Member Avatar for AARTI SHRIVAS
0
2K
Member Avatar for beastie805

hello, I am having problem with selection sort, I am trying to sort the students name alphabetically.I compile it and it shows me whole bunch of errors in VS. I dont think it has do to do with my display all students function, I think it has more to do …

Member Avatar for beastie805
0
2K
Member Avatar for VBOI

Here is a function to print my binary search node tree, void printtree(struct node *tree) { if (tree!=NULL) { printtree(tree->left); printf("%s %d\n",tree->word, tree->lineNumber); printtree(tree->right); } } How would I save what I print to a text file???????

Member Avatar for Nutster
0
3K
Member Avatar for ogok2010

Hi, so I'm creating a hangman game with only basic skills in java&html. I'm having a great trouble as to how to make it work. What I'm trying to do is very simple: When I type a word, a box will pop up and say, "----" (if it's 4 words) …

Member Avatar for Airshow
0
149
Member Avatar for overloaded

Unhandled exception at 0x561330d9 (msvcr100d.dll) in main.exe: 0xC0000005: Access violation reading location 0x440b4bd8. i try my best to debug it, but don't have clue on it. **fft.h** #include <math.h> #include <stdio.h> #include <stddef.h> #include <stdlib.h> #define NR_END 1 #define FREE_ARG char* #define M_PI 3.14159265358979323846264338327 static double sqrarg; #define SQR(a) ((sqrarg=(a)) …

Member Avatar for overloaded
0
328
Member Avatar for bullet_1

In the following code, the pattern is reading text between specified tags and I want to replace text in between those specified tags. I tried but replacing in whole file. string input = File.ReadAllText(@"D:\text\div.txt"); string pattern = @"<body.*?>(.|\n)*?</body>";//reads text between specified tags MatchCollection matches = Regex.Matches(input, pattern); // Console.WriteLine("Matches found: …

Member Avatar for castajiz_2
0
2K
Member Avatar for Labdabeta

Hello, I am having a particularly nasty case of "What is the syntax?" while working on an event driven library. Basically this is what I want: class Object {// private: public: virtual bool onEvent(Event e)=0;//all objects have to react to events Object operator|(const Object &o) { // I want to …

Member Avatar for Labdabeta
0
311
Member Avatar for freely.willy.3

I want to create in html textbox named **b** and php code which gets email from it with $_POST. Unfortunately as setBcc is used as an array and I cannot convince php to get emails from this textbox. This is the code of php: <?php require_once 'lib/swift_required.php'; $transport = Swift_MailTransport::newInstance(); …

Member Avatar for brandon66
0
3K
Member Avatar for v.r.t
Member Avatar for vegaseat
0
158
Member Avatar for douglas.shrader.1

I can't seem to center align my background image. I am new to php, css, and java coding but finding it necessary in this day and age. Here is the code. I hope this will help. <style> body{ background: url(http://dsninformation.com/images/magic.jpg); background-repeat: no-repeat } .button { display : inline-block; cursor : …

Member Avatar for douglas.shrader.1
0
333
Member Avatar for Dannyo329

I've been trying to fix a problem with getline() and cin.getline().Here's a example I've made and it still has the problem: [TEX]" No matching function to 'getline(std::istream&, char[100])' "[/TEX] Here's the code: [CODE] #include <iostream> #include <windows.h> #include <string> using namespace std; int main() { char name[100]; cout << "\nEnter …

Member Avatar for Jamblaster
0
2K
Member Avatar for mushahidh

I am using this script for exporting data from HTML table to Excel. <script> var tableToExcel = (function() { var uri = 'data:application/vnd.ms-excel;base64,' , template = '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--></head><body><table>{table}</table></body></html>' , base64 = function(s) { return window.btoa(unescape(encodeURIComponent(s))) } , format = function(s, c) { return s.replace(/{(\w+)}/g, function(m, …

Member Avatar for pixelsoul
0
4K
Member Avatar for inspire_all

We trace recursion using an **internal stack**.How can we relate this to an **activation record **?i.e I want to know the** relation** between an internal stack and an activation record.

Member Avatar for sepp2k
0
122
Member Avatar for Trekker182

Hello everyone, I'm trying to do a game of hang man by comparing whats in one char array with another with a for loop with the compareword function. I tested it out with the wrong letters and had it return -1 so that parts working. What isn't fully working is …

Member Avatar for Trekker182
0
256
Member Avatar for salah_saleh

Hi, I have faced a problem that I have a vector in my class which I would like to initialize using constructor initialization list with some thing like this std::vector<double>({1,4,5}) which is only allowed in c++11 which is not what I am looking for. I could only intialize it with …

Member Avatar for salah_saleh
0
352
Member Avatar for christinetom

Hi everyone. Well, I'm overwhelmed with the amount of C++ books out there and own a few now. I'm specifically looking for a C++ Reference book which lists C++ STL libraries and functions like the orielly C++ pocket references on C++ or STL. Orielly's C++ in a Nutlshell looks pretty …

Member Avatar for mike_2000_17
0
384
Member Avatar for Remy the cook

I have to append first 3 sentences of this sample text to a file(data.txt). So far I've done this: import nltk text="""First patented in 1876 by Alexander Graham Bell and further developed by many others, the telephone was the first device in history that enabled people to talk directly with …

Member Avatar for vegaseat
0
272
Member Avatar for davidjennings

Hi all, I am trying output the following 1 user after validating data from a database and I have no output to the screen. I am not sure what is missing from query? Any help would be appreciated Thanks in advance David ------- Index.php ------ <?php session_start(); ob_start(); include_once ("includes/settings.php"); …

Member Avatar for davidjennings
0
263
Member Avatar for mavtcr

Friends Please any body explain the difference between VISUAL BASIC and VB.net What are the advantages over the other Which is better?

Member Avatar for Deep Modi
0
278

The End.