64,152 Solved Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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 … | |
I want to know how to make a program to convert from binary to decimal and from decimal to binary | |
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> … | |
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 … | |
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.*; … ![]() | |
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 … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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, … | |
![]() | 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 … ![]() |
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 … | |
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 … | |
[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? | |
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); … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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... | |
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. … | |
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? | |
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 … | |
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; … | |
[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 … | |
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 … ![]() | |
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() … | |
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. | |
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 … | |
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 … | |
| |
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, … | |
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; … | |
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 | |
Hi all, can any one tell me how to find unique values in array list? Thanks in advance.. | |
[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 … | |
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. | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.