199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Tu Dinh

Please take a look in my code as below: Vector<Vector<String>> AllSubjects = new Vector<>() ; // PROBLEM IS HERE if ((AllSubjects = EMSSubjectDAO.SelectAllSubjectsByCourse(this.ActiveCourse.getCourseID())) != null) { SubjectTableModel = new DefaultTableModel(AllSubjects, SubjectTableHeader); SubjectTable.setModel(SubjectTableModel); //this.SubjectTable = new JTable(AllSubjects, SubjectTableHeader) ; } On the `// PROBLEM IS HERE` line, if I init `Vector<Vector<String>> …

Member Avatar for JamesCherrill
0
276
Member Avatar for pandeysk_13

hello all, its a very deficult situation for me, bcoz i am not expert thats way taking help from u all. problum : i m creating a project for commission calculation type in the form i have one combobox which is filled by ms access database containing parent ID. these …

Member Avatar for pandeysk_13
0
259
Member Avatar for SpottyBlue

I was practising with the past year questions for tomorrow's final exam. I wanted to read who has the highest score and show the highest score from the text file (see attachment). #include <iostream> #include <fstream> #include <string> using namespace std; ifstream infile; int main() { const int x = …

Member Avatar for Moschops
0
410
Member Avatar for Anthony209

Hello, I am doing the infamous Parking Ticket Simulator for my Java class at college. I have already completed the program and it producing the correct output. The only issue however, is that I am NOT using the PoliceOfficer class to issue the ticket. In other words, he is not …

Member Avatar for JamesCherrill
0
2K
Member Avatar for muhammad_43

Nice to meet you, i am a newbie i would like to ask a question that bothers me out : 1).How to add the decimal representation of N! (5 <= N <= 1,000,000) is simply the multiplicity of the prime factor 5 in N! to my script? 2). I wanted …

Member Avatar for JamesCherrill
0
249
Member Avatar for castajiz_2

So i want to hodl my mouse and by moving the mouse i want my vector to rotate around, which of the built in events should i use? i tryed mousedown event but that s not what i m looking for obviously.Maybe i should combine two mouse events instead?

Member Avatar for castajiz_2
0
160
Member Avatar for amrahim

Hi, Please help, I don't know how to use arabic language in text box or label(caption) in VB6. I try to change language but the sign "?????" appears in text box. Please help me. TQ.

Member Avatar for el fahem
0
2K
Member Avatar for pc20912

I try to making Birth Day reminder project, from VB.Net and MS-Access There are Two tables, "Visitors" and "Employees" "DateofBirthDB" field in Two tables with same format. (some few different fields also in Two tables) I want to select all upcoming birth days from today onwards upto Yesterday, Please expalin …

Member Avatar for M.Waqas Aslam
0
258
Member Avatar for sutty8303

I need help with this program. here is what we are supposed to do. The program should prompt the user to 'Please enter numeric grade: '. The program will then pass the numeric grade to a function that will convert to a letter grade. This function should have the following …

Member Avatar for Faisal Kazmi
0
18K
Member Avatar for bestnone

this is my table subjects in lecturer database No subject credit_hour 1 (111) AAA 4 2 (222) BBB 3 3 (222) CCC 4 4 (333) DDD 3 this is my testing1.php <?php $conn = mysql_connect('localhost','root','password'); mysql_select_db('lecturer'); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } ?> …

Member Avatar for bestnone
0
132
Member Avatar for RikTelner

Yes I've looked already at internet, 3 different queries, 5 pages each, looked on StackOverflow, then its marked as offtopic question, searched through here, answer related like sun and pancakes. My question is, how can I store content of file into variable? While I was Googling I came on this …

Member Avatar for Troy III
0
365
Member Avatar for hendraligawan

Please help me to understand the algorithm from this source code. int time(){ time_t rawtime; struct tm * timeinfo; time (&rawtime); timeinfo = localtime (&rawtime); cout<<"Current time: "<<asctime(timeinfo); }

Member Avatar for Ancient Dragon
0
107
Member Avatar for saad.sarwar.33

I am currently thinking of writing an AutoFill plugin/widget which will take my personal data such as First Name, Last Name etc from a file/javascript and will automatically fill it in web page form. I have read till now to build a plugin which works for all browsers, I have …

Member Avatar for Troy III
0
118
Member Avatar for hendraligawan

I have a problem when I do my task. task: Made a program about queue in Bank teller system. Teller A if deposit <=10million, teller B > 10million the count of customer(queue) is random and the price if deposit is random too. output: how much customers,time and total transaction at …

Member Avatar for hendraligawan
0
200
Member Avatar for tunisia

Trying use radio buttons to select which host I'm referring to since ultimately there will only be two and they are fixed addresses. This is the error: File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 1410, in call return self.func(*args) File "Untitled 2.py", line 63, in command=lambda: callback_power_off(off, host)) File "Untitled 2.py", line 28, in …

Member Avatar for woooee
0
386
Member Avatar for chubbyy.putto

Can someone kinda check this one to see what wrong with it? #include <iostream> using namespace std; int ture ( int a[], int b[], int d); int main () { int b [5]={1,2,3,4,5}; int a [5] ={1,2,3,4,5}; int total= ture(b, a, 5); cout << total << endl; } int ture …

Member Avatar for gerard4143
0
112
Member Avatar for Undefined123

Hi, I'm developing a social service and I have a question about how user info should be loaded. Let's assume a user clicks on an image, and I show him all of the comments. I need to know which comments the user liked. I was thinking that instead of loading …

Member Avatar for Dani
0
137
Member Avatar for PF2G

Hi, I have a list of news that i'm getting from the DataBase: do{ $content.='<div id="square_news">'; $content.='<div id="news_banner">'; $content.='<img src="'.$SelectAllNews['ImagemNoticia'].'" />'; $content.='</div>'; $content.='<div id="square_news_title">'; $content.='<div class="news_title_h2"> '; $content.='<h2>'; $content.='<a href="news.php?news='.$SelectAllNews['IdNoticia'].'">'.$SelectAllNews['TituloNoticia'].'</a>'; $content.='</h2>'; $content.='</div>'; /************SHARE FACEBOOK************/ $title=urlencode($news['TituloNoticia']); $url=urlencode('http://mywebsite.com/news.php?news='.$news['IdNoticia']); $summary=urlencode(strip_tags($news['TextoNoticia'])); $image=urlencode('http://mywebsite.com/'.$news['ImagemSmallNoticia']); ?> <a href="http://www.facebook.com/sharer/sharer.php?s=100&p%5Btitle%5D=<?php echo $title ?>&p%5Bsummary%5D=<?php echo $summary ?>.&p%5Burl%5D=<?php echo $url ?>&p%5Bimages%5D%5B0%5D=<?php …

Member Avatar for diafol
0
622
Member Avatar for Labdabeta

Hello, I can get OpenGL to render 3D scenes to the screen, but I want to render them to a pixel array. Basically I want some magical code to fill in the blanks for this code segment: int width=500; int height=500; uint32_t *colours=new uint32_t[width*height]; //Magic code! glBegin(GL_TRIANGLES); //other drawing stuff, …

Member Avatar for Labdabeta
0
5K
Member Avatar for nadiam

Hi, so im doing my final year project for college and im thinking off adding a function whereby if it has reached the end of the month the system will send an automated email to a user as a reminder. is that possible? i mean coz im just using xampp, …

Member Avatar for diafol
0
170
Member Avatar for refphlex

Hi, I've been having trouble getting the average and letter grades to print and they are outputting as 0 .. I tried everything calling the average function etc. but I still get a zero. Any advice? I don't have any other problems just need help with the average function and …

Member Avatar for refphlex
0
454
Member Avatar for pphamtuan

` #include "stdafx.h" #include <strsafe.h> #include "CHand.h" #include "resource.h" #include <Windows.h> #include <NuiApi.h> #include <NuiSensor.h> #include <string> #include <KinectInteraction.h> using namespace std; double x_cur,x_pre = 500; double y_cur,y_pre = 500; static const float g_JointThickness = 3.0f; static const float g_TrackedBoneThickness = 6.0f; static const float g_InferredBoneThickness = 1.0f; int APIENTRY …

Member Avatar for Ancient Dragon
0
402
Member Avatar for Rohan_1

Can u plz help why dis happens? I was told to write a cpp program to find the factorial of a number using go to

Member Avatar for Ancient Dragon
0
205
Member Avatar for krystosan

I have made a QTableView that displays images from disk, there are two seriously agonizing problem I am facing. First of after the windows shows up making it maximize or changing size of window is very slow, and secondly I want to display images height width dependong on what can …

0
180
Member Avatar for hallianonline

I am creating a little template for my website but getting an error i think so in jquery actually i want to repeat the price terms toggle option multiple times on a single page e.g. 1 month 6 months 12 months term. All is ok but on 2nd tab when …

Member Avatar for hallianonline
0
158
Member Avatar for davidjennings

Hi I am having a problem with the user ID being set, resulting in not deleting the chosen record. This is the data being passed in the url from view.php - delete.php http://localhost/crud/delete.php?91 . I have put in an if statement to check if the UserID is set and it …

Member Avatar for davidjennings
0
263
Member Avatar for adebayo.sas

1. Please how can select Assigned Court so that the Assigned Judge and his Court Location should be auto selected...What I was able to do is just for Assigned court and Assigned Judge..Please I need help to capture the three. This can be found on the Second ICON after login...Add …

Member Avatar for adebayo.sas
0
627
Member Avatar for Learner010

hello everybody, i started learning vb.net around 3-4 days ago. And now i playing with operators . There i have one doubt : is it possible to treat string value like a operator ? for example : let suppose , there are 2 variable named `a ,b` of integer type …

Member Avatar for Learner010
0
118
Member Avatar for chubbyy.putto

When I try to add the two array together it show me 0? ` #include <iostream> using namespace std; int add_arrays(int a[], int b[], int n); int main () { int numbers[5]={1,2,3,4,5}; int numb [5] = {6,7,8,9,10}; int total= add_arrays(numbers, numb, 5); cout << total << endl; } int add_arrays(int …

Member Avatar for Learner010
0
107
Member Avatar for james.lu.75491856

class Timerange{ public: Start_time start; End_time end; Timerange(string initstring){ //initstring xx:xx X, x:x //X->weekday string current=""; unsigned short mode=0; string timeA; string weekday; string timeB; for(unsigned short i = 0; i<initstring.length(); i++) { char c = initstring[i]; if (c==' '){ if (mode==0) timeA = current; else if (mode==1) weekday = …

Member Avatar for gerard4143
0
268
Member Avatar for adebayo.sas

1. Please how can select Assigned Court so that the Assigned Judge and his Court Location should be auto selected...What I was able to do is just for Assigned court and Assigned Judge..Please I need help to capture the three. This can be found on the Second ICON after login...Add …

Member Avatar for pritaeas
0
245
Member Avatar for jonathan710

#include <iostream> using namespace std; template<class T> class MyClass { private: T data; public: MyClass(T data) { this->data = data; } }; template<class T> bool operator< (const MyClass<T> & a, const MyClass<T> & b) { return (a.data < b.data); } int main() { MyClass<int> x(1); MyClass<int> y(2); if(x < y) …

Member Avatar for richieking
0
423
Member Avatar for asif49

http://www.apache.org/licenses/LICENSE-2.0.html This licence is referred to along with several paragraph of comments in a Java API based project I'm using for research. I'm having difficulty understanding some of the law-speak in the license. Especially this part: > You must retain, in the Source form of any Derivative Works that You …

Member Avatar for JamesCherrill
0
156
Member Avatar for TIM_M_91

OK so I have already created many pages with my paging all working correctly however I have just created a new paging page that allows the user to use a search criteria. With the paging and search when you click on page 2 it dosen't load and dosen't display any …

Member Avatar for diafol
0
227
Member Avatar for Iikeloa

Hi <form action="check.php" method="POST"> <input type="text" name="keywords" /><br /> <input type="submit" value="Save The Keywords" /> </form> I need the keywords to be links for example : when the member put : php,mysql it should turn like this in the database : <a href="#">php</a> <a href="#">mysql</a> so when I query the …

Member Avatar for diafol
0
253
Member Avatar for Linddha

Hello, Im new in Ajax.. i try to make an ajax input, and show the result without refresh page. i've success to input data with ajax (pure ajax), but i cann't show the result ?? when i look for a problem, .. it couse of the there a line break …

Member Avatar for Linddha
0
298
Member Avatar for extemer
Member Avatar for NicAx64
0
165
Member Avatar for furalise

Hi all. I want to take a set number of characters from a stringstream at a time and display them to the console as per my code below. Because of when the first blank space is reached the process terminates due to teh eofbit flag. Is there any way around …

Member Avatar for furalise
0
440
Member Avatar for Jade87

Hello, I've created a script that parses and downloads images from a website however now what I want to do is create a script that matches the files I've downloaded against common image file type signatures and then tells me how many of the files aren't those types. I'm still …

Member Avatar for Jade87
0
375
Member Avatar for mrhankey

hi, i need a way to allow my users to replace placeholders with data from my recordset in mysql. situation is: 1. the create a letter and have keywords defined from my recordset columns such as {Name}, {DOB}, {Email} and so on. 2. currently i can generate the ltter but …

Member Avatar for mrhankey
0
188
Member Avatar for Start4me

I have the folowing code, but there is a compiling error of: MathProblemRevised.java:25: error: cannot find symbol if (inputCharacter.equals("Y")) { ^ symbol: variable inputCharacter location: class MathProblemRevised 1 error With the code: import static java.lang.System.*; import java.util.Scanner; class MathProblemRevised { public static void main(String args[]) { Scanner keybardInput = new …

Member Avatar for Start4me
0
289
Member Avatar for danishbacker

can any one tell me how to change the maximum file upload size? upload_max_filesize i got `ini_set('max_upload_filesize', 8388608);` for setting it to 8M but i need to know where to change it, I mean where is the php.ini file is located in my remote folder! i also tried to edit …

Member Avatar for sftranna
0
180
Member Avatar for griselndria

Hello everybody. I need some help because i am new on php, I have this code below and i want smth to know: When a user create new account member on the code below,i want that this row of accont member will be added on database. give me sm help. …

Member Avatar for griselndria
0
166
Member Avatar for tukky

Hi guys, Im currently working on a java project but ive come across a small minor problem. I have 4 main classes that im working with. TextReader, WordCount, WordCollecter and DisplayWords. The **TextReader** class reads an input file and a method called *readNextWord* will return the next word from the …

Member Avatar for tukky
0
592
Member Avatar for ashu.dasgupta
Member Avatar for Warren_1

#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> // free- A lot of extra marks //Avoid global variables. struct packet { //struct for the packets int source; int destination; int type; int port; char data[49];//starts at 0 }; int add(); //to add a packet void view(); // view a created …

Member Avatar for deceptikon
0
384
Member Avatar for patk570

Hello everyone, I am looking for a banner/slider for both images and text. I want to be able to display 3 articles that are attached to the blog I am making and have them rotate, Here is an image of where the content will go. ![47dd24c076f663f88f6d78c35f640cc9](/attachments/small/3/47dd24c076f663f88f6d78c35f640cc9.PNG "align-left") I would like …

Member Avatar for patk570
0
394
Member Avatar for CodingCabbage

How would I be able to have a button that's command is to return it's text in the button to a variable

Member Avatar for vegaseat
0
996
Member Avatar for geremyh

I have a webpage using two drop down menus to select the inside color and the outside color of my product. link to site [Click Here](http://bit.ly/1blbbcU) When the inside color is chosen the correct image is displayed but when I choose from the outside color drop down the other image …

Member Avatar for diafol
0
150
Member Avatar for pjrey

i am very, very very new to all of this.. seem to have got what i wanted for the most part.. i am putting a little weather widget on our business website... and have everthing working fine except sunset, sunrise... i think because it has subcatagories.. how do i pull …

Member Avatar for pjrey
0
316

The End.