199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for rayhaneh

this is my program and every time shows me this error:18 26 :: [Error] statement cannot resolve address of overloaded function:: #include <iostream> using namespace std; int pow(int a,int b); int mabna(int n, int k){ int a,b,s=0 ; for(int i=0;i!=0;i++){ s=(a%b)*pow(10,b); s+=(a/b)*b; return s;} } int main (){ int a1,a2, …

Member Avatar for Moschops
0
129
Member Avatar for Victoria_1

For a homework assignment in my intro to java class I was given the following problem: Write for, do-while, and while statements to compute the following sum and product 1. 1 + 7 + 25 + 79 + .... + (3^20 - 2) 2. 1 x 3 x 9 x …

Member Avatar for stultuske
0
256
Member Avatar for razar63

Here is the code <?php session_start(); ?> <!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 name="description" content="PHP Shopping Cart Using Sessions" /> <meta name="keywords" content="shopping cart tutorial, shopping cart, php, sessions" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" media="all" href="/style/style.css" type="text/css" /> <title>Cart</title> <?php include("header_1.php"); …

Member Avatar for matrixdevuk
0
397
Member Avatar for fugio

How can I filter records from the clock set at right angles In data if I add a column is minute Time from start plus column-minute any help? thanks a lot Imports System.Data.OleDb Public Class Form1 Dim con As OleDbConnection Dim dt As DataTable Dim da As OleDbDataAdapter Dim str …

Member Avatar for Santanu.Das
0
179
Member Avatar for shayan_doust

Hello everyone. I have just bought a new computer and I am currently working on creating an online cloud storage service. Every thing is going fine until I am struck with a problem. At first, registering a new user works and the data is inserted into database but after testing …

Member Avatar for matrixdevuk
0
2K
Member Avatar for Jack_9

Hello. I'm running injection tests on an SQL database and I found a good script to do so....But it takes command line parameters which I can't execute properly because the command would normally look somthing like this...... python sqlmap.py -u "url.com" --batch. But I can't seem to do that because …

Member Avatar for HiHe
0
3K
Member Avatar for KetraCoder

Hi, I've recently just discovered that there is something called ByteCode in Java, and I was wondering what it is used for. I am trying to make a simple Typing Test Word Typer Bot, basically it reads the words on the browser for a typing test called 10FastFingers, then it …

Member Avatar for JamesCherrill
0
254
Member Avatar for Pyler

Suppose I have the following class in a header file //tray.h #include <vector> #include "Eggs.h" #ifndef TRAY_H #define TRAY_H class Tray{ std::vector<Eggs> dozen; public: Tray(); ~Tray(); std::vector<Eggs> getTray() const; }; #endif And the following class file //tray.cpp #include "Tray.h" #include <string> Tray::Tray(){ } Tray::~Tray(){ } How do I initialize the …

Member Avatar for rubberman
0
259
Member Avatar for come_again

Hello, So i am trying to get a log in page to work but have run into this error: Warning: Cannot modify header information - headers already sent by (output started at .../views/header.php:15) in .../classes/login.php on line 77 I searched online and found others had this problem although I can't …

Member Avatar for come_again
0
145
Member Avatar for jeffersonalomia

Please Help me with my problems as follows below : 1 What is the connection string to connect database to vb.net 2 How do i INSERT UPDATE DELETE AND SEARCH records using sql.. 3 How do i start creating a database application using vb.net and sql Thats all... hope you …

Member Avatar for Santanu.Das
0
303
Member Avatar for shahera.arafat

#include<cstdio> #include<string> #include "inventory.h" #include "node.h" #include<iostream> using namespace std ; int main (){ inventory*obj1=new inventory(); int size; int id,i; char A[100]; char S_string; cout<<"plz enter the size of the list "<<endl; cin>>size; for(i=0;i<100;i++){ cin>>S_string; A[i]=S_string; } int a=strcmp(A[i],"new"); if(a==0){ for(int j=0;j<size;j++){ cout<<"enter the id"<<endl; cin>>id; obj1->new_id(id); } } getchar(); …

Member Avatar for sepp2k
0
119
Member Avatar for Mr.UNOwen

Hello, So I'm having trouble figuring out what the correct syntax is for a function with a return type that is a template type and is within a namespace. Anyone see anything wrong with the code below? -------.HPP file: #pragma once #ifndef EC_UTIL_H #define EC_UTIL_H #include "../CommonHeaders.hpp" #include "../core/common/APVertex.hpp" #include …

Member Avatar for sepp2k
0
347
Member Avatar for somyms

while mining medical data set privacy is a major concern.i want to mine medical data and preserve privacy.so i need to mine medical data and group them according to diseases so that it can be used for research and publishing without revealing patients information .i planned to use lkc privacy …

0
297
Member Avatar for terryds

First, i'd like to show you my directories --themes -- images -img1.jpg -index.php -index.php My index.php (root) : <?php require_once '/themes/index.php'; ?> And, the index.php in the template : <!DOCTYPE html> <html> <head> <title>Test</title> </head> <body> <img src="images/img1.jpg"> </body> </html> I think it will load themes>>images>>img1.jpg But, it loads images>>img1.jpg …

Member Avatar for gabrielcastillo
0
215
Member Avatar for Murphyv10

Hey there Im tring to insert to a database from a form , however I cant get it to insrt with the dropdwon list, any help would be loved <h1>Insert Data Into Database Using CodeIgniter</h1> <?php echo form_label('lecturer_id:'); ?> <?php echo form_error('dname'); ?> <?php echo form_input(array('id' => 'dname', 'name' => …

Member Avatar for Murphyv10
0
176
Member Avatar for J.C. SolvoTerra

Did you know that you can data bind a bitmap to a PictureBox's image property, and the source image doesn't have to be in a binary format stored in a data table? Using a standard object setup for data binding (iNotify etc.) you can easily update your program's image propertie's …

0
1K
Member Avatar for chubbyy.putto

I trying to understand the ArrayList let say the user input in 1st Person Name : Alex Sex : M Dog Name: Java 2 Person Name: Joe Sex: M Dog Name: Is 3 Person Name: Anna Sex : F Dog Name: Fun in Arraylist how can you separate out from …

Member Avatar for zolymo
0
211
Member Avatar for come_again

hello everyone, I am having some difficulty setting up a connection to my database. I created one on godaddy but am unable to get past this one hump: Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)' in /home/badinvestor/public_html/config/connection.php:9 Stack trace: #0 …

Member Avatar for come_again
0
668
Member Avatar for osama.11
Member Avatar for osama.11
0
81
Member Avatar for Odyssey2001

Hello! I'm new to Python,so I'm sorry if it's a simple question. I have a text file where each line contains a path.Under some of the "final" subdirectories there are 1 or 2 lines that contain some values.The text file looks like this: folder1 folder1\folder2 folder1\folder2\folder3 'something1','something2' folder4 folder4\folder5 folder4\folder5\folder6 …

Member Avatar for Odyssey2001
0
235
Member Avatar for zapman2003

Ok, so I have been trying to google the heck out of this thing to absolutely no avail and I'm really and truly stuck! The assignment, as posed to the class by my operating systems concepts teacher, was to start work on creating a file system. To begin with, he …

Member Avatar for sharawy
0
916
Member Avatar for zolymo

Hello. Im making an webapp using Eclipse Keppler. REQUIREMENTS: - Eclipse for Java EE (or JBoss Developer Studio 7 o 8) - JBossTools installed on eclipse - JBoss Aplication Server 7.1.1 (not eap) - MySQL connector J 5.33 Structure of project: i use this package structure - persistence and ejbdao …

0
89
Member Avatar for Tycellent

std::endl vs \n Are any particular one which should be used at specific times? I understand endl flushes the stream (although i'm not 100% what this means) while \n is simply a newline.

Member Avatar for rubberman
0
407
Member Avatar for minhaajmuntasir.edoo

Let's say I have a table called adverts with the following fields:advert_id, name,date_created description,duration,status,user_id, cat_id. Let's say a user puts a duration of 1 week in the duration field and its status is set to active. After a week has passed, the status is set to inactive in the table. …

Member Avatar for minhaajmuntasir.edoo
0
219
Member Avatar for kidkardel

hi can u guys help me find what is my error in my line. cmd.CommandText = "SELECT * FROM TblLogin where Username='"+ usr_lgn.Text +"'and Password = '" + pswr_lgn.Text + "'where STAFFSTATUS="+"ACTIVE"+""; im having an error saying incorrect syntax near the word where. thank u

Member Avatar for vijay.soni
0
124
Member Avatar for samuel1991

Hi all, actually I have a requirement to remove all non letter character. (Numbers, Punctuation, symbols, non printing characters etc.) string.punctuation does a good job, but it does NOT remove any non English punctuation (Like '。' which is a full stop in Chinese) So I come accross such code: import …

Member Avatar for Gribouillis
0
324
Member Avatar for BibhutiAlmighty

Hi, I want to make a simple application which adds textBoxes when a button is pressed. My friend suggested me to make a List of text Boxes and add a textBox each time the button is pressed but i didn't get it. please help. Thanks in advance.

Member Avatar for Santanu.Das
0
96
Member Avatar for Chem_1

In real time applications where we use shell scripting and how it differ from other scripting languages?

Member Avatar for danielpeterson
0
1K
Member Avatar for shahera.arafat

hii everyone :)) I want to write a prog. that the user can enter e.g (new 1112236) in the black screen ,, then the prog. should go to the (new)func. and create a new node with that ID ..soo how can I split the strings ?and how can I define …

Member Avatar for tinstaafl
0
142
Member Avatar for Papa_Don

Group, I'm trying to write some code that will read the clocktime. When it hits a predetermined time, I want it to run a routine. I know how to do this in VB.net. It would be done like this: Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick If …

Member Avatar for Santanu.Das
0
3K
Member Avatar for Manisha_4

I have a query in sql which i wrote in C#.what the query do is, calculating something like if i have an input of two columns date and no. of balls as Date No. of balls 21/11/2013 2 22/11/2013 3 23/11/2013 4 24/11/2013 5 25/11/2013 2 26/11/2013 5 27/11/2013 4 …

Member Avatar for Santanu.Das
0
165
Member Avatar for BibhutiAlmighty

Hello, I'm trying to make an application with multiple forms. When a button is pressed 1st form hides and 2nd form opens. I have a combo Box on the first form. I want to get the text of that combo Box and show it in 2nd form. I tried it …

Member Avatar for Santanu.Das
0
234
Member Avatar for awahqn

hi everyone, in my server, i am running a script thats uses curl heavily and it usually takes about 5 minutes to finish running. It used to wokr in my previous server, however, once i moved into my new server, it runs only for 30 seconds. In my php.ini, the …

Member Avatar for gabrielcastillo
0
4K
Member Avatar for fheppell

I have some code that takes a URL and downloads it using CURL. Here's the code: $url= $row['loc']; $path = 'tmp/'; $path .= rand(100,999); $path .= $row['name']; $fp = fopen($path, 'w'); $ch = curl_init($url); curl_setopt($ch, CURLOPT_FILE, $fp); $data = curl_exec($ch); curl_close($ch); fclose($fp); $downloadarray[] = array($path, $row['name']); However the file is …

Member Avatar for Isaac_4
0
291
Member Avatar for sammry

This is a SMS DLR application from http://www.smsgatewaycenter.com which is sent by them to my client's url and I need to configure for my client the same from my client's url to his reseller's url. This script uses every 1 hour to post data to my client's reseller/customer. So, it …

Member Avatar for Isaac_4
0
2K
Member Avatar for berserk

I was using this code before and it worked but then i updated my code base to php 5.3 and now it doesnt work anymore. I have looked over the logic time and time again and it should work fine, what am i doing wrong, or am i using deprecated …

Member Avatar for berserk
0
348
Member Avatar for grakovski

Link for API: [Click Here](http://api.uptimerobot.com/getMonitors?apiKey=u118216-ae6b502f1b3f6d272d0f9437&logs=1&alertContacts=1&responseTimes=1&responseTimesAverage=180&format=json) I want to get datetime and type parameters i try to but i get: Notice: Trying to get property of non-object Here is my try t $api_key = "apikey here"; $server = "http://api.uptimerobot.com/getMonitors?apiKey=$api_key&logs=1&alertContacts=1&responseTimes=1&responseTimesAverage=180&format=json"; $server2 = file_get_contents($server); $obj = @json_decode($server2); $cc = $alert->datetime; echo $cc; its …

Member Avatar for Isaac_4
0
388
Member Avatar for chrisschristou

hello i'm using the latest version of wampserver but i have a problem with my alias i get this message "403 forbidden you don't have permission to access / on this server" i had this problem in past and i resolved it by editing line 278 and the document root …

0
111
Member Avatar for asarchit65
Member Avatar for Tcll

if this is in the wrong area, I'm sorry. :) I'm looking for a good alternative for python on linux/wine that's capable of this: http://lh3.ggpht.com/-cuRe_8IrRCw/VEYPPy8J-3I/AAAAAAAAH10/DnjCVyfCEEg/s1282/VS2010.png ^ the popup under my cursor I need that specific level of informative intellisense, which I can't seem to find in any other IDE. (most …

Member Avatar for Tcll
0
631
Member Avatar for alina.nazchowdhury

Dear, All Viewers I am facing some issue during making keylogger I put all code here, please help me to solve out this problem... Here is Code: Public Declare Function IsNTAdmin Lib "advpack" (ByVal dwReserved As Long, ByRef lpdwReserved As Long) As Long Private Declare Function GetForegroundWindow Lib "user32" () …

Member Avatar for Santanu.Das
0
156
Member Avatar for bustamorg

I have been working on this program for a few days and have most of it working, the only issue that I am having is when a word has multiple iterations pf the same letter. I need the program to print out all the letters that are the same when …

Member Avatar for bustamorg
0
235
Member Avatar for Ingska

Hi all! I am trying to post from a form to an URL, using cURL. I have managed to do the posting bit, and my data is coming thew to the URL just like I wanted. Here is my code: <?php //create array of data to be posted $post_data['Application.Ssn'] = …

Member Avatar for broj1
0
583
Member Avatar for batoolhussain

hey all .I have project retrieval image based content(color and shape) and i want to compute RGB color for the image. could you help me please.

Member Avatar for batoolhussain
0
135
Member Avatar for ar0n

i need to save an image to my project using Visual Basic as my Front End and MS Access as my Back End.... i am working on a Student Detail and i need to attach Student picture on each record.. my problem is saving the image.... i already have the …

Member Avatar for Santanu.Das
0
1K
Member Avatar for joshua_8

$("#form1").submit(function(e){ e.preventDefault(); }); $("#submit").click(function(e){ dataString = $("#form1").serialize(); var new = $("input#new").val(); dataString = "new=" + new; $.ajax({ type: "POST", url: "Servlet", data: dataString, dataType: "json", success: function( data, textStatus, jqXHR) { //our country code was correct so we have some information to display if(data.success){ $("#ajaxResponse").html(""); $("#ajaxResponse").append("<b>Country Code:</b> " + data.countryInfo.code …

Member Avatar for wherrelz
0
280
Member Avatar for Malkolm

I want to count how many times a quoted string appears in a string. `Today "is" a new day "because" it is "12" am.` A string like this should evaluate to 3. I don't know why my code prints 0. #include<iostream> #include<string> using namespace std; bool isQstr(string str); int main() …

Member Avatar for L7Sqr
0
291
Member Avatar for yvrej17

Hi, I just need some help in aligning 2 barcodes in just 1 line in receipt using epson standard (ESC/POS). I manage to print barcodes in all kinds of symbology but I can't align 2 barcodes in just 1 line. Please check my codings below. Thank you in advance. Friend …

0
222
Member Avatar for aluhnev

//Hi,i need to create programm,which takes the user input,determins how many digits in integer // and than raise this digit to power,what was entered by user too. //first function noraml,second one to rais to power recursive. So if user enter number //234,this is 3 digits,so now need recurcively 3 raise …

Member Avatar for Banfa
0
272
Member Avatar for aluhnev

//Hi all,can you explain how to call this function in main. //i ask user to enter the number,like this is it correct in main,recursevely call function? bool isPrime(int n, int d); int main() { int number; cout <<"Enter number >= 1"; cin >> number; if(isPrime(number)) { return cout << "Yes"; …

Member Avatar for aluhnev
0
5K

The End.