199,112 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for poloblue

Good Afternoon, I'm a little difficulty with this little program. The error is argument of type int (*)[5] is not incompatible with parameter of type double. I'm getting this error on swapFour(&a, &b); Here is the whole program code double a =102.39, b=201.59; double c=30.99, d=48.99; double e=55.21, f=95.35; //call …

Member Avatar for WaltP
0
170
Member Avatar for annquin

Hi. does anyone know how to save the combobox selected Index like(0,1,2,3) in mysql database by combobox as INTEGER? Please help me..!

Member Avatar for annquin
0
115
Member Avatar for Tko_1

so i have this script for a countdown and i would like to have the font color to be white, but i can not figure it out. thanks <script type="text/javascript"> today = new Date(); BigDay = new Date("<?php require("date.php"); ?>"); msPerDay = 24 * 60 * 60 * 1000 ; …

Member Avatar for Tko_1
0
124
Member Avatar for super-duper

Hey guys, I am trying to write a batch script that GETs the user input for location and a name of the file, STOREs/SAVEs it somewhere (in this case, in those 2 text files), and goes and grabs them for future use. This is gonna be a part of my …

Member Avatar for Reverend Jim
0
233
Member Avatar for theboyandtheocean

If I execute the program from within Visual Studio, the program runs absolutely fine. Once I put the .exe from debug on a different computer, it gives a error of No Value Given for One or More required parameters. I know that it could be that the parameters are incorrect, …

Member Avatar for theboyandtheocean
0
203
Member Avatar for dnanassy

Hello everyone, I'm working on an assignment that requires the use of the Scanner class to read the source code of the .java file and output all lines when executed. I have created a file that works without issues on my machine, but I was wondering if there was a …

Member Avatar for dnanassy
0
508
Member Avatar for Kayla1993

I am doing a project in class. We have to make a program that scans Two Postive Integers, one at a time, using try-catch block. Can some one please help me get started?

Member Avatar for mlesniak
0
120
Member Avatar for griselndria

please if u can help me i have created a log in on dreamweaver and i had created one intranet in one company coz i have on study project to do i have created emploeys with their datas and created a log in form on dreamweaver but the problem is: …

Member Avatar for phorce
0
329
Member Avatar for HunainHafeez

i created database in mysql along with 3 tables but when i opened C:\ProgramData\MySQL\MySQL Server 5.5\data then i found on .frm files and a single .opt file so where is my originalo datbase and data ? my datbase name is kustkht

Member Avatar for HunainHafeez
0
195
Member Avatar for deceptikon

Encoding and decoding functions for RFC 4648 compliant base-64. The code is written in standard conforming C11 and backward compatible with C99 (pre-C99 is *not* supported without code changes).

Member Avatar for deceptikon
0
345
Member Avatar for Sanchixx

Hello, I have a comment system that i wrote in PHP when i have used linebreak: `$area = wordwrap($area, 62,"<br>",1);` to auto break after 67 charectars so my comments don't go over a css box but when i write in uppercase; since the letters are larger it overflows. How can …

Member Avatar for diafol
0
346
Member Avatar for Tinnin

Hello. I'm doing an exercise whereby I need to test if a word is a palindrome. My code for the function is as follows: #include "test_palindrome.h" using std::string; bool is_it_palindrome(const string s) { bool palindrome = true; for(string::const_iterator iter = s.begin(); iter != s.end(); ++iter) { string::const_reverse_iterator rit = s.rbegin(); …

Member Avatar for WaltP
0
156
Member Avatar for kshahnazari

Im so so new to php and sry for my begginer question . <?php $Sal = "HI"; if (preg_match("[a-zA-Z][a-zA-Z]",$Sal)) echo "hi"; ?> this is my code , why doesent the preg_match run and echo "hi"? thank you

Member Avatar for ryantroop
0
141
Member Avatar for Michael27

This tutorial is about extension methods in c# **What is an extension method** Sometimes it is necessary to add functionality to a library for which you do not own the source code and where using inheritance to subclass functionality is not viable. This problem can be overcome with the careful …

0
172
Member Avatar for akileshb
Member Avatar for griselndria

please if u can help me i have created a log in on dreamweaver and i had created one intranet in one company coz i have on study project to do i have created emploeys with their datas and created a log in form on dreamweaver but the problem is: …

Member Avatar for griselndria
0
123
Member Avatar for volkang

Hi, I encounter an assertion error on my thesis while trying to write a line to a file. The related code is pasted below. The funny thing is that this code runs maybe 5000 times and i get the error at 5001 th time. Thank you very much for any …

Member Avatar for volkang
0
352
Member Avatar for triumphost

So I've started learning makefiles today for a project I've been working on. The project uses OpenGL and GDI. I decided to dive right into make files and so far, everything compiles but at the very end, it gives a bunch of undefined references. Thing is, when compiled in codeblocks, …

Member Avatar for vijayan121
0
2K
Member Avatar for venividivici

Hi, my daughter is struggling a bit with maths and logic and I was thinking of doing some programming with her hoping that a different approach to the field might help a bit. I've had some look at Java syntax and I think I should be able to write some …

Member Avatar for JamesCherrill
0
163
Member Avatar for Suzie999

Just wondering what general thoughts there are regarding the pros and cons of `using namespace NameSpace;` vs `NameSpace::Method` Such as, are there any performance gains with one or the other etc...?

Member Avatar for vijayan121
0
257
Member Avatar for Tinnin

Hi everyone. This regards exercise 5-6 of "Accelerated C++". I am asked to rewrite a function so that instead of using erase() to remove an element (of a failing student), I should copy the elements (of the passing students) to the beginning of the vector and then use resize() to …

Member Avatar for Tinnin
0
117
Member Avatar for HankReardon

How do you write an input validation loop that compares strings? My attempt at the code is included. Thank You, Hank Question 4.6. Write an input validation loop that asks the user to enter “Yes” or “No”. import javax.swing.JOptionPane; import java.text.DecimalFormat; import java.util.Scanner; /** CIS-151, Input Validation Loop */ public …

Member Avatar for WDrago
0
1K
Member Avatar for WDrago

This seems like a pretty basic question, but I'm still learning Java and all the nuances of OOP. I have several classes in my program and they all need access to the same ArrayList (the one with all the data in it.) What's the best way to share that list? …

Member Avatar for WDrago
0
107
Member Avatar for gopi17

I'm an enginnering student, our lecturer has ask us to create an opengl app tat shows the bersenham so far i have derive the algo and the pixels...but i don't know how to draw a line between those pixels.. this is what i have so far void init(void) { glClearColor(1.0, …

Member Avatar for myk45
0
341
Member Avatar for HankReardon

For some reason I am having trouble comparing strings when inside a while statement using the using the && and || operators. while (input.equals("Yes")) && (input.equals("No")) The error message implies the parentheses are ending the statement prematurely. Can someone please give me a suggestion? Thanks, Jim

Member Avatar for NormR1
0
189
Member Avatar for sanjeewa.abeywardana

Please any one help me on visual svn **brancing and merging** , a **web site link on how to do that** in a safe way in Visual Tool is better , or may be a **helpful video is better too** , I have a client project where new Features are …

Member Avatar for sanjeewa.abeywardana
0
120
Member Avatar for geetajlo

Hi every1 ! i want to make a search through a datagrid using a textbox. i want the search to be like in the cell phone, i.e whenever u type an alphabetfor e.g P it retrieves all names with P. i just want the textbox to search in one column …

Member Avatar for derpking
0
327
Member Avatar for virendra_sharma
Member Avatar for Markweb
0
115
Member Avatar for rotten69

Hey everyone, I'm learning how to use cakePHP framework. I'm just wondering that how one gets so familiar with a bunch of API's quickly. Do people memorise them at all? I ain't going to because I don't see the point in memorising some things that I even won't need to …

Member Avatar for iamthwee
0
172
Member Avatar for dreday92

Can someone tell me why i get the error code "ISO C++ forbids comparison between pointer and integer" for lines 135 and 149 #include <iostream> #include <iomanip> #include <string> using namespace std; //Structure used to store the name, number of the players, and the number of points of each player …

Member Avatar for Geli19
0
173
Member Avatar for Yorkiebar14

Hello, I have created a website with register, login and logout features where the user information is stored in a mysql database. I have already setup a profile page where the user can edit his/her profile but I need to know how I can make it so any member can …

Member Avatar for Yorkiebar14
0
529
Member Avatar for opman234

Please help me. After I compile my application, and I install it on another person system. Everything work fine. But, access database is in read only mode. So the program could not update or save to database. Please , I don't know what is happening. I have to get this …

Member Avatar for lolafuertes
0
221
Member Avatar for Ahmed Sarwat

I really hope that you can help me installing and configuring Eclipse CDT and MinGW-w64 on my windows 7 64 bit pc. I swear that I am not asking this question as being lazy for not searching but really I have been searching for almost 2 days with no success. …

Member Avatar for deceptikon
0
1K
Member Avatar for mmcdonald

Hey all, This website is a directory and the problem is authenticating users to edit a server, even after they've logged in. The idea is to stop any SQL mix-ups due to my weak code (I'm learning PHP). When they click 'Edit' next to the server after logging in they …

Member Avatar for mmcdonald
0
203
Member Avatar for felgall

JavaScript doesn't actually have a sleep() function corresponding to what is available in other languages. We can easily implement one though. The following code uses afunc as an example function where we want to be able to have the code sleep for a number of milliseconds between sections of code. …

Member Avatar for Troy III
0
367
Member Avatar for Nomi55

i m new in c language.plz tell me which compiler is the best GCC or Turbo c...?i m waiting

Member Avatar for Nomi55
0
260
Member Avatar for HibaPro

i have this connection string <connectionStrings> <add name="Tendering_Pro" connectionString="Data Source=HABOUSH-PC\SQLEXPRESS;Initial Catalog=TenderingProgram;Integrated Security=True" providerName="System.Data.SqlClient" /> </connectionStrings> <system.diagnostics> AND THIS MY CLAAS : Imports System.Data Imports System.Data.SqlClient Imports System.Configuration Public Class BuyNewTender Private conn As SqlConnection Private _MSG As String = "" Private _ProjectTenderingNO As String = "" Private _TenderingNo As String …

Member Avatar for lolafuertes
0
177
Member Avatar for mark.claxton.7

Hi everyone, I am hoping someone here can help me with a problem I am currently facing. I have a website which I have developed with a web host. I also have a domain name which I have set up to mask the URL of my website. However I need …

Member Avatar for ainosilva
0
226
Member Avatar for Dan_iweb

Hi, I have this script, it attempts to place JSON data into a MySQL database. The problem is it duplicates records, this does not happen when the “news_added” field is not NULL. That’s the only thing I can see different. I would like the script to update a record, replacing …

Member Avatar for Dan_iweb
0
135
Member Avatar for Ravish.Ahmad.Khan

**Following is the code snippet to print the series:-** *111 211 311 121 221 321 131 231 331 112 212 312 122 222 322 132 232 332 113 213 313 123 223 323 133 233 333* **But there's some mistake in the code and it gives ArrayIndexOutOfBoundsException.I'm not able to …

Member Avatar for Starstreak
0
173
Member Avatar for MoBaT

I am attempting to complete the towers of hanoi game using 6 towers and an n amount of rings. I attempted to try moving each ring into a seperate tower and then work each tower one by one using recursion, but I could not get an appropriate output. I have …

Member Avatar for np complete
0
120
Member Avatar for mindfrost82

I have the following part of code in a PHP file and I want to know if there's a way to make the URL open in a new window instead of the same window. It might be a dumb or easy question, but I'm not too familiar with PHP [code=php] …

Member Avatar for 2lessons
0
2K
Member Avatar for Naimathullah

I need to display picture name when i move mouseover the picture using onmouseover. Please let me know what I need to add either to javascript or to PHP. <style> #contactdiv { position: absolute; left: 100px; top: 100px; width: 100px: height: 20px; padding: 5px; background-color: red; visibility: hidden; } </style> …

Member Avatar for Airshow
0
706
Member Avatar for eulo

hi all. I have some problem. I want to make Delete multiple rows in mysql with check box. so I did it below. but delete doesn't work. could you tell me where is wrong ? <?php include'conn.php'; mysql_select_db("auction")or die("cannot select DB"); $sql="SELECT * FROM family"; $result=mysql_query($sql); $count=mysql_num_rows($result); ?> <table width="400" …

Member Avatar for simplypixie
0
230
Member Avatar for lizetta

Hey guys I have a mysql database that has an events table. The events table consists of the fields Title, Date, Place and description. I am trying to display the table on the browser using php coding. it should list important events first according to the date. so as follows …

Member Avatar for simplypixie
0
263
Member Avatar for ayub05

I didn't use wordpress or joomla or drupal for my blogsite.Here i see all plugin codes built for wordpress. but these codes does not work at my site. But how can i add Social bookmarking button code to my own created blogsite? my website is built by html, php, css …

Member Avatar for LastMitch
0
246
Member Avatar for bverhaar

I have to make my own turtle class without using the "from turtle import *" line. This is the code i have so far: from graphics import * class Turtle: '''The turtle''' def __init__(self, win, defstep, defwidth, defangle, startpt, startangle): '''initialize the turtle - win: window to draw - defstep: …

Member Avatar for TrustyTony
0
191
Member Avatar for Hemanth.Satkuri

FIRST: String str = queryTextArea.getText(); final JTextArea textArea = new JTextArea(); textArea.setFont(new Font("Sans-Serif", Font.PLAIN, 12)); textArea.setText(str); textArea.setCaretPosition(0); JScrollPane scrollPane = new JScrollPane(textArea); scrollPane.setPreferredSize(new Dimension(350, 150)); int res = JOptionPane.showConfirmDialog(null,scrollPane,"Query", JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE); System.out.println( "showInputDialog: " + res ); if(res==0) queryTextArea.setText(textArea.getText()); Using this I'm unable to resize the document-modal SECOND: String str …

Member Avatar for NormR1
0
722
Member Avatar for John DB

How can I terminate resources in a safe way when JFrame is about to close? - If I put terminate() in the a finally block it runs before windowClosing(). - If I put terminate in windowClosing() it can't be accessed from an inner class. I am aware that I shouldn't …

Member Avatar for John DB
0
195
Member Avatar for steven.myers.3726

**Assumptions** > variables f,g,h,i and j are assigned to registers $s0, $s1, $s2, $s3, and $s4 respectively > The base addresses for the arrays A and B are in registers $s6 and $s7 addi $t0, $s6, 4 #load the forth element of array A into $t0 add $t1, $s6, $0 …

Member Avatar for sepp2k
0
794

The End.