64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for andrewleighton

hi, forgive me if this is a silly question, i've started work on my first "real" web site and have hit some doubt in my mind, could someone please just confirm if i'm on the right track...? if i have a label control and in the page load have label1.text …

Member Avatar for andrewleighton
0
97
Member Avatar for Sunshine2011

Within a function a vector could be given back via "return". Example: [CODE] vector<int>myvector() { vector<int>myvector; return myvector; } [/CODE] Better would be to work with a reference, e.g.: [CODE] vector<int>(&myvector)() { vector<int>myvector; } [/CODE] But this reference doesn't work. Does anyone have an idea what the correct code would …

Member Avatar for vijayan121
0
159
Member Avatar for Zssffssz

ok all I need is to do is put qoits in cout. Like cout<<"She said"this""; or something like that. It is not dissus able I need quotation marks in it. (makeing JavaScript thing from inside program with user imput.) Just tell me how to do it instead of alternative ways …

Member Avatar for vijayan121
0
107
Member Avatar for Egypt Pharaoh

I want to know how to make a program to convert from binary to decimal and from decimal to binary

Member Avatar for megabuild7
0
242
Member Avatar for reco21

hello. i've created this with help from a friend. |uid || id ||url| i have input fields to add the data. [CODE]<table width="100%"> <tr> <td width="140" style="padding:4px;">url 1:</td> <td ><input type="text" class="edit bk" name="urls[]" style="width:350px"></td> </tr> <tr> <td width="140" style="padding:4px;">link 2:</td> <td ><input type="text" class="edit bk" name="urls[]" style="width:350px"></td> </tr> <tr> …

Member Avatar for cwarn23
0
264
Member Avatar for ThuggyWuggy

I attempted to overload the == operator for one of my classes, I even copied a previous implementation of it, but now that I am using pointers it refuses to function properly here is the relevant code (there is a lot so I will provide more if need be) [CODE]#ifndef …

Member Avatar for ThuggyWuggy
0
6K
Member Avatar for javaNooblet

Hi All, The GUI works as intended to. But I was wondering if some of you java gurus could look over my code and maybe give me some tips on how I could have written this code better. Thanks! [B]GUI CLASS: [/B] [CODE]import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.*; …

Member Avatar for hfx642
0
230
Member Avatar for DmytriE

Hello everybody, I have never done anything with dynamic memory allocation and was trying to allocate enough memory to hold four elements of an array. Each of these elements will hold another array that will hold the actual data. My questions is how can I check the size of a …

Member Avatar for DmytriE
0
118
Member Avatar for Zssffssz

ok all I need is to learn how to convert a char variable into a acsii byte and back again. €£¥$ Edit: I know about typecasting or something and it's not exactly what I need because I wat to store the new variable in a int vareuble and I don't …

Member Avatar for Fbody
0
155
Member Avatar for ste_a47

[CODE]class InspectionGroup(models.Model): group = models.CharField(max_length=50) class InspectionItem(models.Model): group = models.ForeignKey(InspectionGroup) item = models.CharField(max_length=50) class InspectionQuestion(models.Model): item = models.ForeignKey(InspectionItem) question = models.CharField(max_length=200) question_pass = models.BooleanField() class InspectionResult(models.Model): question = models.ForeignKey(InspectionQuestion) vehicle = models.ForeignKey(Vehicle) result = models.BooleanField() submitted_by = models.ForeignKey(User, editable=False) date_time_submitted = models.DateTimeField(default=datetime.today, editable=False)[/CODE] From the above structure, I'd like to …

Member Avatar for ste_a47
0
190
Member Avatar for Coderunner

I know that you can count the number of lines with [CODE]$record = file($data_file); rsort($record); $total_lines = count($record); echo $total_lines;[/CODE] Is there a way to count only lines with certain words and get a total? for example I have a flat file with |~|opel|~|red|~|doors 4|~| |~|opel|~|red|~|doors 2|~| |~|opel|~|blue|~|doors 4|~| |~|opel|~|white|~|doors …

Member Avatar for Coderunner
0
131
Member Avatar for pfmk2

Let me start by lettin Ya know I've attempted to see if what I need is in other posts, but i either didn't search the right parameters or just didn't know what i was looking at.. I know enough php to collect data and that's about it :-( I have …

Member Avatar for pfmk2
0
144
Member Avatar for SyncMaster170

Hello all! So in my app, I have 5 columns, firstname,lastname,membership,accountid, and date. Once a members card has been scanned, the app figures out if that member is in my sql table or not. If he/she is, it will update their 'date' column in my dgv. If he/she is not, …

Member Avatar for Mitja Bonca
0
132
Member Avatar for stephen_UK

Please could you tell me where I am going wrong I want to open 1 of 2 forms depending if a certain text is present in a field of a table. If text "Expired" is present in the 'Name' field of Table 'MAIN' then open form 'Expired' and if is …

Member Avatar for stephen_UK
0
144
Member Avatar for jagan605

i am trying to implement ceaser's cipher in the generic sense by rotating the digits by integer n.i am trying to find out the pairs of these from a file containing words. this what i've done so far, [CODE] from string import * d = dict() l = [] for …

Member Avatar for TrustyTony
0
198
Member Avatar for twalton42

I have made a form that loads at the begining of my program. Checks for accounts due on the day the program is run. It loads fine with my SELECT statement. Can someone help figur out how to close the form if the Select returns NULL.. Here is my form …

Member Avatar for twalton42
-1
127
Member Avatar for codeorder

[CODE] With bulbPrgSave1, bulbPrgSave2 .Value = 50 End Wit[/CODE] What would I need to create something as the above and set values to 2+ ProgressBars? A Structure? Property?

Member Avatar for codeorder
0
184
Member Avatar for Will Gresham

Hello, I am having an issue with C++. I am relatively new to this language. The issue I am having is that I am unable to use a variable declared as private in my class. Definition: [code] class Matrix { public: Matrix(void); Matrix(int rows, int cols); Matrix(const Matrix& m); ~Matrix(void); …

Member Avatar for JasonHippy
0
163
Member Avatar for rezial

ok for some reason I keep getting this error. I know that it normally happens when u forget to put in a curly brace and the compiler thinks your trying to define a function within a function but I cant seem to fix the error sooo hopefully someone here would …

Member Avatar for JamesCherrill
0
200
Member Avatar for SyncMaster170

So heres my problem: I have a datagrid w/ 5 columns(ID, firstname, lastname, Membership, Date). My app takes a 5 digit number from the user and with that number populates my datagrid with the members information. My BIGGEST problem is trying to check to see if the member is already …

Member Avatar for SyncMaster170
0
110
Member Avatar for babydol

Hi i m creating a small web application that allows a user to select multiple options from a list box.The problem is i cannot write that information to the database. I have two forms: one to get information from the user and another to write that info to the database.The …

Member Avatar for wonderlhily
0
2K
Member Avatar for jakizak

Hi everyone, Having a little difficulty getting anything from this. The code appears to me to be correct, then again I have been looking at it for hours, so it is possible there could be a mistake...... :/ Anyway, the code seems sound, should let me login and instead gets …

Member Avatar for jakizak
0
189
Member Avatar for DaveyMoyes

Hi all, I need someone to help me out, I am trying to call a .php file with php variables - [code] include('Code.php?buyer='.$lastid.'&oid='.$oid.'&bid='.$bid.''); [/code] when i edit the url myself using values from the database it works like it should do. but when I am calling the php file using …

Member Avatar for DaveyMoyes
0
165
Member Avatar for TurkAlush

Hey I need something to help me train in C# I would like learn alot, but the pro's became pro by using the system all the time. Any off the pro's that could help me something to work with, give me idea's and how to start with the idea's...

Member Avatar for TurkAlush
0
92
Member Avatar for ebanbury

Hi Can anyone see what is wrong with this: [CODE]<?php echo date_format($row_rs_propdetails['add_date'],'Y-m-d'); ?>[/CODE] The error message I get is: Warning: date_format() expects parameter 1 to be DateTime, Any help would be much appreciated. Basically wanting to bring back the date in add_date column, but just the y-m-d with no time. …

Member Avatar for mschroeder
0
217
Member Avatar for jtodd

Hello everyone! I created a database in Access 2010. I am thinking of creating a front end in Visual Basic and was wondering if anyone had any experience with this. Is it doable? Or should I save my time and use access's front edn?

Member Avatar for NetJunkie
0
112
Member Avatar for convoluted

Hi all. I'm trying to capture video from a webcam and then display the feed in a wxPython GUI. I originally borrowed code from the OpenCV wiki ([url]http://opencv.willowgarage.com/wiki/wxpython[/url]), and since the code was for OpenCV 1.x I tried to adapt it for version 2.1. Here's my attempt to far: [CODE]import …

Member Avatar for lassytouton
0
2K
Member Avatar for deefpi

Hello. I have a datagrid with 9 columns. I want to add a one row from data table who is that same. I believs I can do it that: [CODE]DataGridViewRow drow = new DataGridViewRow(); foreach (DataRow wiersz in dTable2.Rows) { for (int i = 0; i <= ilosckolumn - 1; …

Member Avatar for deefpi
0
446
Member Avatar for homeryansta

[CODE=C++]void List::remove_last() { if(first == NULL) { first -> data = ' '; } else { Node *newnode; newnode = new Node; newnode = NULL; newnode -> data = last -> back -> data; last = newnode; } }[/CODE] am I doing something wrong? I'm trying to remove the end …

Member Avatar for sunn shine
0
178
Member Avatar for gamestoenjoy

Hi, I have two php pages. On the first php page called process.php I have the following code: [CODE]setcookie('username', 'dan', time() + 2592000 , '/');[/CODE] And when I use the following code in this page: [CODE]$username = $_COOKIE['username']; if (isset($username)) { echo $username;[/CODE] Everything works fine, and I get the …

Member Avatar for diafol
0
231
Member Avatar for 54uydf

I'm trying to pass a word that has the char ' or " in the middle of it. it's one of the fields in a form, so when I submit, the next page gets only the part of the word before the " or ' char. I tried using mysql_real_escape_string() …

Member Avatar for 54uydf
0
136
Member Avatar for mrjillberth

I am going to do my first Java Project the ElGamal's Encryption. Honestly, i have no idea yet on how to start my program because i don't have idea in encryption but i have to do it. Because it was assigned to me by our instructor. Please help me.

Member Avatar for mrjillberth
0
1K
Member Avatar for Cupidvogel

Hi, I am learning Python, and I was just wondering whether Python can achieve everything PHP can. I don't know PHP, but I know it's a server side scripting language, and it is often embedded in HTML pages. Can Python be used in the same manner, i.e. embedded in HTML …

Member Avatar for Cupidvogel
0
213
Member Avatar for extemer

can some one explain me that line by line [CODE]$("#amount").keydown(function(event) { // Allow only backspace and delete if ( event.keyCode == 46 || event.keyCode == 8 ) { // let it happen, don't do anything } else { // Ensure that it is a number and stop the keypress if …

Member Avatar for MartinRinehart
0
111
Member Avatar for eddieteddie
0
70
Member Avatar for phoenix416

Hey guys, Can anyone please help me with the code, I am trying to find the error, but no luck. Everything is coded properly. Server is running on php 5.3.8, MySQL 5.1 When I try to execute my php file, it gives me an error : Parse error: syntax error, …

Member Avatar for phoenix416
0
1K
Member Avatar for dancks

The original question I posted on Yahoo Answers: [url]http://answers.yahoo.com/question/index;_ylt=Au6uML15p1p500urP_yfL9fsy6IX;_ylv=3?qid=20111002100030AAILsNC[/url] I can't get this code to return anything: In NewVector.java: a class that extends Vector: [code]public Object getSmallest() { Object obj = elementData[0]; try { String a = (String)elementData[0]; for(int i=1;i<elementCount;i++) { String b = (String)elementData[i]; if(a.compareTo(b)>0) { a = b; …

Member Avatar for JamesCherrill
0
200
Member Avatar for dwiniers

Hello there i need your help and expertise. Anybody can help me how to make a code or how to make a word running like marquee in a text box. Thanks in advance! br

Member Avatar for dwiniers
0
217
Member Avatar for anand01
Member Avatar for anand01
0
3K
Member Avatar for anonimous

[CODE]If ListView1.SelectedItems.Count = 0 Then MsgBox("Plese Select a Product") Else Dim price As Double Dim quantity As Integer Dim total As Double price = ListView1.FocusedItem.SubItems(3).Text quantity = ListView1.FocusedItem.SubItems(2).Text If txtProductName.Text = "Happy" Then If txtQuantity2.Text > 20 Then total = price * Val(txtQuantity2.Text) * 0.95 total = Format(total, "0.00") execute("insert …

Member Avatar for Capritarius21
0
113
Member Avatar for vanpersie

Hi Generaly what skills that I should know in PHP to be a candidate to work in a company In other words I have studied the basics of PHP what you advise me to know more. thank you.

Member Avatar for chrishea
0
113
Member Avatar for bobytch

Good Day Everyone here is my code so far [CODE] #include <graphics.h> #include <stdlib.h> #include <stdio.h> #include <conio.h> void vp(int x,int tc,int bk,char *text); void square(int x,int y,int size); void main() {//=========================================================== int gdriver = DETECT, gmode, errorcode; initgraph(&gdriver, &gmode, "C:\\TC\\BGI"); //------------------monitor-------------------- setbkcolor(0); setcolor(15); square(300,160,150); square(300,160,148); square(300,160,130); square(300,160,131); setaspectratio(2,5); int …

Member Avatar for vidit_X
0
285
Member Avatar for malcomm

Hi I have a web form with a label on it. The content of that label is updated in response to some javascript on the client webpage. Upon completion of some data entry, a button is clicked which adds that labels data (and others) to a gridview. Basically this all …

Member Avatar for malcomm
0
281
Member Avatar for toneatles

Hello all, I have a assignment for school that I am having trouble with. I have to write a program that will list all primes numbers of an inputted number. I have the code and it compiles with no errors, but when I run it after i input the number, …

Member Avatar for vidit_X
0
186
Member Avatar for linux

This is for a CS course I am taking. I'm stuck. I need to write a program that takes a number and tallies up how many cycles it takes of multiplying the digits until it is a single digit number. ie: 715 = 7 * 1 * 5 = 35 …

Member Avatar for linux
0
124
Member Avatar for juniorsilver

I designed an application with vb2010 and i would like it to run on a Windows XP platform without the trouble of installing the .NET framework 4.0 and the VBPowerpacks module. I tried copying the DLL files of what i needed and placing them in the application folder, but it …

Member Avatar for juniorsilver
0
207
Member Avatar for davy_yg

tampil_produk.php [CODE] <?php include "includes/koneksi.php"; echo "<table>"; $sql=mysql_query("select * from produk order by id_produk desc"); while ($r=mysql_fetch_array($sql)){ $harga = number_format($r[harga],0,",","."); $deskripsi = nl2br($r[deskripsi]); // membuat paragraf $isi = substr($deskripsi,0,220); // ambil sebanyak 220 karakter $isi = substr($deskripsi,0,strrpos($isi," ")); // potong per spasi kalimat echo "<tr><td><img src='foto_produk/small_$r[gambar]' align=left hspace=20 border=0></td><td><b>$r[nama_produk]</b> <br …

Member Avatar for pzuurveen
0
162
Member Avatar for davy_yg

media.php [CODE] <?php session_start(); if (empty($_SESSION[username]) AND empty($_SESSION[passuser])){ echo "<link href='style.css' rel='stylesheet' type='text/css'> <center>Untuk mengakses modul, Anda harus login <br>"; echo "<a href=index.php><b>LOGIN</b></a></center>"; } else{ ?> [/CODE] Notice: Use of undefined constant username - assumed 'username' in C:\xampp\htdocs\SourceCodePHP\bab 4\toko\adminweb\media.php on line 4 Notice: Use of undefined constant passuser - assumed …

Member Avatar for mschroeder
0
2K
Member Avatar for dospy

i've seen many programs using printf( ) for outputing(probable ported from C) but anyway, is there any difference between printf and cout? also i've seen many functions(expecially in windows.h) using w_char*(wide char string) as arguments or return value(and it bugs me because it makes difficult to use with strings) what's …

Member Avatar for dospy
0
271
Member Avatar for Rizi004

hello i have a form for registering the user and i use java script for client side check that the field is filled or not the problem is that when user not fill the first name and press register button it will show client side message that the first name …

Member Avatar for phoenix_2000
0
114

The End.