199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jingoria

Hi guys, I am bit puzzled with a requirement on my program: Say I have a class A with some private variables class A { private: string variabe; }; Then I have class b with some other private variables class B { string varialb1; }; Now I have a class …

Member Avatar for Banfa
0
270
Member Avatar for juan.sancen.7

I have some problems in my program. I have to read info from input files and display a message. This is what I have: #include <iostream> #include <fstream> #include <iomanip> using namespace std; void Printing(ofstream& outFile, int& percentFat); void Percent(float& fatGrams, float& cal, float& fatCal, int& percentFat); int main() { …

Member Avatar for deceptikon
0
216
Member Avatar for murnesty

I read a sample code from a development kits. The global array is declared without indicating the array size. I wonder is it safe? Here is the code: #include <stdio.h> // For Used Function printf // UART Buffer char uart0_buf[]; // "sprint" UART[0] Buffer char uart2_buf[]; // "sprint" UART[2] Buffer …

Member Avatar for deceptikon
0
143
Member Avatar for krystosan

in the code from mox example on their page [[http://code.google.com/p/pymox/wiki/MoxDocumentation](http://code.google.com/p/pymox/wiki/MoxDocumentation)] where does PersonDao comes from ? import unittest import mox class DaoUnitTest(unittest.TestCase): def setUp(self): # Create an instance of Mox self.person_mocker = mox.Mox() def testUsingMox(self): # Create a mock PersonDao dao = self.person_mocker.CreateMock(PersonDao) # Return a value when this method …

Member Avatar for krystosan
0
242
Member Avatar for hanan-kh

hi..The problem is that the data is not saved in the database Knowing he was not shown to me any errors in the code, but does not store data in the database <? class myclass{ function __construct(){ $conn=mysql_connect("localhost","root","1"); mysql_select_db("society",$conn); } function validlogin($t1,$t2) { $res = mysql_query("select * from admin where …

Member Avatar for hanan-kh
0
284
Member Avatar for Kalpeshk9967

hi i m making a c# app which reads data from ms accesss & display it in textbox i have tried the following method but that didn't worked suggest me smthing or correct my code pls myconn = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\nature bliss\Desktop\Stock\section1.accdb;Persist Security Info=False"); try { OleDbCommand cmd = new …

Member Avatar for Ketsuekiame
0
258
Member Avatar for Buppy

Hi, I'm currently using this expression to validate at least 2 words, containing letters, "-" and "'". `/^((\b[a-zA-Z-']{2,40}\b)\s*){2,}$/` It works fine until someone enters unicode special characters, like from different languages. I've checked the \p{L} option, but that does not work or I am missing just something. Any help would …

Member Avatar for Buppy
0
144
Member Avatar for game06

so i got finally done with make my player move right and left, and 1st level. now i want to make my player shoot bullets. i kind of now logic behind it but i need some help. and please let me know if you have a better method of bullet …

Member Avatar for JamesCherrill
0
1K
Member Avatar for varunsara

I fetch some data from the remote server and feed it into my site database .It having 9 lakhs of records(app) but the insertion of records stopped 60,180 records only.we use mailto function and exception handler to find the bugs but no response.Anyone please advice me whether the cron get …

Member Avatar for pritaeas
0
425
Member Avatar for coolnezz

Hello C# experts! can't figure it out. obviously i'm missing something. here is part of my code: private void button1_Click(object sender, EventArgs e) { dataGridView1.ColumnCount = 5; dataGridView1.Columns[0].HeaderText = "Payment #"; dataGridView1.Columns[1].HeaderText = "Monthly Payment"; dataGridView1.Columns[2].HeaderText = "Amount to Interest"; dataGridView1.Columns[3].HeaderText = "Amount to Principal"; dataGridView1.Columns[4].HeaderText = "Remaining Balance"; double …

Member Avatar for coolnezz
0
414
Member Avatar for fonzali

hi , I have found vegaseats codes and tutorials helpful for biginners , how can I collect them in the pdf format?

Member Avatar for fonzali
0
160
Member Avatar for riahc3

Hello Im trying to make a cookie that I can use across one domain on different pages. Lets say my domain is example.dev var expiremilliseconds = 86400000; var currdate = new Date(); var expirationdate = new Date(currdate.getTime() + expiremilliseconds); document.cookie = "somecookie=true;domain=.example.dev;path=/;expires=" + expirationdate.toGMTString(); Thing is, I browse around my …

Member Avatar for riahc3
0
138
Member Avatar for dinhunzvi

i have the following php files. <?php require_once '../moonlight/includes/mysql_connect.php'; require_once '../moonlight/includes/functions.php'; require_once 'includes/reader.php'; /** * @author FreeUser * @copyright 2013 */ if ( isset( $_POST['submitted'] ) ) { $errors = array(); if ( $_POST['authorityID'] == "" ) { $errors[] = 'Select the paying authority.'; } else { $authorityID = (int)$_POST['authorityID']; …

Member Avatar for dinhunzvi
0
202
Member Avatar for jeremywduncan

Hi again all, I have been tussling with this program all day. I can't seem to get pickle.dumps (or f.write..tried that earlier) to save without saving over itself. If I do a deposit(option 1) and then a withdraw(option 2), and then history(option 3), it only shows the last option ran …

Member Avatar for woooee
0
271
Member Avatar for pearl.kumar1

Hi to all, I try to insert a values in SQLSERVER 2005,It shows "Msg 544, Level 16, State 1, Line 1 Cannot insert explicit value for identity column in table 'designation' when IDENTITY_INSERT is set to OFF." BEGIN TRAN INSERT INTO DESIGNATION (ID,DESIGNATION) VALUES(17,'TEST') COMMIT Kindly Suggest How to Solve …

Member Avatar for pearl.kumar1
0
100
Member Avatar for ajonk

Dear all Members here I need international Journal for Software Engineering Maybe some of u can help me to find the link or the journal thnk's before best regart ajonk

Member Avatar for ajonk
0
90
Member Avatar for ImZick

Hi i finally done my first project and thanks to those who help me here in daniweb. Special mentions @Reverend Jim and @TnTinMN. But when i run the setup to install it in another computer which is a 64bit. My project didnt connect to the database which is access. But …

Member Avatar for ImZick
0
217
Member Avatar for kingk110

I am using the google search engine. I can add autocomplete terms and upload an xml file with the autocompletetion terms within the site itself. I am trying to auto upload this xml file by a console application or a php file.Is there a way that I can auto-upload this …

Member Avatar for LastMitch
0
302
Member Avatar for alfiechiong

Is there anyone here has an solution for using js dom or jquery on web workers i have a jquery function that was needed to call inside the web worker but the problem is that the web worker doesnt recognize the jquery dom . thank you in advanced :)

Member Avatar for alfiechiong
0
121
Member Avatar for m.tompkinsnz

Hi Guys, I'm currently embarking on a project relating to inventory management within my business, and have done a concept in Visual Basic. I'm now going through the motions of deciding which angle to take in regards to mobile access of the application. I have thought about whether to write …

Member Avatar for LastMitch
0
174
Member Avatar for vijayram

Hai all, I want to achieve the Resize,Drag and rotate functionality on an image seleted by the user.I am able to do all these in separate function ,but couldn't incorporate in single function. Since the images are dynamically created,i need a single function. For example If i join rotate with …

Member Avatar for LastMitch
0
2K
Member Avatar for RascelleGrepo

Hi. I am working on my Online Examination project in my web development subject but I am having a hard time to code how to go back to my previous page where I put session on it. my online exam are categorize by subject then inside the subject there is …

Member Avatar for kindo
0
402
Member Avatar for prasenjit_das

Hi All I Have 5 docking Zone in page1.Aspx File ..Now I drop Control window(ascx file) into Docking Zone..Those are Working Well.Now I Want refresh Particular one Ascx File on Page1.aspx and I Dont want page1.aspx refresh.I want Only particular one Ascx file Refresh Among 4 Ascx File. I Tried …

Member Avatar for LastMitch
0
217
Member Avatar for mohd.sajid.3367174

In a table,in first row consist of static html control (1 select control and 5 textboxes).From second row onwards i created the rows dynamically(consist of 1 select control and 5 textboxes) on click of html button.Creation is successfull.But problem arised when i wanted to attach dataset table data to html …

Member Avatar for LastMitch
0
256
Member Avatar for brandon66

Hey guys i was just wonder how i would do this; i need to supply a value for Counts() in the triples function how would i do this to check all values in the array? Private Counts() As Integer = {two, three, four, five, six, seven, eight, nine, ten, eleven, …

Member Avatar for brandon66
0
97
Member Avatar for Djmann1013

I am having a bit of trouble with converting a string (url) into a Uri. Here is the screenshot of the error: http://www.imgbomb.com/i/d15/3bk3v.png Here is the code that is giving me trouble: Private Sub ComboBox1_Change(sender As Object, e As EventArgs) Handles ComboBox1.TextChanged Dim myString As String = ComboBox1.Text.ToString() Me.WebBrowser1.Navigate(New Uri(myString)) …

Member Avatar for TnTinMN
0
2K
Member Avatar for rexmatthew

Please help. I can't get my calendar to automatically get the current date. I'm not sure where the problem is so I'll post the whole script. Here it is. (function($){ var availableTags = [ "ActionScript", "AppleScript", "Asp", "BASIC", "C", "C++", "Clojure", "COBOL", "ColdFusion", "Erlang", "Fortran", "Groovy", "Haskell", "Java", "JavaScript", "Lisp", …

Member Avatar for rexmatthew
0
292
Member Avatar for rexmatthew

Please help. I already had my booking calendar added to my site last week and the calendar showed up but now only the booking form is showing up but the calendar does not seem to show. I've tried a lot of fixes and nothing seems to work. Please help. ------------------------------------------------------------ …

Member Avatar for rexmatthew
0
365
Member Avatar for ralph.d.abernathy.1

Hello all. I'm writing a program that converts from any cominbation of base 2, 8, 10, and 16. So far I have this code and I want to convert from hexadecimal to octal but it doesn't work. I would appreciate any help. Thank you! Here is the code: #include "stdafx.h" …

Member Avatar for Nutster
0
503
Member Avatar for sk8ergirl

I'm using visual studio C# I have gridView and I checked enable selection I have radioButtonList with two values when the page load I want the cloumn with the selection to be hidden, but when the user choose one of the radioButton the selection column will be visbale Here is …

Member Avatar for ddanbe
0
127
Member Avatar for terrier_unknown

hy guys can you please tell me what s wrong with the folowing code float a,b,c; printf("input three numbers:\n"); scanf ("%f%f%f",&a,&b,&c); float z=sqrt((1/2)*(pow(a,2.0)+pow(b,2.0)+pow(c,2.0))-(3/4)*pow(a,2.0)); printf("res is %f",z); getch(); return 0;

Member Avatar for terrier_unknown
0
113
Member Avatar for oyebimbola

I am currently fluent with html and css. My goal is to create a website where there will be tasks for site users to gain points for completing certain tasks. Tasks include reviewing a material they used which they will gain points for if the review is useful, points are …

Member Avatar for JorgeM
0
115
Member Avatar for tyler.dahle

void runGame(){ readimagefile("PIX\\Landscape.jpg", 0, 0, 800, 800); while(1 == 1){ moveCharacter(); //moveMonster(); } } void moveCharacter(){ int move = 0; int size = imagesize(0, 0, 800, 800); void *background = malloc(size); getimage(0, 0, 800, 800, background); readimagefile("PIX\\Character\\down_still.gif",x9,y9,x9+50,y9+50); thunderClaw(); //specialAttack(); //thunderball(); if(kbhit()){ if(getch()== 'd'){ move = 1; } if(getch()== 'a'){ move …

Member Avatar for tyler.dahle
0
200
Member Avatar for sgw

The number D computed by the following polynomial formula D=(pow(i,5.)/120)-(pow(i,4.)/12)+(23*pow(i,3.)/24)-(83*i*i/12)+(571*i/30) should always be an integer, when i=1,2,3,4,5,.... However, for some i values, each separate term may not be an integer, but when putting together (with additions and subtractions) in the above formula, any non-integer parts would be "cancelled out", and …

Member Avatar for sgw
0
162
Member Avatar for davidjennings

Hi All - I am trying to correctly valididate forms on serverside using PHP and on client side with JavaScript I seem to have got lost in the processes here. Thanks DJ <?php // define variables and initialize with empty values $fname = ""; $fnameErr =""; $lname = ""; $lnameErr …

Member Avatar for rotten69
0
306
Member Avatar for VIPER5646

Hi all I have multiple checkboxes to be used as the status of a certain order. another words as the order is being processed the user will check the status and a date will be inserted into an access table. Now my isue is when a checkbox is checked for …

Member Avatar for VIPER5646
0
420
Member Avatar for vinnitro

I am new to website designing & ASP.NET but knows few basic things. As a final year project i have choose to make a **Music Website**. It will sell the albums & songs developed by the organization. Yesterday I showed it to my project guide in the college. Before that …

Member Avatar for JorgeM
0
241
Member Avatar for tubzz

impliment the selection sort algorithm to sort the elements in a two dimentional array of order 3*4 in descending order. the program should prompt the user to input 12 element, sort and display the elements in the matrix format.

Member Avatar for tubzz
0
423
Member Avatar for akuteru

Hello, i wanna ask you guys if there is anyway i can get the value of a dropdown and pass it to another php file without using the <input type="submit> way? The way is i have the options in my menu coming from the database This is my code on …

Member Avatar for broj1
0
210
Member Avatar for cplusplusgeek

I have an entity named Country with fields: CountryID, CountryName where CountryID is a primary key. And i like to create a general stored procedure that does INSERT, UPDATE and DELETE operations. How can i do that?

Member Avatar for Reverend Jim
0
2K
Member Avatar for tony75

Hi I would like to write the script that produces at least 6 encrypted password using crypt module and save them in a file called password.txt but I get error? and How can I add more than 6 encrypted password ? import crypt import random, string password = input("Please ender …

Member Avatar for tony75
0
663
Member Avatar for engrjd91

Hello i m the student of B.E ( Computer Systems ) .. i have to submit my Final year project proposal within 1 month.. my teachers had concerned me to work on android.. but being an engineer student they want a hardware based project from my side.. i have to …

Member Avatar for <M/>
0
115
Member Avatar for engrjd91

I'm a beginner in php.. can any one explain cookies & sessions in an easy way for me? i have surfed different sites for it also i have taken many trainings but yet i m not that much clear about these two concepts... kindly help me out !

Member Avatar for engrjd91
0
103
Member Avatar for krystosan

I wrote this function earlier to set the priority if the items in listwidget, however what I think would be more pythonic is to write get and set priority method... how should i proceed with writing the method in a pythonic way ? def changePriority(self,direction): """ Reorder the items in …

Member Avatar for woooee
0
240
Member Avatar for SHINICHI

I need a little help on writing the following program: Use the Account class to simulate an ATM machine.Create ten accounts in an array with id 0, 1,. . . 9, and initial balance $100. The system prompts the user to enter an id. If the id is entered incorrectly, …

Member Avatar for untio
0
907
Member Avatar for robinkang

want the value cookie that i got from the following code further used in php script to visit next url because value of cookie used in url ....how i can save value of cookie and again use it in my php script suppose cookie is JSESSIONID GT1~A555400D38C7F737D383DEEBA8A30CE3.GT.1 and my next …

Member Avatar for robinkang
0
259
Member Avatar for sk8ergirl

My page have textbox , lable and one button when the user click the button it should display message if the user in the database "email has been sent" the message will show otherwiser it will show "email is not in the system" this is what I did , but …

Member Avatar for Momerath
0
181
Member Avatar for Ondrej.Behulek

Hello, I have a course that is Operational Systems.. My lecturer doesnt explain so much and after He say, You must solve this problem, because u r a programmer.. I have such a problem with linux programming. I put my code here, He wants, I must allow multi-client to server. …

0
245
Member Avatar for hwoarang69

trying to buld gllery.php page. where i want to print all user image with 4 cols. and infity rows. all in one page gallery.php <?php session_start(); include("connect.php"); $user = $_SESSION['username']; if($user) { $user_id = $_SESSION['user_id']; //get user_id who ever is loged in $image = mysql_query("SELECT * FROM image WHERE user_id …

Member Avatar for suresh.godavarthi.77
0
2K
Member Avatar for chocolatte.lavista

guys, how to make a simple program that can combine basic C++,array,function and pointer altogether.can anyone help me please? thank you! :)

Member Avatar for chocolatte.lavista
0
145

The End.