64,152 Solved Topics
Remove Filter ![]() | |
[CODE]void DeleteMovie(vector<Movie> &M1){ cout << "Option selected: delete a movie from the database" << endl; string T1; int TT=0; if(M1.size()<1){ cout << ">Error: There are no movies to delete.<" << endl; } else{ cin.ignore(100,'\n'); cout << "Enter the title of the movie you want deleted: "; getline(cin,T1); for(int i=0;i<M1.size()+1;i++){ if(M1[i].Get_Title()==T1){ … | |
Hi there, I'm a newbie, and I would really like some help regarding this issue I have with my menu. First the code: [CODE PHP] 01 function public_navigation($sel_subject, $sel_page, $public = true) { 02 $output = '<ul id="sidebar_tags_ul">'; 03 $subject_set = get_all_subjects($public); 04 while ($subject = mysql_fetch_array($subject_set)) { 05 $output … | |
I'm having trouble with vectors. I have a class that I read from a file, then I insert it into a vector. It should work fine, but my compiler crashes every time. Am I not using the vector correctly? [CODE]#include <iostream> #include <string> #include <iomanip> #include <fstream> #include <sstream> #include … | |
![]() | Here is the script I'm using: [CODE] $(function () { $('#nav a[title=toggle]').click(function() { $('#user').slideToggle(); }); }); [/CODE] [B]However[/B], when I click the Toggle link located on the nav bar, it slides the #user up, and immediately slides #user back down. Here's the CSS for #user: [CODE] #user { z-index:1; position:fixed; … ![]() |
i need to bounce a problem off you guys that is driving me crazy i made a php login with sessions it logins in fine then as soon as i switch pages it loges me off and i did echo the ssid out and the session id does change on … | |
Hello, I was wandering how to save the contents of a JPasswordField into a text file, i thought to use the [CODE]getPassword()[/CODE] method, but a [CODE]null[/CODE] is saved into the file instead. Would appreciate it if I could get some initial ideas. Thanks for your time, Sam | |
[CODE]System.out.println("what is your name? "); String name = kb.nextLine(); for(int i = 0; i < member2.size(); i++){ if(member2.get(i).equals(name)){ System.out.println(name + " is a member. "); break; } else{ System.out.println(name +" is not a member. "); break; } [/CODE] i did a system.out.println on the member2 arraylist (String arraylist) and it … | |
I am trying to make a Measurements Units Conversion Calculater on Dreamweaver with help of Javascript. THis is my first ever javascript application and need to complete it in next 6 hours. :(( I want to have a drop box containing Length, Area, Temp etc. on top. When a user … | |
I would first like to start this post with a sincere Thank you to everyone who has posted and will post help for my problem. Without you guys, I would be banging my head on my desk. Well, I got another problem. This time with a function that takes a … | |
Not sure why I am getting it, I got this one other time and forgot how i fixed it.... Getting it when i am calling my functions in the main file (3rd) Three files to this code: [CODE]namespace SALES { const int QUARTERS = 4; struct Sales { double sales[QUARTERS]; … | |
I have this function in the main form: [code=c] public void Check() { UpBox myClass = new UpBox(); myClass.UpdateBox(listBox1,"Hello"); } public void Initial() { Thread thread = new Thread(new ThreadStart(Check)); thread.Start(); } class UpBox { private delegate void Box(ListBox list, string text); public void Box2(ListBox list,string text) { list.Items.Add(text); } … | |
How can I check if username already exists in database or not. | |
Guys, I'm having a little bit of a problem trying to display something when the URL is a specific one. Basically purely for examples sake, if the URL is [url]http://www.mydomain.com/hello.html[/url] I want it to display "Hello", and when it isn't I want it to redirect to another page. I know … | |
Hiiiiiiiiiiii!!!!!!!!!........... The program written below runs perfectly upto some extent but the output varies............because the compiler prints the "{Enter the value}" line twice and itself adds a positive number in the counter.................. [code=c] #include<stdio.h> #include<conio.h> int main() { int sum1=0,sum2=0,sum3=0; char value,alpha; while(alpha!='D') { printf("\n Enter the value"); scanf("%c",&alpha); if(alpha==0) … | |
Hi, This is probably, a really novice question, but I have some code that is using the malloc() function to declare an array, the problem is that I am using a special compiler to compile code for hardware which gives me a lot of errors because of the stdlib.h header … | |
i work with a guy who constantly complains and posts on stackoverflow that i am a sloppy coder (he is a web developer, i am a .net developer, he has never actually looked at my programming). but curiously, i researched. The only thing that I do not follow with best … | |
Hi, im trying to print a "$". I tried using: msj db "Hola", 36 msj db "Hola \$", '$' msj db "Hola \\$", '$' But none of them worked.. Help please | |
hi can you tell me what type of data i should use to store a very large number like 500! (factorial of 500) thanks | |
Hello, What I'm intending to do it's an Organization chart with departments and members. Basically an organigram with different departments and different members. This is the MySQL database. And here is my attempt of doing this horizontally, but i`m kind of stuck. Could you give me some hints on how … | |
i'm trying to populate a JList, and i saw that this is how it supose to work [code] JTable tabel = new JTable(); tabel = new JTable(row, cols); while (it.hasNext() && it1.hasNext() && it2.hasNext() && it3.hasNext() && it4.hasNext()) { Object ob[][] = { { it.next(), it1.next(), it2.next(), it3.next(), it4.next() }} … | |
![]() | Alright, maybe I'm having a brain cramp this late at night, but my code is not working, and I have no idea why. Any help? This is simply being used for me right now, so yes, I'm pulling straight from the $_POST. [CODE] <?php session_start(); if($_SESSION['id'] != 5) { echo … ![]() |
So I've printed the first node in the linkedset. What I'm trying to do now is to figure out how to print the entire linkedSet1, in this case, since only one node has been added, it should only print the first node, but once more nodes are added it will … | |
Hi to all! Im having problem inserting ñ and Ñ in mysql using java. I did try to insert in mysql using CLI and it works ok but when I used it in my java it was replaced by other characters. does anyone have the same problem and have solved … | |
I know many will start with ODBC, but slow down ;) I have searched for ODBC and all I find is UnixODBC. Is this the same as ODBC? Also how stable it is? I will be happy to know some apps/companies behind it! I need support for MySQL, PostGreSQL, DB2, … | |
Hi, Im trying to run a MYSQL query to check if the input value exists first. A user fills in an input field and clicks "Add Tag" The java script on the same page checks the MYSQL table if that tag is already there and if so returns a faded … | |
Hi, i have two scripts, One holds the form and the other the php Query process. Im using a small piece of javascript to POST the value to my php Query process script but im finding it difficult to display a result by fading in a div based on the … | |
I am trying to create a commenting system that is linked with videos hosted on my server. The videos are displayed on a watch page (watch.php) and the commenting system is included below the video player. When new comments are posted from the watch page they are then processed and … | |
Please help! Im behind in my homework and dont really even understand it anyways. I cluelessly added the `addCoin("...");`, which i believe is correct. but I dont know what to add to the return statement for `public String toString( )` If you are willing to help, plz provide steps as … | |
Okay, you know when on like an alert window, or a form, one of the buttons automatically gets executed when you press enter, such as shown. [I]See Picture #1[/I] [i]So I was wondering[/i] how I could do this in Java for a both a JFrame and a JOptionPane. Thanks. arithehun … | |
Hello, I need help on writing a C++ program that allow the user to input two values: a username and a password. Below is what I have so far to test the password and it is not working. #include <iostream> #include <string> #include <vector> using namespace std; int main () … | |
I need to write a code in which i want to create each file for every iteration of a loop add data into the file. also the filename should change every time. for example: familyname1_parts.txt for 1 iteration for second familyname2.parts.txt for 2 iteration and so on.. [CODE]try { out … | |
![]() | I'm using Dev-c++ to make a dialog-based app. I had it working, but now I am getting an error: An Access Violation (Segmentation Fault) raised in your program. I have narrowed it down to the winmain function: [CODE]int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLine, int iCmdShow) { if (iCmdShow … ![]() |
Can someone please help fix this program? I'm pretty new in Python. Every time I run this program it says : Traceback (most recent call last): File "E:/Python/delin.py", line 38, in <module> discounted_total = regular_total - full_discount TypeError: unsupported operand type(s) for -: 'float' and 'NoneType' def find_discount(total): if total … | |
Hello, I am working on a program that requires the splitting of a string (the string in question is "BSHDDBDSBSHHSBH") so that it can count the occurrences of each separate letter. The code I currently have is: [CODE] public static void countPercent(Scanner input) { String nucl = input.next(); int[] count … | |
hi!!!!! any body tell me what is command line argument with example. Thank's in advance. | |
I am designing an instant messanger and I am using tabs to allow for multiple chats to be taking place in the same windows form. When a new chat is opened, a new tab is added, using a User Control to make the new tab contain all of the required … | |
I got a simple priority queue of <node> objects. [CODE] Priority Queue<node> queue = new Priority Queue<node>(n,compare);[/CODE] the node object has a few fields, one of them an int field called LB(lower bound) I've build a compare class so the queue would use my compare to sort itself. The problem … | |
I finally have it so that when I click the submit button, I do get an email, but all that shows up is: "Name:". It doesn't tell me what the name is, or show the other two fields. (It does go to the Thank You page OK.) What am I … | |
Hi all, So I have reached a kind of impasse on my current project. I'm trying to make a program that can function like a phone book, loading information from a file into a binary search tree and performing operations on said information. The issue I'm having appears to be … | |
Hi i wanted to make a software that can "Off" and "On" a computer fan connected with a usb can i make it in c++?? i have 1 year experience doing C++ Thanks, | |
[ICODE]CR.Reset CR.ReportFileName = "StudentInformation.rpt" CR.SelectionFormula = "{SPINF.GRNO}=" & Me.txtGRNo.Text & "" And "{SPINF.CMBCAT}=" & Me.cmbCat.Text & "" CR.Action = 1[/ICODE] [I]m trying to passing two parameter for cr..! bt it always shows the error type mis match.! plz help me[/I] | |
I am in my final year in the university and about to do my final year project. I would be very happy if anyone of you can suggest an idea that I can implement with PHP. Thanks in advance. ![]() | |
I know next to nothing about statistics so tried Statistics::Basic because it seemed easy to use. Then I tried Statistics::Descriptive because it has functions that Statistics::Basic lacks. What I did not expect was to get a different result when calculating Standard Deviation using Statistics::Descriptive than when using the other module … | |
The problem is to create a console-based program that prompts the user for name, student number, course, and grade (50-100 whole number only). After the input, a message should be displayed depending on the grade. The program should display an error message and terminate immediately if there is an invalid … | |
Morning all, Hope you can help. I normally use VB6 for my projects but thought i would look at Visual studio 2010. I have a windows form with a connection to my sql database which is working fine. i want to be to select data and input that data into … | |
![]() | Hey, During my development of web browser i have encountered a problem. The problem is that on my bookmarks panel if a user adds a bookmark that's already on the panel, the application gets an error and has to quit. I tried surrounding the code with a try catch statement … |
Hi i am new to qt but i have programing experience in c++ in dev - c++ after i moved to qt i thought i could start like this if i press a button it should output hello world it is just showing me 1 error system was not declared … | |
is there an event where when the listview box is updated/changed i can call a function where i can do some calculations on the changed data. the listview is updated from textboxes and a button and the calculated result is shown in a text box thanks steve | |
Hi ppl. Im a bit of a newbee when it comes to coding but having a problem adding a text file to a listview box. My code sort of works as far as putting data in the first collum goes. [CODE]// Set variables int collum = 0; int arraySize = … | |
Hi there I'm writing to a file so that it creates a back log of the data and time i did something. I've got the program so it writes the data that is needed and also the date and time. the problem is if you use the program more then … |
The End.