199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for anish.anick

Hi All, I need to implement a searching feature in my web site. My web site is a Shopping site having different categories (like ebay). There is a general search textbox at the top of the page, if a user types in "Guitar" and clicks the search button it should …

Member Avatar for Reliable
0
127
Member Avatar for Purnima12

[CODE]#WEAVING A RUG WITH PYTHON #################################################################################### ## END STRINGS## for rows in range(1): for cols in range(36): print('~', end='') print('\n') ## SEAM ## for rows in range(1): for cols in range(12): print('- -', end='') print() ## DUAL ROW DESIGN ## for rows in range(2): for cols in range(36): print('*', end='') …

Member Avatar for Purnima12
0
197
Member Avatar for DIPY

Hi, I see the following error when i open my file with IE. <PARAM-CONF-CONTAINER-DEF UUID="ECUC:8e498821-8d5c-4512-88fc-8d4d90dca1ab"> <SHORT-NAME>DioChannelGroup The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- A semi colon character was …

Member Avatar for strmstn
0
769
Member Avatar for Buttacup

I am a little unclear on what is happening here and if it's even necessary. [code] ICOMInterface** pICOMInterface = new ICOMInterface*[reserve]; for(SIZE_T i = 0; i < required; i++) pICOMInterface[i] = new ImplementingClass; for(SIZE_T i = (reserve-1); i >= required; i--) delete pICOMInterface[i]; [/code] I'm trying to get a set …

Member Avatar for Buttacup
0
133
Member Avatar for code zombie

[CODE]#include <iostream> template<class T1, class T2> class TwoThings { T1 thing1; T2 thing2; public: TwoThings(T1 t1, T2 t2) : thing1(t1), thing2(t2) {} template<class T3, class T4> friend std::ostream& operator<<(std::ostream& os, const TwoThings<T3, T4)&); }; template<class T1, class T2> std::ostream&::operator<<(std::ostream& os, const TwoThings<T1, T2>& tt) { std::cout<<tt.thing1<<' '<<tt.thing2; return os; } …

Member Avatar for mitrmkar
0
129
Member Avatar for pinsickle

Which would be considering a better coding style, this is for a merge sort in case you are wondering what I am doing with this line of code [CODE] int j = 0; // used to track for the temp array earlier in my code // reset it to be …

Member Avatar for Ancient Dragon
0
103
Member Avatar for confuse89

I am doing an C++ assignment on customizable scientific calculator. I wish to ask how to write a program that can automatically identify the variables when i load a formula? for example, when i input a formula: x + y the program will display: x? y?

Member Avatar for Buttacup
0
78
Member Avatar for YeMiller

Hi, I've had a quick look through this forum and can't really see anything to help. I've got a basic but fair knowldge of C++ but I'm unfortunately not very good at putting my knowledge into raw code :D. I'm currently doing an assignment to read data from one of …

Member Avatar for WaltP
0
145
Member Avatar for correaj

Good Day Folks! I'm having a difficult time getting this operator overloading function to work. I have try various syntax to get it to work. When I run the following code I get this compile error. [COLOR="Red"]g++ -Wall hmw6.cpp -o driver set.h: In instantiation of `correaj::set<int>': hmw6.cpp:9: instantiated from here …

Member Avatar for correaj
0
3K
Member Avatar for lionaneesh

[CODE]#include<stdio.h> int lcm(int a,int b); int main() { int a; int b; printf("Enter two numbers to find lcm of ? :-\n1. "); scanf("%d",&a); printf("2. "); scanf("%d",&b); printf("%d is the lcm of %d and %d\n\n",lcm(a,b),a,b); getchar(); return(0); } /******************* FUNCTION *****************************/ int lcm(int a,int b) { int i,g,pr,z,q,dummy,lc = 0; /************************************************************************/ …

Member Avatar for Ancient Dragon
0
120
Member Avatar for andydeans

Hi, My MYSQL database has set columns for the data. The users have spreadsheets setup with their own columns which holds pretty much the same data on it. name, address etc. is the simpliest way to import it, to change the column headings on the spreadsheet for each user to …

Member Avatar for andydeans
0
95
Member Avatar for Soileau

I am getting many many warnings of this kind in my code. It comes every time I typecast something in my code, which I am doing to variable addresses in order to use integer arithmetic on them. How do I fix these warnings? Thank you! I would appreciate any constructive …

Member Avatar for gerard4143
0
1K
Member Avatar for andydeans

hi i need to create a query that will query my 6 tables that have an amount column & date paid column. i need to total up all the amounts due, so therefore the datepaid column would be null. can anyone help how i would be able to view how …

Member Avatar for andydeans
0
158
Member Avatar for kira_

hello there. there's an error in my program that I cannot identify. Every time i call a function for my declared variable of type Stack, there will suddenly be a run time error. I really don't get what's wrong with my code because my implementation seems to be right but …

Member Avatar for mitrmkar
0
106
Member Avatar for NitaB

Hey guys! I must have some sort of logic problem that I'm just not seeing. I just want to read a file into a 2D array. The dimensions of the array are given by the very first line of the input file. Everything works hunky dorey except that when I …

Member Avatar for NitaB
0
111
Member Avatar for Miss Confused

Hi Can anyone have a look at my code and tell me where im going wrong??? What im trying to do is display my details in a listbox then the one that is selected frm the listbox is displayed in the textboxes and when delete button is clicked it is …

Member Avatar for Oxiegen
0
151
Member Avatar for fishguts

In the code below I am opening a .txt file to count the characters in it. I am assuming that the user does enter a .txt file, but how can I go in checking that the file is truly a .txt. I was thinking of using a java function to …

Member Avatar for BestJewSinceJC
0
2K
Member Avatar for Arthas

can somebody tell me the line: [B][U]public static[/U][/B] void main(String[] args) {} especially the highlighted ones in detail. why do we need to use static? public?

Member Avatar for BestJewSinceJC
0
82
Member Avatar for AltF4me

Hi everyone, I'm sure I'm doing something silly here! Basically my constructor creates a pointer initialised to null, then in one of my functions I create an integer array on the heap using the new keyword. Now basically I have a data structure that needs to be copied, like so …

Member Avatar for AltF4me
0
113
Member Avatar for Zach101man

I'm using Dev-C++ 4.9.9.2 Im making my arrays dynamically and I am calling on a function to allocate the memory for me, but I received the warning: "[Warning] assignment makes pointer from integer without a cast " This occurs in main when [B][COLOR="Red"]alocate [/COLOR][/B]is called Main funtion: [code=C] int main() …

Member Avatar for Zach101man
0
138
Member Avatar for hockey87

I have to write a program that finds the smallest index of an array and am having a bit of trouble. Can anyone find anything wrong with this? [CODE]import java.util.Scanner; public class SmallestIndex { static final int LINESIZE = 10; static final int MAXSIZE = 50; static final int MINVALUE …

Member Avatar for hockey87
0
160
Member Avatar for ajsavoca

The assignment was to write a program that generated a random sequence of six non-repeating numbers between 1 and 53 until it matched a user inputted sequence (lotto). Here is the entire program. [CODE=c] #include <stdio.h> #include <stdlib.h> #include <math.h> #include <cctype> #include <iostream> #include <windows.h> #include <time.h> using namespace …

Member Avatar for ajsavoca
0
125
Member Avatar for B00t3r

Hi =) I'm a beginner with c + + so I have a small problem with Visual C + + When im typing } in vc + + it will not type } so I was wondering how do I fix this problem?

Member Avatar for strmstn
0
136
Member Avatar for stryker4526

Okay, so I have a main form which has a button for the user to add a new record. I have everything working except making sure the user enters appropriate values. I have it so a message box pops up the value is not valid, but it goes into an …

Member Avatar for stryker4526
0
100
Member Avatar for mitch9654

I read somewhere else and found some code that had something like this in it: [CODE]char buf[] = {0};[/CODE] what does this do? thanks mitch9654

Member Avatar for mitch9654
0
64
Member Avatar for xxmp

i would like to encrypt some data and i do not know how? How i can make a secure log in to a web server? Thank you very much

Member Avatar for diafol
0
108
Member Avatar for jonjonjon

Hi I am creating a program that needs to take 10 grades and give you the average, lowest, and highest grades. It needs to use arrays. Have I used arrays or used they correctly so far? Where do I need to put the grades in at? I have written part …

Member Avatar for vchandra
0
102
Member Avatar for pinsickle

Hello, I am working on a merge sort but I keep getting the following error : ds07(6443) malloc: *** error for object 0x100100098: incorrect checksum for freed object - object was probably modified after being freed. I don't see what my error is with the creation and deletion of my …

Member Avatar for mitrmkar
0
83
Member Avatar for jenjenjenjen

Hey I posted earlier a few days ago about a program I am having trouble with. Well I have worked on it but still need a little bit of help. I have to write a program that will store 10 grades into an array. The program will need to output …

Member Avatar for vchandra
0
88
Member Avatar for SgtMe

Hi again. I want to have a file for one of my python programs, that looks something like this: [CODE]<WINDOW> #Window size 640 480 <WINDOW TITLE> App Platform Test <ICON> icon.png[/CODE] I have a function that reads each line of, and uses the data to make a window. What happens …

Member Avatar for snippsat
0
16K
Member Avatar for jozz3

I have created a number guessing game that writes and reads scores from a text file. When a section of code was added to sort and right-align the scores from lowest to highest, a problem was encountered. This is my code: [CODE] import random print "Welcome to the Great CP1200 …

Member Avatar for jozz3
0
113
Member Avatar for pinknblu

It provides the average grade of an student. Assignment: How many students are in the class ? 3 Enter five test scores for student number 1 80 90 70 90 80 The average for student number 1 is 85 Enter five test scores for student number 2 100 60 60 …

Member Avatar for pinknblu
0
186
Member Avatar for robski

Hi. I need some help with some code i'm writing. I'm new to c++ and to be honest i feel like i have tried everything but cant get this bit working. I've included the small part of the program i have so far. I still have a lot to do …

Member Avatar for robski
0
92
Member Avatar for s2xi

Hey, I've been playing around with the jDigiclock weather+time script from [URL="http://www.radoslavdimov.com/jquery-plugins/jquery-plugin-digiclock/"]http://www.radoslavdimov.com/jquery-plugins/jquery-plugin-digiclock/[/URL] the only problem with this awesome script is that it get the location of the user from the static input directly from the script. How can I access the users locale and feed it into the variable that …

Member Avatar for Airshow
0
200
Member Avatar for adobe71

I have problem in database file which I made in Access, language C#,It works fine after installation in default location "C:/program files/default company name/project name/abc.mdb", but when I install it in different drive (non-window drive) then my project doesn't find the database file.So,how can I remove this problem.

Member Avatar for chetanbasuray
0
117
Member Avatar for ndz-niels

hey all, im a dutch student and for a project I am responsible for the pc application. we are making a paint application, the picture that are drawed are saved in a bitmap so I can use the getpixel() function to get the collors form the image. the size of …

Member Avatar for chetanbasuray
0
141
Member Avatar for cabsjonel

good evening folks its me again, folks i need your help in flexgrid idont know how to use it in editing a database, can you give me some sample program thanks folks may god bless you:)

Member Avatar for asaukani
0
437
Member Avatar for ChrisXxX
Member Avatar for mikabark

I'm doing school assignment. But I can't solve it yet. Will you help me? Using shared memory,I have to copy structure to second program. But it does not operate well. Maybe it's type problem especially shmat part. Will you help me guys? Thanks you in advance. [CODE]struct work_list { int …

Member Avatar for Ancient Dragon
0
384
Member Avatar for tarheelfan_08

Hey guys, I have been trying to do some stuff outside of my class to learn a bit more and I have come across something called a vector. And I read online that its similar to an array! But I am not sure how to do this. I have been …

Member Avatar for mitrmkar
0
383
Member Avatar for pyprog

[CODE]list1 = [[],[],[]] list2 = [[1,2,3],[4,5,6],[7,8,9]] i = 0 j = 0 k = 0 while i < len(list1): list1[i].append(list2[j][k]) i += 1 k += 1[/CODE] I want my output for list1 to be [[1,4,7],[2,5,8],[3,6,9]]. The problem is I don't know how to advance through the lists in list2. Can …

Member Avatar for arunbg
0
163
Member Avatar for toastghost

Hi. I'm fairly new to VB. I've made a handful of small programs and followed a few tutorials, but this is really the most complex program I've made so far. (Just a heads up that I may be missing something fairly obvious :$) I'm working on a VB program which …

Member Avatar for toastghost
0
130
Member Avatar for juuuh333

Hello, I have Visual C++ 2008 in a Windows 7. I wanna get the value from a textbox to an int, after that I wanna make some operations with the int like + or - or * or / and I want to write it to an another textbox. And …

Member Avatar for juuuh333
0
3K
Member Avatar for jmoran19

I'm trying to write a program that builds a full binary tree from an array containing an even number of sequential numbers. I know the memory allocation part, I'm just having trouble with how to pass the integers to act as array positions. This is what I've come up with …

Member Avatar for rydhima
0
147
Member Avatar for josolanes

To start off, I am in no way affiliated with this site. I'm just excited to see something like this finally show up as I had been looking for this for a few months now (on-and-off) and stumbled upon it today :) [URL="http://codepad.org"]codepad.org[/URL] is "an online compiler/interpreter, and a simple …

Member Avatar for jwenting
0
123
Member Avatar for RandyWhite

I am experiencing a rare problem. I wrote a program in C that creates several windows and I use them to load and display images. After using the program for a while loading and displaying images then all of a sudden all the windows on the desktop disappear including the …

Member Avatar for mitrmkar
0
121
Member Avatar for cwarn23

Hi, I have some strings but I want to convert them to binary (1 way). Are there any functions other then the compression functions that will convert strings to binary? Thanks. cwarn23

Member Avatar for cwarn23
0
70
Member Avatar for OsheRono

Hello everyone, Now this is my first time posting a question, if I do end up making it too general please let me know. OK, now, I am in the process of programming a small program capable of accessing a sql database. That is no problem. Now, I have decided …

Member Avatar for Geekitygeek
0
200
Member Avatar for TheWhite

When I want to load images, locally, I use use: [CODE=Java]ImageIcon qmarkIcon = new ImageIcon("images/mark.gif");[/CODE] When I run the program through eclipse, everything works fine--all the images load like normal, but when I package the executable .jar and run it in a folder without images/*.gif's, none of the images load..... …

Member Avatar for gsteele
0
9K
Member Avatar for 6pandn21

Hello guys! I am trying to implmenent a jQuery library and it worked fine when I ran it out of server. When I tried to run from a XAMPP based web server at home; the images doesn't show and keeps giving this error: 'You don't have permission to access the …

Member Avatar for 6pandn21
0
19K

The End.