199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Skeen

So I'm working with OpenGL, and DevIL to load some JPEG into my program, and I've had some trouble, I've isolated the program in a simple sample program (uploaded), the program is, that when I load the standard file, that came with the guide ("Geeks3D.jpg") it loades instantly and runs …

Member Avatar for Skeen
0
109
Member Avatar for cascade3891

Hello Python community, I've just finished building an app with Python and I'd like to share my experiences and get some feedback. This was from scratch (no code templates) all the way to compile and distribution on a Windows environment. Now all my colleagues at work are using the app …

Member Avatar for vegaseat
0
1K
Member Avatar for cane23

its a simple piece of code but i seem to be having problems this is the code below [LIST=1] [*]$comp_tot="76"; [*] if ($credits = $comp_tot) [*] [*] //$sub=$credits_3; [*] $tot="76"; [*] $ans_1= $tot-$credits; [*] echo"<p>$ans_1</p>"; [*] echo "there"; [/LIST] this code is working however i dont want the condition to …

Member Avatar for vaultdweller123
0
73
Member Avatar for dps

I want to select 5 points set from n given points one by one exhaustively. In other words i want to do nC5 in c++ but not getting a simple way to do it. Please tell me any solution.

Member Avatar for dusktreader
0
100
Member Avatar for evilweasel_47

Hi folks, I am a newbie to python, and I would be grateful if someone could point out the mistake in my program. Basically, I have a huge text file similar to the format below: AAAAAGACTCGAGTGCGCGGA 0 AAAAAGATAAGCTAATTAAGCTACTGG 0 AAAAAGATAAGCTAATTAAGCTACTGGGTT 1 AAAAAGGGGGCTCACAGGGGAGGGGTAT 1 AAAAAGGTCGCCTGACGGCTGC 0 The text is nothing but …

Member Avatar for woooee
0
109
Member Avatar for gingerx

hi, can somebody please tell me what would be the problem that it couldn't open the file? i compiled it in dev c++ and it gives me no error. the file 512.dat is in the same directory. [CODE]#include<iostream> #include<fstream> #include<stdlib.h> #include<stdio.h> const int sc = 768; int main() { int …

Member Avatar for gingerx
0
1K
Member Avatar for abhimanipal

Hello, [code= c] main() { int i=4,j=7; j = j || i++ && printf("YOU CAN"); printf("%d %d", i, j); } [/code] The answer to this question is 4 1 and the reasoning is that the compiler finds j to be true and hence does not need to check the remaining …

Member Avatar for Ancient Dragon
0
105
Member Avatar for Alpdog14

I was wondering if someone can help me with how to convert my code so that it converts the cents to dollars and also round to the nearest cent: [CODE]public class Subscription { private int price; private int length; public Subscription(int p, int n) { price = p; length = …

Member Avatar for BestJewSinceJC
0
11K
Member Avatar for mamameanslove

I'm currently taking Java I and I have to write a program that reads 5 integers and determines and prints the largest and smallest numbers without using an array. I have to only use the if statements. I can't figure out how to make the if statement apply to 5 …

Member Avatar for BestJewSinceJC
0
2K
Member Avatar for atticusr5

hey everyone, so im trying hard to get this assignment done by tomorrow but after sucessfully compiling, I am now getting linker errors. I have to use Vi for this assignment but never the less here are my linker errors: assign5.o: In function `main': assign5.cpp:(.text+0x1026): undefined reference to `Print(cStudent (&) …

Member Avatar for jonsca
0
75
Member Avatar for LloydFarrell

Hi all, I am trying to rotate adds that are from tradedoubler !! I have created a mysql db as follows id,add,link,title and i can succesfully connect via a php include and rotate my query to show a different add each time the page loads [code] $sql = mysql_query("SELECT * …

Member Avatar for LloydFarrell
0
225
Member Avatar for atticusr5

Hey everyone, I am writing a program for my c++ class to take student records and organize them according to the students last name. All data is stored to a class and I have created an array of class objects(its part of the assignment). I am using Vi to compile …

Member Avatar for atticusr5
0
119
Member Avatar for Frederick2

It seems even if I place #define _CRT_SECURE_NO_WARNINGS at the top of my C++ source files, if the warning level is set to 3 or 4 I still get all the warnings. Is this the way it is supposed to be? I like to have my warning levels set fairly …

Member Avatar for Frederick2
0
581
Member Avatar for mahela007

I got this from the python docuemtation. date2 = date1 + timedelta --->date2 is timedelta.days days removed from date1. (1) date2 = date1 - timedelta---> Computes date2 such that date2 + timedelta == date1. (2) timedelta is an object representing a time [I]difference[/I] and a date object represent a certain …

Member Avatar for mahela007
0
84
Member Avatar for nerdinator

I need help with running two function at the same time . MultiThreading? [CODE]void Function1(int n) { while(n<10) { n++; } } [/CODE] [CODE]void Function2(int n) { while(n<20) { n++; } }[/CODE] If these are the 2 functions,can someone tell me how I can start the 2 together [B][U]from int …

Member Avatar for nerdinator
0
95
Member Avatar for sblass92

Hey everyone, Browsed through the forums and a C++ book, but can't find what I'm doing wrong. 1)Goal is to pass colors array to a function that picks a color set from 19 options and modifies red, green, and blue to be used in an allegro function. Each color set …

Member Avatar for sblass92
0
769
Member Avatar for zhinokin

is this code what im doing is correct..? im using codeigniter framework of this one…engine use is iNNodb [code=php] db->simple_query('SET AUTOCOMMIT=0'); $lockquery = "LOCK TABLE costumer_prof WRITE"; $db->insert('costumer_prof',$valueAdded); if($db->trans_status() === FALSE) //is this ok to used trans_status without trans_start or trans_begin..? { $db->trans_rollback() return 1; } else { $db->trans_commit(); return …

Member Avatar for JRM
0
96
Member Avatar for jemz

hello please help me on this i make a simple program that inputs the first name and family name and age, and this will display to the table ...can you help me how to delete the save data on my JTable the one that i inputed ...thanks in advance hoping …

Member Avatar for jemz
0
34
Member Avatar for malionette

I'm having a bit of trouble getting string input while i'm in a function. I was wondering how I could input a really long string (about the size of a paragraph). cin >> entryA seems to work, but only with 1 word. Any more and it starts looping getline(cin, entryA); …

Member Avatar for malionette
0
215
Member Avatar for jemz

hello can you help me please... i have a button print and i dont know how to make the code that will print all my data in my database....please help me how to make this print code ..hoping for your positive responds.

Member Avatar for thomas_naveen
0
120
Member Avatar for falcon60

Hello! I'm beginning learning C++ and I was wondering, does Visual Studio 6.0 support all of the language features or is it too outdated now? If so are there any free compilers/linkers that I can use for windows programming? I'm also worried about the windows API headers being outdated as …

Member Avatar for falcon60
0
89
Member Avatar for LemonLemon

I want the extract the two values(113.654321 and 114.654321) from the CString CString sValue = "113.123456 114.654321"; I tried to use the TrimLeft function of the CString Class, which is sNewValue1=svalue.TrimLeft(_T(" ")) and sNewValue2=sValue.TrimRight(_T(" ")) but I cannot get the expected value. Can anyone help? Thanks in advance!

Member Avatar for mitrmkar
0
138
Member Avatar for kuteinheart

Hi ppl, In a drop down box in PHP i want a distinct value of Date from a column in mysql table. [CODE=text]W_Id FinishedDate Username 1 2010-01-25 me 2 2010-01-25 you 3 2010-01-25 she 4 2010-01-26 me 5 2010-01-26 you 6 2010-01-26 she[/CODE] In the dropdown box i want 2010-01-25 …

Member Avatar for manish.s
0
193
Member Avatar for feoperro

Hi, I have pasted my code below, please paste it into a JSP and tell me why it gives the error "Unterminated String Constant" [CODE] <html> <head> <title>Debugging</title> <script language="javascript"> function changeOn(object, objectId) { alert('in function'); if (object == 'bookingsButton') { alert('first if'); document.getElementById(objectId).src = 'Images/BookingsOn.png'; } else if (object …

Member Avatar for feoperro
0
205
Member Avatar for dandixon

Hi there, does anyone know any good tuts for displaying images using php. The thing is, I have a site that i search for a part number and it displays the info, that i can do but for some reason im lost when it comes to the images. Do i …

Member Avatar for dandixon
0
288
Member Avatar for kuteinheart

hi, I have a varible which i want to pass it to an AKAX function as a parameter... HOW DO I DO IT???? Here is my code: [CODE] <?php $Username=$_GET['Username']; blah blah blah echo "<select name=WD value=' ' onChange=showDetails(this.value, '$Username')>Date</option>"; /* The onchange function is as follows*/ function showDetails(FinishedDate, Username) …

0
59
Member Avatar for venus_me11

I want to have this kind of look [url]http://kleankanteen.com/faqs/faqs.html[/url] when i click the (+) button, the solution/answer will appear and when i click the (-) button, the solution/answer will disappear here is the sample that i want please help.. i dont know if this is javascrip, ajax or something...

Member Avatar for venus_me11
0
88
Member Avatar for smartness

Is it possible to Copy data from a <input> box the the main windows (the input is opened in a pop-up). I've seen date-time pickers can do that, but can't find the function!

Member Avatar for smartness
0
166
Member Avatar for ithelp

Hello C experts, [code=c] main() { int i=0; int x; fork(); fork(); fork(); i++; x=&i; printf("%d %x\n",i,x); } [/code] Each child process gets its own copy of i , but why does x not print different address ?

Member Avatar for Conqueror07
0
83
Member Avatar for rocker9186
Member Avatar for raorane.swagat
0
58
Member Avatar for Stefano Mtangoo

As I said, I would like to make a PHP login /Register system that would be free for anyone. Here I have started. Since Iam not expert, then I will be adding small pieces until something emerges. I hope DW guys will help until it grows to mature. I want …

Member Avatar for vjimatjijoro
0
583
Member Avatar for c_skyscraper

Hello Guys; I’m studying computer science on my third year. we are asked to develop a project based on data warehousing and business intelligence, using java language and postgresql. the main thing that is expected from us, to create fact and dimension tables from existing tables and then fire simple …

Member Avatar for vinodh123
0
398
Member Avatar for kendaop

Hello all! I thought I was finally getting good at this "Java" thing, and then someone suggests to me that I use a singleton and factory class. I'd never heard of these before so I set off googling it. Now, I get the gist of singleton and factory classes, but …

Member Avatar for JamesCherrill
0
155
Member Avatar for alexa868

hey guys! so I need to create a matrix 6x6 and then fill it with random numbers from 0 to 3.... and I need to leave the diagonal of the matrix with 0s... The rows are supposed to be soccer teams so if row 1 wins row 2... the program …

Member Avatar for alexa868
0
96
Member Avatar for RahulV

Can we use any C# or VB.NET controls or components in VB 6.0? or Is there any place where we can get free controls or components for VB 6.0?

Member Avatar for abu taher
0
80
Member Avatar for cerr

Hey all! I have this assignment for my school project to create a simple address book using classes that do the routine stuff like adding a contact, searching it, modifying it, deleting it... Here is the code but it won't run properly. I tried but couldn't figure it out. It'd …

Member Avatar for cerr
0
152
Member Avatar for princeknz

Hi All, Im new to the forum so not sure where to post my question, any help would be greatly appreciated. I have written a program in Delphi 2007 using MS SQL connection, My program runs fine on the development system but as soon as I put it on a …

Member Avatar for princeknz
0
320
Member Avatar for wiglaf

I have been searching my texts, the web, and DaniWeb for information about how to share data between compiled C++ executables. I've been studying extern variables and named pipes without success. A typical program calls another program like this: float Pi = 3.14; system("AdjustSeaLevel.exe Pi 5.4 11.2 c f g"); …

Member Avatar for Frej
0
2K
Member Avatar for ElieM

from the search I made I understood that I must declare the class in a package then put it in WEB-INF/classes. and call it from the jsp page. SO. my class is: package x.com; import java.io.*; [code]public class X { public static void main(String[] args ) throws IOException { File …

Member Avatar for javaAddict
0
664
Member Avatar for purushoth123

kindly please tell me how to connect from java to ms access, sql,oracle and so etc . with example

Member Avatar for peter_budo
0
173
Member Avatar for dandixon

Right, bare with me pls, i need to query the db and return a part number and model, but the thing is these results need to link a page where they are displayed fully heres an example [url]http://www.airsprings.com/search/airsprings[/url] if u type in the bottom box W02-358 in returns 3 results …

Member Avatar for dandixon
0
77
Member Avatar for PatrickV

Does anyone have issue with PHP version 5.1.3. it is crap and causes cpanel and other php software issues, i cann't get the latest xammp becacuse of it. Does anyone know when is the next release to fix these problems is coming out?

Member Avatar for PatrickV
0
104
Member Avatar for MARKAND911

I want information about user's logon session. Please tell me how i can get it in web Application.

Member Avatar for MARKAND911
0
67
Member Avatar for mahela007

how can I check the difference between two dates using the datetime modules? (or any other module that would do the same thing). I want to read a date from a file (which was written in the same format as the datetime module uses) and then calculate the difference in …

Member Avatar for Stefano Mtangoo
0
196
Member Avatar for webdragon89

I need to write an overloaded function for a pascal triangle. I have to include another function that fits n!/((n-r)!r!), I can't figure it out. Help please! This is what I have so far: [code] #include "stdafx.h" #include <iostream> using namespace std; int my_fib(int,int); int x,y,j; int main() { x=0; …

Member Avatar for kvprajapati
0
110
Member Avatar for Myko17

Greetings, I am suffering a loss of sanity at the hands of this issue. I think i have something worked out, however, could someone shed some light and keep me sane? [B][U]Problem Description[/U][/B] It would be of interest to others if you could write a program that would allow other …

Member Avatar for ChrisPadgham
0
174
Member Avatar for paodzy
Member Avatar for manoshailu
0
165
Member Avatar for jj.amonit

I want to query my database and get two things, store them in an array and retrieve them later. Let's say the fields are zone_id and zone_name. currently i am trying this to store them in array like this $zone_array = array('zone1index' => zone1name, 'zone2index' => zone2name, 'zone3index' => zone3name); …

Member Avatar for cwarn23
0
94
Member Avatar for the0ry

Below is a script which i use to return a random image in a specified directory. (It also sets a session variable to cache a list of images recently displayed, but that is irrelevant to my problem.) I am looking to have this script also find files in the sub-directories …

Member Avatar for the0ry
0
107
Member Avatar for jlego

im am trying to find the best method to use for the following: I have an applicaiton that is going to be loaded 24/7 running in the background. what is the most efficient way to display the current date on the top of the form so that it changes on …

Member Avatar for kvprajapati
0
84

The End.