64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for deerowbear

I am getting an error saying, expected unqualified-id before "template" I can't figure out why I am getting this error. Any ideas? Thanks daiel code below: [CODE]#include <stdio.h> #include <stdlib.h> #include <fstream> #include <iostream> #include <iomanip> #include <string> #include <cctype> #include <sstream> //#include "comparable.h" using namespace std; // enum cmp_t …

Member Avatar for siddhant3s
0
128
Member Avatar for 00Vic

Hello all. I am a CS major and I am learning recursion right now and have a lab assignment to write a program that uses recursion to evaluate post fix expressions. I have made an attempt at this but I am stuck and need some help. Here is what I …

Member Avatar for 00Vic
0
2K
Member Avatar for sb3700

Hey I am trying to use Python to control a motor over RS232 (serial ports). It is connected to COM3, and the connection settings are correct (baud=9600, etc). I am using pySerial in Python 2.5. My code is: [code=python] import serial, time # the serial port connections - customise as …

Member Avatar for sb3700
0
3K
Member Avatar for JustLearning

Ok here is the code I am trying to compile remotly on a linux machine I am getting quite a few compile errors when I try to compile this Here is just a sample of the errors I am getting. [code]-bash-3.2$ gcc -o lemastsGCD lemastsGCD.cpp /tmp/cca8g62Q.o: In function `__static_initialization_and_destruction_0(int, int)': …

Member Avatar for JustLearning
0
177
Member Avatar for gabec94

Hi, I am new to java and want to play around, I want to make a program that takes in input of lets say 5 numbers, and displays them separated by a space. For example I would enter 12345 and 1 2 3 4 5 would be returned. this is …

Member Avatar for Taniotoshi
0
564
Member Avatar for jaanu.cheruvu

can any1 solve this .....Given a sorted list of infinite size in which first n elements (n is unknown) are finite integers and rest are infinity, write an efficient function that finds a given number in O(ln n ) time complexity.

Member Avatar for jaanu.cheruvu
0
357
Member Avatar for rasingh24

Hi, i have a small project in which on selecting a node in treeview displays attributes in listbox.In treeView1_AfterSelect, the text parsing code depends on the textual representation for a node in the tree view, which can be changed at any time and break the entire logic of list display. …

0
75
Member Avatar for Will Gresham

Wasn't sure what to put as the title, but what is happening is this: I have div elements on a HTML page, when they click on the div it is replaced with a textarea containing the div contents in order to edit this (eventually there will be a form/submission button …

Member Avatar for xyzweb
0
336
Member Avatar for redean

HI, I am Using VB 6, how do I sent data over the internet to an SQL DataBase

Member Avatar for redean
0
101
Member Avatar for vikette

Hello, I'm creating my first website using master pages and asp.net. As part of this project, I need to display a random banner image at the top of each web page. Let's say i have an "images" directory with image1.jpg, image2,jpg, image3.jpg and image4.jpg. In the past, I have used …

Member Avatar for serkan sendur
0
303
Member Avatar for OmniX

Sorry been out of commision for a few months. Got a newbe question. What value is returned from an sql query that returns no rows? Example: [code=php] $a = "SELECT * FROM a WHERE b = c"; $b = my_sql_query($a); [/code] Note: Table Name - a Table Field - b …

Member Avatar for OmniX
0
2K
Member Avatar for claudiu_is

Hi, Does anybody know how can I return the time format from the system regional settings ? I need something like "hh mm ss" returned ( or whatever the current system time format is) to pass it as argument for FormatDateTime() function along with a given time; I`m using Delphi …

Member Avatar for claudiu_is
0
185
Member Avatar for kanodi

Hi guys, I wonder if any of you can help me with my problem.... I am trying to write a script that searches a file that describes a grid of letters, like: [code] wergfdghytr bhgiusuwiee popeldorlfse funwrdtywa [/code] The script uses another file for a word list, where each line …

Member Avatar for kanodi
0
190
Member Avatar for Taniotoshi

Hello everybody I am doing a little code to learn a bit more about C++. Do not be amazed if you find that code useless, it is mainly just for me to improve. :) This is my first C++ program and I started few days ago... [/I]One class is used …

Member Avatar for Taniotoshi
0
617
Member Avatar for serkan sendur

One of our new members "Gurvinder Suman" asked me how to create a custom select button for gridview in order to display details in the detailsview. Here is the answer: When you click the smart tag of the gridview and enable selection, it creates a linkbutton by default and writes …

1
241
Member Avatar for mtramnes

Wrote this max min problem. The output however gives me the correct max but not the correct min. It simply returns 0 for the min everytime. Any ideas what I need to fix? [code] #include "stdafx.h" #include <iostream.> #include <conio.h> using namespace std; int main() { const int NUM_DAYS = …

Member Avatar for vmanes
0
119
Member Avatar for veledrom

Hi, In PHP page, Code below always returns TRUE even no record is updated. How can i solve this problem? Thanks [code] $q="UPDATE login SET password=SHA1('$newPassword') WHERE id='$loginID' AND password=SHA1('$oldPassword')"; $run=mysql_query($q); if ($run===TRUE) { echo "SUCCESSFUL"; } else { echo "ERROR: Old password is wrong. Please try again."; } [/code]

Member Avatar for nav33n
0
136
Member Avatar for LateNiteTippin

Okay, don't laugh. I'm [B]very[/B] new to python. Actually to programming all together. I'm doing an exercise where i have to count the number of a string in a word. Ex: count("is", "Mississippi") would be 2. I tried using string.find and was having no luck. So i tried to go …

Member Avatar for LateNiteTippin
0
126
Member Avatar for ChrisP_Buffalo

Hi folks. I'm getting back into learning Python after a few months off, so I'm still a newbie, hehe. I'm using the free online book Dive Into Python. I ran the first program and it worked just fine, but it returned the output in the opposite order of the one …

Member Avatar for ChrisP_Buffalo
0
164
Member Avatar for colmcy1

Hey all, I'm new to C++ and struggling to write a program. I am used to writing in VBA and Mathlab but because I need to run a long run simulation have to rewrite my program in C++. What a am trying to do is if I have a list …

Member Avatar for colmcy1
0
98
Member Avatar for colmcy1

Hey all, I'm new to C++, much more at home with mathlab or VBA so this is probably a simple problem for you guys. I am writing a program and I want to change values at the end of loop but keep answers from previous loop, i.e. in other programs …

Member Avatar for colmcy1
0
123
Member Avatar for theimben

Ive got a MySQL search, which searches an index of urls. The search parameter searches titles. What I want to do is have something like Google. So, if someone searches: [CODE]site:example.com something to search[/CODE] It would look for example.com in one column then from those results it would look for …

Member Avatar for theimben
0
1K
Member Avatar for Norbert X

I just finished another assignment and I can't figure out why this none keeps appearing after you enter a language: [code=Python]while True: print"Hello, how are you?" language=raw_input("Pick a language: french, german, hungarian, dutch: ") if"french"in language: def function(): print"Bonjour, comment allez-vous?" elif"german"in language: def function(): print"Hallo, wie geht es Ihnen?" …

Member Avatar for jlm699
0
128
Member Avatar for abu taher

1. I work with a database project. Now I want to show all data (from a table like 'student name' column) in a combo box. how can I do this. I connect the database by system DSN and adodc control. plese any body help me. 2. If I select a …

Member Avatar for debasisdas
0
111
Member Avatar for veledrom

Hi, Code below always returns only 1 record therefore i don't need while. How can i get result without while loop? Thanks [code] $q="SELECT id FROM login WHERE username='$username'"; $sql=mysql_query($q); if (@mysql_num_rows($sql)==1) { while ($arr=mysql_fetch_array($sql)) { $id=$arr["id"]; } } [/code]

Member Avatar for nav33n
0
75
Member Avatar for thegreatkk

hi, i am new to .net. i wrote the program for getting information from database. when i click the ok button, the above action is called. and its take few seconds to fill into datagridview.. that time i like to show the busy curser in my windows form. (ie after …

Member Avatar for thegreatkk
0
97
Member Avatar for Venom Rush

Hi there Having trouble calculating the final cost of choices made by a user. I have 4 radio buttons and 2 checkboxes. The first three radio buttons are, all intensive purposes, chocolates with the last radio button stating that the user doesn't want any of the chocolates. The two checkboxes …

Member Avatar for Venom Rush
0
109
Member Avatar for Shanti C

Hello... Good Morning All... How to hide all query strings in my url and here i can't use hidden variables for these all because in all times i couldn't send them with form submission..And my page is having four query strings to be sent... If any body have any clues …

Member Avatar for Shanti C
0
5K
Member Avatar for PhiberOptik

Hi guys, I am trying to execute a .jar executable within a java file but nothing happens, no errors, just nothing in general! [CODE=java]public void executeCmd(){ Runtime run = Runtime.getRuntime(); try { Process proc = run.exec(cmd); } catch (IOException e) { //sendmessage saying there was an error } }[/CODE]

Member Avatar for masijade
0
355
Member Avatar for chris5126

Hi, I am writing a script to get information on disks for Solaris 10, does anyone know of a way to print out the size of each disk on the system in MB i know how to get it in GB and could do some number manipulation however it would …

Member Avatar for chris5126
0
169
Member Avatar for Norbert X

I've been racking my brain on this problem for like 2 hours. The thing I have to do here is use one single random function for the entire MASH program instead of the usual 4. The problem is, when I get a result, they're all from catagory 1 (married to …

Member Avatar for lllllIllIlllI
0
176
Member Avatar for phillipdaw

The code was written for fun, and it is by far the most complicated program I've written yet. It's also my first step from C into C++. I have some training in algorithms but almost none in coding. It is pretty long and I don't expect anyone to analyze the …

Member Avatar for siddhant3s
0
106
Member Avatar for rockdays

Hi, I have a table above 8.000.000 records. I am running a query like "select * from table where id=1093203". And the query turns in 24 second. This example i tested in SQL Server 2000 v8, Windows 2003 sp2. I am running same query in Windows Xp + Sql server …

Member Avatar for sknake
0
140
Member Avatar for tulsi_apr03

can anybody help me , how can we call a javascript function using firefox browser. my code is working fine when im using IE but not for firefox. Why i cant understood.When im clicking button no action was taken and nothing was happned. [code=JavaScript]<script type="text/javascript"> function login_validate(frm) {var name=frm.user_name.value; if(name=="") …

Member Avatar for tulsi_apr03
0
161
Member Avatar for Norbert X

Okay so I'm trying to do this programming assignment and my random function isn't working. It's exactly the same as in my other assignments, but it's not working, and I've spent hours searching it. Can someone help me? [code=syntax]import random repeat = 0 while repeat != "no": random = input("How …

Member Avatar for Norbert X
0
133
Member Avatar for newbie_here

Hi all i am having some problem with the logic. can someone help me with it please. i am doing a vb.net project say for example a company has a lot of branches. I need to print the sales report for all the branches. so when printing it should print …

Member Avatar for newbie_here
0
98
Member Avatar for nschessnerd

Hey, so i have 4 tables i need to join together. basically this is how it looks table j: | id | uid | cid | text | | 1 | 3 | 1 | blah| | 2 | 1 | 3 | blah| table u | id | name …

Member Avatar for nschessnerd
0
102
Member Avatar for serkan sendur

I installed the xml file comparer tool from this link : [url]http://msdn.microsoft.com/en-us/library/aa302294.aspx[/url] and add the dll to my project and created this application : Default.aspx: [CODE]<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <form …

Member Avatar for LizR
0
2K
Member Avatar for MentallyIll5150

I am constructing a class "dequeint" of integers and using circular queue storage. I get my code to compile but its output is garbage? Please HELP! .h [code] #include <iostream.h> #include <stdlib.h> const int MAXSIZE = 10; typedef int NodeType; class dequeint { private: NodeType NodeArray[MAXSIZE]; int headi; //head in …

Member Avatar for MentallyIll5150
0
163
Member Avatar for tux4life

I'm fairly new to C++ programming and I would like to ask you a (maybe strange) question... The code below compiles correctly with both: - the latest MinGW-compiler - Borland C++ Builder Compiler 5.5 (from the free Command Line tools) However if I run the program (after compiling with the …

Member Avatar for tux4life
0
368
Member Avatar for hinasaeedali

Respected, Requirement is when body loaded there must be 1 increment in the variable. and total number of loading the body display on the button (document.button name.value=variable name)

Member Avatar for essential
0
132
Member Avatar for DomoCobra

I am trying to write a program that in it I have to search through some text and to find something and I dont know where to start I have some text in a String and for example I need to search through it and store everything between <title> and …

Member Avatar for DomoCobra
0
131
Member Avatar for theimben

Im having trouble ending sessions for some reason :| Heres my code. Can anyone see what the problem is? [code] <?php include('includes/config.php'); unset($_SESSION['isLogged']); session_destroy(); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> </HEAD> <BODY> <?php echo '<div class="nav">'.$navigation.'</div>'; ?> You have been logged out. </body> </html> [/code]

Member Avatar for nav33n
0
106
Member Avatar for Eyo

Hello All, I need to trigger an event on application.exit on windows application (vb.net).... how could I handle the applicatoin.exit event

Member Avatar for Praniya
0
501
Member Avatar for lehe

Hi, I am trying to debug my shell script by bashdb. My script take as argument "--gdb", so I wrote [quote]bashdb myscript.sh --gdb[/quote] However, this way it will produce error that bashdb: [quote]unrecognized option '--gdb'[/quote] If I quote --gdb as [quote] bashdb myscript.sh '--gdb'[/quote] then I will end up with …

Member Avatar for lehe
0
94
Member Avatar for Roybut

Hi, I've searched this and other forums and found what are clearly the right answers for some people but not for me. I have a database with an item table. Item has a field called image that stores a path to an image. Here is an actual example of a …

Member Avatar for nav33n
0
116
Member Avatar for progurammaar

hi i would like to store the data of a text area inside mysql, and for that i want a suitable dtatype For eg if the data in textarea is [QUOTE] hello hie are you i'm fine! [/QUOTE] currently i'm using varchar but th eproblem is that the data apperas …

Member Avatar for nav33n
0
274
Member Avatar for kjetil4

Hi, Im trying to make a media player in Eclipse. Its just a simple thing not an advanced one but i cant get it to work. I have looked at some examples and tried to create a simular version. I could really use some hints on how to make it …

Member Avatar for kjetil4
0
618
Member Avatar for breatheasier

Hi, I'm trying to print two arrays to a file, these are pretty large. However I want to print them as two lists. This is an example of what my output is now: [ 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. …

Member Avatar for breatheasier
0
163
Member Avatar for lifeworks

Hi Im trying to re-make one of those image galleries where you click the thumbnail and the whole browser window is blacked out with the larger image displayed in the middle. Ive gotten as far as finding a script to hide this black layer and reveal it onMouseClick... but if …

0
78

The End.