199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for rickarro

Hey All, I'm having trouble figuring out why I can not put aphostrophies in my input form. This is a user input area and it won't take words like, don't, won't ...etc. Here is the input form [code] <?php if (!isset($_SESSION['valid_ad_user'])) { echo "<h2>Sorry, you do not have permission to …

Member Avatar for rickarro
0
100
Member Avatar for matejkralik

Hello people, Can somebody tell me how can I use ConfigurationManager? What using assembly should I declare? There is very useful [URL="http://msdn.microsoft.com/en-us/library/ms254494.aspx"]article[/URL] which features I want to use in my code but my express edition is unable to recognize ConfigurationManager, ConnectionStringSettings,... How to solve this?

Member Avatar for ddanbe
0
141
Member Avatar for busnerrors

Hi I'm fairly new to vectors in C++ and I'm having some problems with them. I have a vector of vectors but I don't know why it is causing a segment fault in my program? [CODE] vector < vector<int> > grades; int temp; for(int i = 0; i < 30; …

Member Avatar for busnerrors
0
136
Member Avatar for dmanw100

Is there an easy way to open an fstream using a string? My code is as follows: [CODE]bool openArray(std::string *arrayFileName, int *width, int *height,int *myArray) { std::fstream BoardFile; BoardFile.open(*arrayFileName);[/CODE] I obviously cannot use this method since *arrayFileName is not char* but is there another way to do it?

Member Avatar for kux
0
147
Member Avatar for nouryn

Hi, i need to know how to create a program draw a graph once i insert a linear programming equations can it be done by java???how??? thanks

Member Avatar for Ezzaral
0
166
Member Avatar for Narayanank
Member Avatar for nimasafa

Hi I need to perogram the simple Calculatotr, Acceptable operators.' + : Add - : Subtract * : Multiply / : Divide ^ : Power ( raise left oprqnd to the power of the rifgt operand ) q or Q = Quit This is a progarm that I wrote : …

Member Avatar for WaltP
0
135
Member Avatar for En-Motion

Im trying to write a program to count characters and words when type a sentence but i keep getting "syntax error : missing ';' before 'type'" as an error. Anyone see where I'm going wrong? Thanks [CODE]#include <stdio.h> #include <ctype.h> int found_word(void); int main() { int c, nw=0, nc=0; printf("Enter …

Member Avatar for WaltP
0
340
Member Avatar for J-son

Hi there again :) Could someone tell me what is the difference between function declare in main() and outside main() ? Because I don't see anything wrong. Thanks so much in advance. Here is example, [CODE=c] #include <stdio.h> //void fun(int x,int y, int z); int main() { void fun(int x,int …

Member Avatar for Denniz
0
11K
Member Avatar for Sheryl99

I've created a very simple UserControl, compiled it, then exited VB. Then I loaded my application and added a reference to it, and also added the Imports statement for it. The problem is that the UserControl will not display in my Toolbox, rendering it useless. Is there something else I …

0
70
Member Avatar for Achupa

[B]Hi, I'm trying to use a map in my application. the class MovieRating which contains the map is as below:[/B] [code] import java.util.*; public class MovieRating { private Map ageMap = new HashMap(); private String movieRating; public MovieRating() { ageMap.put("PG", 18); //parental Guidance ageMap.put("G", 4); //general viewing ageMap.put("A", 27); //Adult …

Member Avatar for stultuske
0
215
Member Avatar for crprajan

I am new to layered architecture design. I need to implement a record navigation form in c# windows. It will contain three textboxes one for entering the empname and another for entering empage and another for entering his dateofbirth. I have buttons for adding, deleting and editing the current record. …

Member Avatar for dickersonka
0
117
Member Avatar for Tayprogramming

I have 2 Questions and not found solution,can anyone help me: _what's conception of "word align of variable"? _Base on Visual Studio,which keyword do the that activity? _Which Library do we work perfectly with a big integer(at least hundreds of bit)? Thanks .

Member Avatar for Denniz
0
110
Member Avatar for cali_dotcom

hi, i just tried to add the email function to my website so that when users sign in the recieve an email but i keep getting this error. does anybody know what's wrong: Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" …

Member Avatar for pritaeas
0
149
Member Avatar for Gagless

My program needs to print the mirror image of a letter that's input. All the letters will be input in uppercase. And the mirror image will be printed in uppercase. So if I input A it's mirror image would be Z if B, then Y if C then X if …

Member Avatar for Freaky_Chris
0
305
Member Avatar for mailtosridar

my project is vb.net and project is completed ..... i dont know how to create setup /deployment any one help me <snip email>

Member Avatar for samdoss
0
104
Member Avatar for davewylie

I want to be able to identifying users to my website so that I can see when they last logged on and highlight changes to certain pages when they see them for the first time. One problem is that a user's IP address may be dynamic, so I don't see …

Member Avatar for Manuz
0
136
Member Avatar for prabbhhu

I am using Java along with hibernate, I stored datas in UTF-8 format for my project, i need to retrieve datas in Arabic, give me some ideas about this conept... i m in hurry... reply me as ap..

Member Avatar for stultuske
0
166
Member Avatar for sfrider0

I'm creating a SMTP client. I'm entering the data(to, from, subject, body) in a HTML form. How do I pass that data into the actual Java SMTP client so I can send it? I know how to hardcode the data into the client and send it that way but having …

Member Avatar for ~s.o.s~
0
240
Member Avatar for johnyboy82

Hi I am new to python programming and I am trying to embed some python calls into my C++ program. I made a simple module called 'test.py' which has the following lines : [code] //---------test.py------------------ message = 'The meaning of life...' def transform (input): input = input.replace ('life', 'Python..'); return …

Member Avatar for Gribouillis
0
2K
Member Avatar for rogenie

I am using the latest phpmyadmin. I have a database and within it is a whole bunch of tables. I want to load a semicolon delimited text file but it doesn't seem to work. Here is the sample of my text file where 55 is the field id. Field title …

Member Avatar for rogenie
0
180
Member Avatar for nirav0190

Write a program counts in a given text the words that contain at least three different vowels (Vowels are a, e, i, o, and u). Words in the text are all lower case and are separated by at least 1 space, maybe more. The last word in the sentence ends …

Member Avatar for vmanes
0
93
Member Avatar for Matthew85

I am writting a program that takes in a number that ranges from 0-255 from an input file and a chip number, then I have to do a CDMA encoding on it. I am having a couple problems with the seeded random number generator. I need to have a 4 …

Member Avatar for brianlevine
0
134
Member Avatar for dmanw100

This code is giving me the error "expected primary-expression before ']' token." After googling and looking around Daniweb I still cannot find what this means. Can anyone enlighten me? [CODE]int board[*width][*height]; if(OpenBoard(boardName, width, height, board[][*height])) { } //... //function definition... bool OpenBoard(std::string *boardFileName, int *width, int *height, int board[][100])[/CODE]

Member Avatar for dmanw100
0
243
Member Avatar for gmdune

Hi All, Thanks for all your help and suggestions...I am re-posting my code, with proper formatting for your review. The code runs correctly, but the ending balance, after all the withdrawals, is incorrect and I can't find where I messed up. Any help would be most appreciated: [code] #include <stdio.h> …

Member Avatar for Salem
0
210
Member Avatar for dmanw100

Hello, I am trying to pass a multidimensional array to a function but I keep getting a "expected primary-expression before ']' token" error. I'm using Dev-Cpp and here's my code: [CODE]int array[*width][*height]; if(OpenArray(arrayName, width, height, array[][*height]))[/CODE] I suppose it could be because there is nothing actually stored in the array? …

Member Avatar for Salem
0
86
Member Avatar for wyoming

I'm not a pro. I am a psychologist working in a treatment facility and I would like to end the nightmare of assigning manually 60 kids to n groups. When I do that by hand, I always forget a couple or have the same ones in 2 or 3 groups …

Member Avatar for wyoming
0
81
Member Avatar for SAMI2

Hi I have create database by MSaccess in the my computer and I need publish on the Internet to use direct from website. the database contain tables, queries and forms that is as application. I want open the application through the internet. I have background of MSaccess, and what comes …

Member Avatar for SAMI2
0
76
Member Avatar for imput1234

Hey, I'm new and am using Visual C++ 2005 Express Edition. How do I increase the size of the console screen, I just need to make it wider for my program. Yes, I have searched, but all the methods I have found require to me use #include <windows.h> I get …

Member Avatar for Ancient Dragon
0
81
Member Avatar for StainlessSteelR

This is my assignment: Write a program to helps health care staff keep track of a patient's cholesterol level. It needs to have a main function that calls another function, and the function must be declared before the main function using a function prototype. A function must be called checkLDL, …

Member Avatar for Ancient Dragon
0
95
Member Avatar for jhonnyboy

hey guys im having a bit of trouble making an string accessor to a private member string variable that i have declared: Class A{ public: string getname() const; private: string name; }; Thats a little example. I have tried almost everything. I have included string class header in the class …

Member Avatar for jhonnyboy
0
266
Member Avatar for ambarisha.kn

I wrote the following function and it is working fine, but my problem is i want to write forward pointer address in present pointer field. I will explain in code. please check line numbers 10, 11, 12, 13 in the following code.. [code=c] void create_fbeCodeDat() { int checkSum=0; fwrite(&signature,1, 4, …

Member Avatar for ambarisha.kn
0
203
Member Avatar for Kezoor

Hello all, Beginning my preparation for python 3.0, I just installed python 2.6 and the adapted wxpython. The problem is I can not run the IDLE neither the Module doc of 2.6. I can run the python command line, and that works. But I want to use the IDLE. After …

Member Avatar for Kezoor
0
140
Member Avatar for laghaterohan

Hello i have a form in which i have 5 tab pages(each with their unique name )and one TabControl eg. say ...I HAVE admission form under which there are fees, balance enq...tabs...... In MDI i have menuitem under FEES under which i have item Balance enq...etc... The problem is that …

Member Avatar for rmjagnaan
0
115
Member Avatar for robgeek

Hi, I was doing my assignment which states: The user to enter a string which should be stored in Input_String[]. 2) Then reverse the string and save it to another array called Output_String[]. [COLOR="Red"][/COLOR] I am having trouble with the second part where I need to save the string to …

Member Avatar for Ancient Dragon
0
250
Member Avatar for Phrenetic

Heya, what i would like to do in one query is pull out two objs, that are very similar from the same table "ol_obj_data" These two objs are "ratings" and "reviews" they are not linked except for a USER_ID of who submitted them. But they relate to our business data. …

Member Avatar for Phrenetic
0
125
Member Avatar for Roebuc

Hey all, I am trying to write my first Ajax script.....I downloaded a demo and basically tried copying it and it did not work. My PHP scripts that are tied to it work, however on the form, my onclick="getName();" or onChange="getName();" does not work. onkeyup="doWork();" works just fine. can someone …

Member Avatar for Roebuc
0
118
Member Avatar for Zandermander

Hey everyone, I'm just playing with some code and timers seem to just confuse me :\. Well what i want is a timer that counts down from 10 seconds and when it hits 0 it simply pops up a message box.. This is what i have so far.. not so …

Member Avatar for Zandermander
0
116
Member Avatar for Newguy89

guess game In this game, you play with computer for N rounds (N should be provided by the user and passed into the function as a parameter). In each round, the computer generates a random number between 1 and 3 (including 1 and 3), and the computer asks you to …

Member Avatar for chococrack
0
86
Member Avatar for Se7Olutionyg

[code=cplusplus]#include <iostream> using namespace std; //Function declare void displayMenu(void); void getSelection (int &userChoice); void processChoice (int userChoice); float monitorCoke( float ); float monitorpep ( float ); float monitorcana ( float); float monitorhire ( float ) ; // variable declare and const float option, cocaout, pepsiout ,canaout,pepleft,canaleft,cokeleft,hireout , pepfinal, cokefinal, canafinal, …

Member Avatar for Ancient Dragon
0
131
Member Avatar for tag234

Hi, Ive recently been working on a C++ project where we are required to prompt the user for a string "command", take the first char from that string to decide exactly what command it is, and then take the remaining parts of that string and turn them into individual characters …

Member Avatar for tag234
0
124
Member Avatar for thinfineline

Ok, I'm writing a simple for loop with an accumulator for my class tonight and can't figure out what I'm doing wrong. I want the program to accept the first 10 even numbers from the keyboard and add them up and display an error message if someone enters an odd …

Member Avatar for chococrack
0
116
Member Avatar for hikaru1239

Hi, I was practicing for our hands on exams tomorrow when I encountered a problem in my code. Here is a part of my code: [CODE]void interactive(){ //if argument is 0, program will enter the interactive mode. int choice; int year, month, day; char div[40]; char tags[WORD_COUNT]; char entry[WORD_COUNT]; printf("\t\t....................................................\n"); …

Member Avatar for Aia
0
83
Member Avatar for joshmo

Hey all. I have another problem with classes. I have 3 classes A, B and C. B extends C and class A is where objects from B and C will be used. Below is the syntax of what am trying to say [code=cpp] class A{ private int o,p; protected B …

Member Avatar for BestJewSinceJC
0
105
Member Avatar for VernonDozier

I have a program for which I am designing a help menu. The program allows you to add squares, ovals, and other shapes, and move them, rotate them, etc. I'm setting up some HTML pages that explain how to do different tasks. So when the user pulls down the help …

Member Avatar for VernonDozier
0
122
Member Avatar for jackakos

I have a form in which there is a table that displays a list from the MySQL with checkboxes to each displayed name. I have to make a selection out from the list by checking some the checkboxes all may be all the checkboxes in some circumstances. A. I have …

Member Avatar for jackakos
0
171
Member Avatar for boofhead

I have two databases and want to combine them. I tried sharing the tables but could not make that work. I tried importing the fields into the master table and that did not work (could not find a copy button). So I laboriously typed in the fields (copied them to …

Member Avatar for boofhead
0
131
Member Avatar for gusbear

so i have to write regression line program which is hard enough seeing as i just started so i need help, 1st thing is how do i write a loop for mouse clicks of any number, then write the average of whatever the amount of mouseclicks, thanks!

Member Avatar for hobbz86
0
139
Member Avatar for shindog3

So I was trying to make a calender that outputs what ever month is prompted. yet this wont run, i keep getting this error 1>c:\users\lukas shininger\documents\visual studio 2008\projects\calender2\calender2\calender.cpp(151) : error C2059: syntax error : '}' [code] #include <iostream> #include <string> using namespace std; int main(){ int month,dateCount,dayCount,blankCount,totalDates,i; /*month: userinput variable …

Member Avatar for chococrack
0
186
Member Avatar for idontexist

I have made a simple console based flash card program for the children in my house (and for practice as I just started teaching myself the language). It uses srand to get 2 numbers and has the user input the question. I have included addition, subtraction and multiplication but i …

Member Avatar for idontexist
0
310

The End.