199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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? | |
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; … | |
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? | |
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 | |
| |
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 : … | |
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 … | |
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 … | |
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 … | |
[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 … | |
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. … | |
![]() | 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 . |
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" … | |
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 … | |
my project is vb.net and project is completed ..... i dont know how to create setup /deployment any one help me <snip email> | |
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 … | |
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.. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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] | |
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> … | |
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? … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
[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, … | |
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 … | |
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 … | |
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"); … | |
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 … | |
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 … | |
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 … | |
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 … | |
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! | |
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 … | |
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 … |
The End.