64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for thisischris

[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){ …

Member Avatar for thisischris
0
97
Member Avatar for ajfresh

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 …

Member Avatar for ajfresh
0
103
Member Avatar for thisischris

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 …

Member Avatar for thisischris
0
100
Member Avatar for ZethSchlenker

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; …

Member Avatar for ZethSchlenker
0
99
Member Avatar for HITMANOF44th

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 …

Member Avatar for richieking
0
126
Member Avatar for hauda

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

0
63
Member Avatar for plasticfood

[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 …

Member Avatar for plasticfood
0
117
Member Avatar for saad749

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 …

Member Avatar for @developer
0
241
Member Avatar for BBustos

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 …

Member Avatar for sdeez_alpha
0
5K
Member Avatar for MasterGberry

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]; …

Member Avatar for MasterGberry
0
155
Member Avatar for lelejau

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); } …

Member Avatar for Mitja Bonca
0
184
Member Avatar for shenbagam
Member Avatar for joehms22
0
109
Member Avatar for brown23

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 …

Member Avatar for brown23
0
144
Member Avatar for ram619

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) …

Member Avatar for Kamatari
0
137
Member Avatar for fussballer

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 …

Member Avatar for mitrmkar
0
244
Member Avatar for jlego

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 …

Member Avatar for jlego
0
171
Member Avatar for davibq

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

Member Avatar for mathematician
0
165
Member Avatar for alaa sam

hi can you tell me what type of data i should use to store a very large number like 500! (factorial of 500) thanks

Member Avatar for alaa sam
0
87
Member Avatar for Szabi Zsoldos

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 …

0
116
Member Avatar for Melow

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() }} …

Member Avatar for Melow
0
175
Member Avatar for ZethSchlenker

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 …

Member Avatar for ZethSchlenker
0
110
Member Avatar for kezkez

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 …

Member Avatar for kezkez
0
112
Member Avatar for jet101

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 …

Member Avatar for jet101
0
73
Member Avatar for Stefano Mtangoo

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, …

Member Avatar for Stefano Mtangoo
0
149
Member Avatar for jonnypixel

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 …

Member Avatar for jonnypixel
0
704
Member Avatar for jonnypixel

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 …

Member Avatar for jonnypixel
0
4K
Member Avatar for jfarny

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 …

Member Avatar for jfarny
0
713
Member Avatar for hoover_red_one

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 …

Member Avatar for joehms22
0
633
Member Avatar for arithehun

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 …

Member Avatar for arithehun
0
128
Member Avatar for newbee3

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 () …

Member Avatar for chiwawa10
0
110
Member Avatar for palavi

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 …

Member Avatar for Linez
0
1K
Member Avatar for tawes01

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 …

Member Avatar for tawes01
0
291
Member Avatar for hi102

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 …

Member Avatar for hi102
0
11K
Member Avatar for Rogue Hermit

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 …

Member Avatar for joehms22
0
106
Member Avatar for Shlesh

hi!!!!! any body tell me what is command line argument with example. Thank's in advance.

Member Avatar for ashishkumar008
0
206
Member Avatar for Medalgod

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 …

Member Avatar for nick.crane
0
1K
Member Avatar for arthurr.ie

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 …

Member Avatar for jon.kiparsky
-1
145
Member Avatar for tearose49

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 …

Member Avatar for tearose49
0
196
Member Avatar for ace8957

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 …

Member Avatar for ace8957
1
7K
Member Avatar for Hayzam_#include

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,

Member Avatar for Hayzam_#include
0
141
Member Avatar for SkyVValker

[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]

Member Avatar for AndreRet
0
219
Member Avatar for cossay

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.

Member Avatar for diafol
0
126
Member Avatar for d5e5

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 …

Member Avatar for d5e5
0
410
Member Avatar for minskypooh

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 …

Member Avatar for minskypooh
0
199
Member Avatar for Mike Bishop

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 …

Member Avatar for Mike Bishop
0
2K
Member Avatar for nssltd

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 …

Member Avatar for Mitja Bonca
0
140
Member Avatar for Hayzam_#include

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 …

Member Avatar for Hayzam_#include
0
100
Member Avatar for Wattsits

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

Member Avatar for Mitja Bonca
0
173
Member Avatar for Wattsits

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 = …

Member Avatar for Wattsits
0
121
Member Avatar for ajst

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 …

Member Avatar for ajst
0
189

The End.