199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for apanimesh061

I have a table ... Ratings (userid, movieid, ratings, time) where ... select count(*) from ratings where userid = X; (No of ratings of a particular user) Here, X ranges from 1-6040! How should I get the count of each user and then store it in another table 'Users' in …

Member Avatar for debasisdas
0
109
Member Avatar for creative_m

I am trying to compile NeHe code for win32 app in visual studio 2010. but this error appear: [CODE]cannot convert parameter 2 from 'const char [29]' to 'LPCWSTR' 1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast[/CODE] to these instructions [ICODE] if (!wglMakeCurrent(NULL,NULL)) // Are …

Member Avatar for creative_m
0
393
Member Avatar for rraj.be

when i try to compile this code i get ERORR: unable to open include file sdl.h [CODE]#include "stdlib.h" #include "SDL/SDL.h" // *** IF USING XCODE ON MACOS X, YOU MAY NEED TO CHANGE THE FOLLOWING LINE TO: #include "SDL_mixer/SDL_mixer.h" #include "SDL/SDL_mixer.h" //Function prototyping action! void musicFinished(); int musicPlaying = 0; …

Member Avatar for maski4real
0
521
Member Avatar for Nawaf15

Hi everyone, I have written this code which can find the square root of a positive number using newtons method. The code below describes it all. Now, I just need to know how can I show each iteration of the loop? like I wanna out each iteration until the final …

Member Avatar for Eagletalon
0
367
Member Avatar for Kob0724

I'm not sure if this is the best place for this thread, but it's the best I could come up with. I'm using a QT Style Sheet to style a radio button like this: [CODE] QRadioButton{ background:#5F7536; color:#CBF57D; font:bold; } [/CODE] It works fine except that in addition to changing …

Member Avatar for naresh4230
0
3K
Member Avatar for Z33shan

hello :) i'm using MS access as a database of my Windows form application. i'm having problem with create table query, with variable table name. i have tried, but it din't work, as i tried. plz provide an example that can make me understand. suppose, string city = "newyork"; and …

Member Avatar for aquilax
0
262
Member Avatar for huskarit

Hi everyone! i try to make a regualr expression format to validate phone number at this format: (555) 555-5555 [CODE] Dim IsPhoneValid As New System.Text.RegularExpressions.Regex("^/([0-9]{3}/)*[0-9]{3}*[0-9]{4}$")[/CODE] but it doesn't not work....somebody helps me out..

Member Avatar for Jx_Man
0
184
Member Avatar for shamara

please m I want help , I am a new member I dont know How I use this site , I attached some problem and I want help :)

Member Avatar for shamara
0
136
Member Avatar for 2hop260

Now before you give me a knee-jerk "do your OWN homework we-won't-help-you-cheat" reaction, please read this all the way through. My homework assignment is to write a Caeser Cipher (from my understanding its very common for professors to give this assignment) and I have that done (with some help from …

Member Avatar for 2hop260
0
757
Member Avatar for OnIIcE

Hi guys, im trying to upload files to my script and have hit an anoying problem. if the file is bigger than what I allow in in my php.ini config, the $_POST and $_FILE comes through empty - and I cant check that there's been a post to then check …

Member Avatar for veedeoo
0
115
Member Avatar for starkles

Hello everyone, I have been working on a python script to help assign university students to workplace placements. The problem is that for a given group of students there are only a limited amount of places and each placement location can only caters for a few students. The ideal solution …

Member Avatar for TrustyTony
0
214
Member Avatar for suomynona

I made a Client and Server program based on the code found in [URL="http://www.daniweb.com/software-development/csharp/threads/228973"]this thread[/URL]. Here's the code of my program Client (Sender of file) [CODE] //Before calling this function, //I send the file size to the server first private void fileToServer(string filename) { try { FileStream fs = new …

Member Avatar for suomynona
0
425
Member Avatar for ilovephil

Why i always get the address of the number?? 2295367 >_< #include<stdio.h> #include<stdlib.h> #define p printf #define s scanf #include<ctype.h> struct node { int data; struct node *link; };typedef struct node *nodepointer; void push(nodepointer &top,int number) { nodepointer newnode,temp; newnode=(nodepointer)malloc(sizeof(struct node)); newnode->data=number; newnode->link=NULL; if(top==NULL) { top=newnode; } else { temp=top; …

Member Avatar for histrungalot
0
174
Member Avatar for William77

Hello, I'm a real beginner and try to learn Visual Basic. I have to code a marking assistant as illustrated in the attached picture. I chose to use a listView to display the information typed by the user. I succeeded to display the information in three first columns, but I …

Member Avatar for ChrisPadgham
0
146
Member Avatar for johanjvanr

Hi all I have a list of 20 numbers and I have to write a program that takes the first 3 numbers, calculate the median and shoots out the median in table format. Then the program takes numbers 2,3,4 and calculate the median and shoots it into a table. Then …

Member Avatar for BobS0327
0
146
Member Avatar for Blacklister

i want to display data from mysql database in table form on the web page . Ex. - If there are 100 entries in the database then only 10 entries can be displayed i should be able to use 'next' and ' previous' buttons to display consecutive data tables containing …

Member Avatar for tulalit
0
554
Member Avatar for tubby123

Hi, I get the error "warning: array ‘str’ assumed to have one element [enabled by default]" when I am trying to fill in values inside the string array. [CODE]#include<stdio.h> #include<string.h> #include<malloc.h> char* str[]; int i = 0; int main(void) { for(i=0;i<5;i++) str[i] = (char*)malloc(200 * sizeof(char)); strcpy(str[0],"hello"); strcpy(str[1],"my"); strcpy(str[2],"name"); strcpy(str[3],"is"); …

Member Avatar for Adak
0
1K
Member Avatar for melbahtoast

Okay I'm sure you read the title and rolled your eyes, but I can't seem to figure this out - so I need some help. I'm a bit of a newbie when it comes to php. I've read a bunch of various forums threads (from here and else where), and …

Member Avatar for veedeoo
0
279
Member Avatar for magicmarkuk

Hi I have imported a number (500+) posts into Wordpress from another CMS (Expression Engine). On a number of posts I have a problem with the way paragraphs are being displayed and I can trace this back to the post data that has been copied across. For example, when the …

Member Avatar for magicmarkuk
0
223
Member Avatar for MrEARTHSHAcKER

Hi, I have made some sorting function based on finding largest element and swapping its place with last element of array and then searching largest element of rest of array and putting it on one place before last one and so on. I am curious about is there a name …

Member Avatar for MrEARTHSHAcKER
0
428
Member Avatar for A_Dubbs

Hello everyone! I am taking a python course at my college and I have recieved a question for my homework that I am having trouble with. [I]14) Write a program that finds the average of a series of numbers entered by the user. As in the previous problem, the program …

Member Avatar for B dawg
0
941
Member Avatar for butler273

So, I'm back once again. This week I'm having issues with efficiency in a Radix Sort Algorithm. From what I understand this is the foundation of this algorithm. What operations might be costing me? For the basics I suppose I do understand push_ back being costly having to copy the …

Member Avatar for butler273
0
313
Member Avatar for thorpntell

I need to find the period of wave using zero crossings given a set of values that represents a sine wave... I'm a little new to C so there is a chance I made this over complicated, but... oh also, the time of the zero-crossing can be estimated as tz=(t1+t2)/2 …

Member Avatar for rubberman
0
152
Member Avatar for Sevyt

Ok i am going to try to explain this as good as possible. I got a form, which i plan to use as a calendar/agenda. I got labels for each week day, these will change each day. Below each label(day), i got textboxes which are used to enter appointments in(these …

Member Avatar for Mitja Bonca
0
97
Member Avatar for jade_91

so heres my code [CODE] import java.awt.*; import java.text.*; import java.util.*; import java.util.List; // Explicit import required import javax.swing.*; public class Sort { public static void main(String args[]) { Runnable runner = new Runnable() { public void run() { String words[] = {"Sean", "Beth", "Ryan", "Bree", "Jim", "Bob"}; List list …

Member Avatar for NormR1
0
263
Member Avatar for softDeveloper

Hi all, I have a table 'table 1' which has a primary key. Now I want to create two other tables with a composite key in each one, composed by primary key and a foreign key both referencing table 1 's primary key. However I can only do it with …

Member Avatar for softDeveloper
0
168
Member Avatar for ThomsonGB

I am getting an access violation. Can anyone see why this might occur in the following code fragment from a GUID generator? [CODE] // here is a code fragment fro a GUID creation routine. // it is crashing with an Access violation #include <iostream> #include <fstream> #include <string> #include <stdio.h> …

Member Avatar for rubberman
0
630
Member Avatar for Hypnos_16

[I]This exercise will explore the queue and stack data structure implemented with linked lists. The Koch snowflake can be implemented without recursion by using a queue or a stack. Assume that L is either a queue or a stack, L.add( seg ) adds a segment, and L.remove() removes the segment. …

0
122
Member Avatar for chueymtz24

I am interested in changing my major in college and also making a career switch, I would like some advice if anyone can provide it, I'm not super smart nor do i know too much about computers but i work with them as an AutoCAD Tech for an engineering firm …

Member Avatar for Josh12
0
165
Member Avatar for ChrisMackle

So im using the source code off a tutorial to learn and add a feature to drop a block. Ive learned so much so fra but now ive come to a dead end! You move with the arrow keys- works You press space to show the block- doesnt work heres …

Member Avatar for rubberman
0
326
Member Avatar for ganesanronaldo

Hi everyone... i am currently doing a java system concerning file transfers between server and client... file transfer starts from the server.. So far, i have done one file transfer. However, i would like to program my code in such a way that the client actively still listens to the …

Member Avatar for ganesanronaldo
0
248
Member Avatar for Sunciti

Hi - I'm a rookie programmer. Could somebody explain how I can append a nested list of the form: List = [[Name1,[Detail-1,Counter-1],[Detail-2,Counter-2].....] [Name2,[Detail-1,Counter-2],[Detail-2,Counter-2].....] ................................................. ] My code is : def program(List, Name, Detail): for entry in List: if entry[0] == Name: entry[1].append([Detail,Counter]) return [B][I] List.append ([Name,[Detail]]) for entry in index: …

Member Avatar for misokolsky
0
8K
Member Avatar for RachelR

Hello All, I'm trying to GET values from a DB table in JSON format through AJAX and then parse them into a JQuery List. test.php (partial) [CODE]while($row=mysql_fetch_assoc($sql)) $output[]=$row; print(json_encode($output)); mysql_close();[/CODE] JSON Format it Returns: [CODE][{"name":"1423 Peacock Haven"},{"name":"9835 Fredericksburg Rd"},{"name":"Test Project"}][/CODE] Following along with [URL="http://www.roccles.com/?p=151"]this tutorial[/URL], I'm trying to parse my …

Member Avatar for RachelR
0
1K
Member Avatar for TheNewKid

Hello guys! I am new to this forum and would like to start off by saying hello to all of you! I have wanted to start learning C++ for a while now but I have never found a way to get on my feet when programming C++. I need to …

Member Avatar for TheNewKid
0
93
Member Avatar for Kirielson

I have a table which has a foreign key that links to a primary key in another table. That id has information on it in which I want it to show while having a sum on the information. Is there a way to do it? To clarify here's a code …

Member Avatar for Kirielson
0
155
Member Avatar for tstory28

I am trying to figure out why the PHP will not check the database level and echo the proper message. Hopefully someone can help me figure this out. [CODE]<?php $connect = mysql_connect("localhost","goforgol_master","!rach22*") or die("Couldn't connect!"); mysql_select_db("goforgol_phplogin") or die("Couldn't find database"); session_start(); $email = $_POST['email']; $password = $_POST['password']; if ($email&&$password) { …

Member Avatar for joydeepd
0
250
Member Avatar for rob211

Hello! I have two Hashmaps: [CODE]POINTS (String/int) Player A: 0 Player B: 3 Player C: 5 Player D: 2 Player E: 5 Player F: 3[/CODE] [CODE]TIME (sec) (String/int) Player A: 0 Player B: 15 Player C: 9 Player D: 8 Player E: 12 Player F: 15[/CODE] The progrom should first …

Member Avatar for JamesCherrill
0
104
Member Avatar for LdaXy

I know that the colon is used for inheritance. [CODE] class x { public: long y; } class Z : X { public: virtual void ret_value(y); }[/CODE] but what does this mean? [CODE]int offset:16;[/CODE] i cannot find he answer to this anywhere.

Member Avatar for LdaXy
0
215
Member Avatar for Revathy Sesha

hi. i am developing a simple vb.net application. i have three forms in my app. the first form has 2 radio buttons from which i need to select one. based on the selection made in my next form a combobox ll be populated.so far so good.there is a back button …

Member Avatar for jbennet
0
770
Member Avatar for Jamesiv1

I've got a form that on submit two things occur: 1. all the data is passed to a shopping cart (a php script) 2. it emails me all the data (using a [B]separate[/B] php form-to-email script) In the form-to-email script, I want to delete/strip/remove some of the data that is …

Member Avatar for diafol
0
108
Member Avatar for Crashley2010

I have a programming assignment I've been having a lot of trouble with. Here is the question. Its long, I know. Design and write an object-oriented program for managing inventory bins in a warehouse. To do this you will use tow classes: InvBin and BinManager. The InvBin class holds information …

Member Avatar for Crashley2010
0
571
Member Avatar for arthurav

I have one variable already set (received through GET, too). I want to pass it, together with the variables of the form. The problem is that the new page takes only the variable from the from. This is the code: [CODE]$insertion_type=$_GET['insertion_type']; echo "<form action='index.php?insertion_type=".$insertion_type."&' method='get'>"; echo "Number of registrations<br /><input …

Member Avatar for Dexx
0
156
Member Avatar for #include <lou>

Hi everyone, I am working with MARIE and need help with the following: Write the equivalent C++ code in MARIE: / cin >> Max; / Count = 0; / Sum = 0; / While (Count < Max){ / Count++; / cin >> Number; / cout << Number; / if (Number …

Member Avatar for nydriek
0
4K
Member Avatar for frogboy77

I recently started using Code::Blocks and have written a small program to read in from a file. I think the problem i am having is the file not being found. Where does the IDE search for the file and how would i change this? Can i just input the whole …

Member Avatar for TheNewKid
0
252
Member Avatar for uzii305

OK, i'm working on a hangman game in cmd prompt. I'm about halfway done, but i have hit a wall regarding the secret word, and the user guess. Now mind you, my professor has not taught the class any array manipulation methods or techniques for finding specific char in an …

Member Avatar for uzii305
0
376
Member Avatar for RinzLove

Hi, I've got an error message on "public static void save_data" and "public static void retrieve_data". Please help, thanks [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; public class face1 extends JFrame implements ActionListener { JPanel pm,menup,fp,f1p,f2p,f3p,f4p,f5p,pf_1,pf_2,pf_3,pf_4,pf_5; static String f1[] = new String[2]; static String f2[] = new String[2]; …

Member Avatar for stultuske
0
749
Member Avatar for huskarit
Member Avatar for huskarit
0
243
Member Avatar for gogs85
Member Avatar for utkarshsahu

I don't know which langauge code it is written(but i think it is python) but i am just posting to know what can happen by the following code snippet. Here is the code:- # # ms12-020 "chinese shit" PoC # # tested on winsp3 spanish, from localhost # # import …

Member Avatar for snippsat
0
411
Member Avatar for Ctechnology24

Guys can anybody help me, I'm trying to fetch records from my database and use those records as links, my codes work but the first two records are not converted into a hyperlink, why it happened? what is wrong in my codes? [CODE] <?php $username = $_SESSION['username']; $query = "SELECT …

Member Avatar for diafol
0
137

The End.