199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for FireSBurnsmuP

You see, I am writing a program that uses strings for input to determine things, and I don't want it to be case sensitive. So, I know you can go through a string and go char by char to store each char, [inlinecode]tolower()[/inlinecode]'d into another string while in a for …

Member Avatar for geinjo
0
2K
Member Avatar for Phil++

Anyone know a decent one for Mac? I use Dev cpp atm at college but I'm a mac user at home and have no way of compiling the my projects. Any suggestions would be grateful, thanks

Member Avatar for jbennet
0
61
Member Avatar for Superfat

Ok, i have been working on a simplistic game for about an hour now. This is what i have so far: [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Game extends JApplet { private int APPLET_WIDTH = 500, APPLET_HEIGHT= 100; private int money; private int owned; private JLabel labelMoney; private …

Member Avatar for VernonDozier
0
12K
Member Avatar for seanooi

Is it possible to write a php function that wraps every newline inside a <pre></pre> block with a <code></code> block? An example would be something like: [code] <pre> <code>first line here</code> <code>second line here</code> <code>third line here</code> </pre> [/code]

Member Avatar for seanooi
0
153
Member Avatar for aashiq

Please Help me to print a form using vb.net2008 code. Please send me in details. Help me..............

Member Avatar for aashiq
0
87
Member Avatar for ibhome

I am writing integers from 1-100 into a file separated by commas. I need to know how to read in a "," into a file and print it out again. Below the code is sample output after execution of the code. The comma is not output correctly. I know it …

Member Avatar for ibhome
0
199
Member Avatar for gibson.nathan

what i am trying to do is to read this data in from a file, [CODE]1980 Aug 945 100 Allen 1983 Aug 962 100 Alicia 1984 Sep 949 100 Diana 1985 Jul 1002 65 Bob 1985 Aug 987 80 Danny 1985 Sep 959 100 Elena 1985 Sep 942 90 Gloria …

Member Avatar for VernonDozier
0
135
Member Avatar for sgour03

Hello, I am required to make an online airline reservation system using C++. What information do I need before starting with the project in terms of what I want to accomplish .

Member Avatar for vmanes
0
217
Member Avatar for xfrolox

Hi all i hope this little code help some people. This code is to make your program can't open 2 times so when you open your app and try to open it again a msgbox will pop up and wont let you open it again. [CODE]Dim CurrentProcesses() As Process Protected …

Member Avatar for xfrolox
0
146
Member Avatar for lcyew

Hi. I'm using php and mysql for a system. I have some questions on INSERT query. When we are using INSERT, in our query.... i. Is it necessary to include each field included in the table we are going to insert value with (though some of the field maybe do …

Member Avatar for lcyew
0
99
Member Avatar for jbennet

Ok i am making a CMS using PHP/Mysql (its designed as a learning experience for me so it will not be anything like mambo etc... :) ) Anyway, here are some screenies. If anyone wants to help then I would happily share what little code I have written.

Member Avatar for Stefano Mtangoo
0
836
Member Avatar for jakethesnake86

I got the following code out of Carrano's Walls & Mirrors. I made a few changes but have tested it and it works. I'm really confused by line 19 in the .h file. Why is it structured like "void (*FunctionType)"? Why not (void*) FunctionType? or void* FunctionType? What is the …

Member Avatar for ross42111
0
133
Member Avatar for kadamora

hi..i just want to make a messagebox that has an image in but i couldn't find the way. it tried to make a bitmap of the image and put it on the messagebox like MessageBox.Show(image); but it was wrong...any ideas???

Member Avatar for RunTimeError
0
9K
Member Avatar for IT21

HI, Im wondering if anyone can help me, my vb.net is not the best and i am trying to create a program that allows the user to search for staff. i have created a database containing one table with details such as name, depatment, email address i have then created …

Member Avatar for jrm5f2
0
190
Member Avatar for merse

In C++ we can define functions and their arguments can be not just variables, but functions also, for example: double Integral(double func(const double),const double a, const double b){...}; (without using any pointer) But can a function return with a function? like a differential operator?

Member Avatar for mrnutty
0
118
Member Avatar for Phil++

Right, so I'm trying to create like a login system and my overall goal is to do it in classes but for the meantime, I won't. So this is my main file: [code] #include <cstdlib> #include <iostream> #include "functions.h" using namespace std; void checkDetails(string user, string pass); string usernames[10]; string …

Member Avatar for vmanes
0
154
Member Avatar for Mensa180

Hi all, I can convert my .py or .pyw files into EXE no problem. The thing is they only display a console for about a tenth of a second if they have a GUI made with tkinter. If it is a console only program then the exe works fine. Any …

Member Avatar for Stefano Mtangoo
0
127
Member Avatar for Ritushido

Hi, I have searched for ages trying to find a solution for this but I cannot. I'm still learning asp.net so apologies if this is a noobish question, but could somebody please look at my code and tell me what's wrong? I have a small cms that uses fckeditor to …

Member Avatar for sknake
0
150
Member Avatar for rgpii

Hi, I am currently taking a class on data structures(analyzed in C++) at a university and I really find our current text book, Data Structures and Algorithm Analysis by Mark Allen Weiss, hard to follow. Does anyone know any good data structure books that pulled you in? Thanks for your …

Member Avatar for jmaat7
0
208
Member Avatar for nicolek808

I am having trouble with stacks and infix and post fix this is my error: [COLOR="red"]Reading from file "input16.txt": Infix expression = (5) Exception in thread "main" java.util.EmptyStackException at ArrayStack.pop(ArrayStack.java:51) at test.infixToPostfix(test.java:140) at test.displayArray(test.java:87) at test.main(test.java:53)[/COLOR] this is the txt file: (5) (1+1) ((9/3)-2) (9-(3/2)) (1+(4-(9*(6/(5%7))))) ((1+4)-(((9*6)/5)%7)) (((1+(4-9))*6)/(5%7)) ((1+(2-3)) (1+(2-3))) …

Member Avatar for ejosiah
0
2K
Member Avatar for genieuk

Hi, My site uses sessions and for example on login a random token as a hidden field in the form is generated and added to the session. As i am on shared hosting i set my own session path outside root directory and if for example session is tampered in …

Member Avatar for genieuk
0
132
Member Avatar for kotiloli

ı have a hw about multiplying [COLOR="Red"] very large[/COLOR] numbers.For example we can't use standart data types for multiplying two numbers which have twenty digits two each.So the doctor wants me to achieve that by[COLOR="Red"] Link List.[/COLOR] i'm responsible that holding these large numbers (multiplicand,multiplier and result) in link list.And …

Member Avatar for yellowSnow
0
120
Member Avatar for daviddoria

With this code: [url]http://www.rpi.edu/~doriad/Daniweb/maxflow/[/url] If I run [code] g++ Example.cpp graph.cpp [/code] with g++ 3.3, everything works fine. However if I run the same command with g++ 4.4, I get this error: [code] Example.cpp:(.text+0x38): undefined reference to `Graph<int, int, int>::Graph(int, int, void (*)(char*))' [/code] Does anyone know how I can …

Member Avatar for StuXYZ
0
132
Member Avatar for newcpp

I have a question: [CODE]#include <stdio.h> char * chstrswithf(char * a) { while(*a!='\0') { if(*a=='s') *a='f'; a++; } return a; } int main(void) { char string[]="this is a string"; chstrswithf(string); printf("%s \n",string); return 0; }[/CODE] the code above is ok for running. but when I replace the [COLOR="Red"]char string[]="this is …

Member Avatar for gerard4143
0
86
Member Avatar for jooa

Hi, I am trying to convert an image into grey scale. I can do this using a buffered image however the image type I have is Image. As you can see in the code below I try to cast the Image to a BufferedImage, apply the greyscale then cast is …

Member Avatar for asimKhatri
0
369
Member Avatar for severman

hi all what i want to do is that when im running a shell script, if there is error(like permition denied) i wil be able to catch it as string my code is [code] $cmd= `sh /blabla/bla.sh` print_r($cmd); [/code] if the script is ruuning with no errors, im able to …

Member Avatar for severman
0
137
Member Avatar for sandeep_1987

I want to create a User Control,that contains two textboxes & button.Can anybody tell me how to create user control with events??

Member Avatar for sandeep_1987
0
84
Member Avatar for wewehalim

Hi, this is my final project. I have generated an xml string, this is my code: [code]import java.io.StringReader; import java.io.IOException; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.CharacterData; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.Node; import org.w3c.dom.NodeList; import org.xml.sax.InputSource; <%@ page import="javax.xml.parsers.*" %> <%@ page import="org.w3c.dom.*" %> <%@ page import="java.io.*" %> <%@page import="recipe.*" …

Member Avatar for vishugs
0
402
Member Avatar for Jalwes

Hi all. I have an assignment for class (obviously I am new to this), that requires us to read from a file and then print out the first 22 characters from each line within that file. I have tried using getline and get, but can't seem to get it to …

Member Avatar for csurfer
0
265
Member Avatar for web3
Member Avatar for priyapratheep

Hi friends, I am new bie to programming.This is my first project.so the tecnical terms i am not familier. I am doing one small project with Eclipse Europa,jsp , EJB. with XDoclet, weblogic server I first created all my jsp files as one project.Then i created one enterprise application project …

Member Avatar for peter_budo
0
175
Member Avatar for apgriffiths

I have a datalist that is populated using an ArrayList. When this is rendered i want to set the background image depending on a list item value, at the moment i have set the image in CSS but i dont know how i would change the image depending on the …

Member Avatar for apgriffiths
0
720
Member Avatar for pygirl

Hello, I would really appreciate some help with tkinter. Does anyone know how to change border colour of a widget and if it is possible to display border on just one side of the widget (so for example only the left or bottom border)? I tried to find the answer …

Member Avatar for pygirl
0
1K
Member Avatar for plzhelp

Hi im having trouble with a lab that was assigned today. The program has take input from the user which lights are on button 1 controls the NW and SE hallways, button 2 controls the NE and SW hallways, button 3 controls the SE and NE hallways, and button 4 …

Member Avatar for snippsat
0
88
Member Avatar for ENCHTERP

Hello: Is it possible to declare a variable with multiple data types. for example in my program I would like to declare my variable as int or char depending on the situation the variable is in as an example. declare variable C int K =cin(); if( K ==4) C = …

Member Avatar for ENCHTERP
0
3K
Member Avatar for Saadulla

Hello everybody, I wanna help to writing this program. Q/ Write Prog. that generates Random Binary sequenced by Using shiftRegister o f Length (10). thnx 4 Help

Member Avatar for Saadulla
0
136
Member Avatar for NigelT

I wish my Users to be seamlessly sent to an alternate URL using a redirect if the original URL is not available or times out. As a total newbie to JS & AJAX, I wonder if a solution is possible to detect failure to connect to URL_a and automatically redirect …

Member Avatar for NigelT
0
94
Member Avatar for nerdagent

I'm trying to put in some code that will delete a list from a list. For example if the user decides to delete the first names he would type in 'first' (w/out quotes). however after they input the name nothing prints out. Any suggestions? [CODE] person = ' ' first …

Member Avatar for vegaseat
0
127
Member Avatar for TigerGirl

Hi. I have a recursive public static method search that takes a Tree node (any arbitrary binary tree, not necessarily a search tree) and returns whether or not that tree satisfies the order property for a binary search tree. So, my method is [CODE]public static boolean search(TN t) { if …

Member Avatar for TigerGirl
0
206
Member Avatar for valkerye

I'm having a bit of an issue with a while loop in a program I'm working on. I am attempting to use a while-eof loop to read float numbers from and input file and simply rewrite those files to a created output file. My issue is that the while loop …

Member Avatar for VernonDozier
0
734
Member Avatar for sirhcnus
Member Avatar for Atli
0
52
Member Avatar for new programer

Howdy Folks! I've been asked to write a program that reads in an interger N and calculates The factorial ... I wrote this yesterday but it does not seem to work .. here's the code : [CODE] #include <iostream> using namespace std; int main() { int i=0; int s=1; int …

Member Avatar for warbird43
0
135
Member Avatar for jack c++

what does: "expected init-declarator before "int" "expected ','or';' before "int" "expected constructor, destructor or type conversion before'=' token" "expected unqualified-id before '=' token" mean? what do all these compile errors mean? this is my code with most errors. [CODE]int x; ,x = 153; [/CODE]

Member Avatar for jonsca
0
137
Member Avatar for Yovanys

Excuse my English.. At work we have porting some app to MySQL, but there are still some Database in Access 2.0, Access 97, DBF, etc Some important database is "codifica" is in access 2.0, this DB contain to many tables that are used in other DB. I need copy data …

Member Avatar for scarpacci
0
201
Member Avatar for shishtawitch

i have register a domain on domain.com and setup my own name servers e.g ns1.mydomain.com ns2.mydomain.com but when i access my page it shows me the following error..... Great Success ! Apache is working on your cPanel® and WHM™ Server what should i do next i have never install any …

Member Avatar for smartness
0
120
Member Avatar for K0ns3rv

Hey guys, i am currently working on a project. It's a web application for registering the amount of time an employee has worked. I have written the web app for adding a new employee and for adding a timestamps( e.g work done). Now my problem is like this i need …

Member Avatar for K0ns3rv
0
135
Member Avatar for msweets0778

i keep getting this i cannot see the problem i have looked Parse error: syntax error, unexpected T_STRING in /home/wwwmmsw/public_html/includes/languages/english/contact_us.php on line 15 [code=php]<?php /* USERCART 2 Lithium [url]http://www.usercart.co.uk[/url] Copyright (c) All right are reserved 2001 - 2009 USERCART ECOMMERCE [email]sales@msweets.co.uk[/email] */ define('HEADING_TITLE', 'Contact Us'); define('NAVBAR_TITLE', 'Contact Us'); define('TEXT_SUCCESS', 'Your …

Member Avatar for CFROG
0
106
Member Avatar for bentlogic

Hi Java Developers, wondering if someone can point out why references to 'Student' (successfully compiled java class) in my ValidRecords.java source file don't seem to resolve at compile time? It's important to say that ANY and ALL references to Student object from inside ValidRecords.java don't resolve... not just the one …

Member Avatar for peter_budo
0
347
Member Avatar for web3

I now how to make a profile but how to make for every user when he logs to view button my profile and takes them to their profile.

Member Avatar for CFROG
0
98
Member Avatar for mayanktalwar

[CODE]#include<iostream.h> #include<conio.h> void main() { clrscr(); int k=0; int x; cout<<"input the no whose no of zeroes is to be calulated at the end in its factorial"; cin>>x; for(int i=1;i<=x;i++) { while(i%5==0) { k++; } } cout<<k; getch(); } [/CODE] hey in the above code it does not give compilation …

Member Avatar for warbird43
0
123

The End.