64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Nollyvenon

Please can i get a help on joining these 3 queries SELECT customer.id,customer.custid,customer.compname, customer.balance AS balance,customer.phone,acctofficer.acctfullname AS acctoff, STR_TO_DATE(mastorders.lastpaydate,'%d-%m-%Y') AS debtage,customer.depot, STR_TO_DATE(mastorders.lastsuppdate,'%d-%m-%Y') AS purchdate FROM customer,mastorders,acctofficer WHERE customer.custid=mastorders.custid and acctofficer.acctoffid=customer.acctoff GROUP by customer.id ASC SELECT customer.id,customer.custid,customer.compname, customer.balance AS balance,customer.phone,acctofficer.acctfullname AS acctoff, customer.depot FROM customer,acctofficer WHERE acctofficer.acctoffid=customer.acctoff GROUP by customer.id ASC …

Member Avatar for Nollyvenon
0
450
Member Avatar for rose88

1. A company wants to transmit data over the telephone. All of the data are transmitted as four-digit integers. The company has asked you to write a program that encrypts the data so that it can be transmitted more securely. Your program should read a four-digit integer and encrypt it …

Member Avatar for jwenting
0
234
Member Avatar for ravi_14

i was reading a book and came across this line "C++ matches a pointer of any other type with type void * and prints a numeric representation of the address. If you want the address of the string, you have to type cast it to another type," please any one …

Member Avatar for Ancient Dragon
0
188
Member Avatar for raul8711

Hi Guys, I'm looking to build an extremely simple script that would allow someone that I know to share files in a simple manner. This script should do the following: - Make a list of all the files in a specific folder. - Make downloadable links to these files (<a …

Member Avatar for diafol
0
231
Member Avatar for kumar.rupesh

Hi Friends, Please share your's experience about best supporting programming language for BigData & Hadoop. I'm also doing some research about this topic plz contribute your idea & experience for this topic. Regards, Rupesh

Member Avatar for kumar.rupesh
1
232
Member Avatar for theashman88

`Console.WriteLine("Students {0}", variable)` This i understand but what does it mean when you put two numbers within the bracket example: `Console.WriteLine("Students {0,2}: {1,3}", student + 1, grades [student])` What do the 2 and 3 represent. I know the 0 and 1 correspond to variables, but I'm not clear on the …

Member Avatar for ddanbe
0
195
Member Avatar for trantran

I am writing a class that uses different policies stored in classes I want to declare this class by simply selecting the policies by writing `my_great_class<policy45, policy22, policy12>` (There can be a varying number of policies) which would translate automatically into: struct empty_class{}; struct policy12: empty_class{ // code... }; struct …

Member Avatar for trantran
0
631
Member Avatar for ivan3510

Hi! This is just an example code: #include<iostream> using namespace std; int& example() { int a=5; return &a; } int main() { cout << example(); } But I'm getting this error: Error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int\*'

Member Avatar for ivan3510
0
205
Member Avatar for ashley.vanhoesen.7

I am writing a program to input data from a file, format it and then output to another file. For some reason when i make the file I get this error: ----jGRASP exec: make g++ -ggdb -c Billionaire.cpp iostream:39:0, from Billionaire.cpp:7: c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\ostream: In constructor 'Billionaire::Billionaire()': ostream:384:7: error: 'std::basic_ostream<_CharT, _Traits>::basic_ostream() [with …

Member Avatar for ashley.vanhoesen.7
0
4K
Member Avatar for Diego_4

Do you know if I can change of line in a list of lists? tareas = [] > otraTarea = [tarea,year,month,day, hour, minute, second, microsecond,str(cuando),cuando] `+'\n'+ []`(this is what i have tried) #I have tried to concatenate two lists, but the program returns a message, in which it's explained that …

Member Avatar for TrustyTony
0
322
Member Avatar for smitsky

Hi. Can someone explain why this isn't working? #include <iostream> #include <list> #include <string> #include <iomanip> using namespace std; /** * Global Variables */ int printer; int disk; int cd; int num; int pmem, plen; int dmem, dlen; int cmem, clen; class PCB { public: PCB() : pid( 0 ), …

Member Avatar for smitsky
0
141
Member Avatar for k99rs

I have PHP scripts inside my HTMl file. I am using Apache. I created a .htaccess file and place it in my root directory of the application with the following as its contents AddType application/x-httpd-php .php .html .htm I want to allow the server to execute the PHP scripts inside …

Member Avatar for nturup
0
311
Member Avatar for smitsky

Hi. I'm trying to access some data in a List using an Iterator, but I'm getting an error message: #include <iostream> #include <list> #include <string> #include <iomanip> using namespace std; /** * Global Variables */ int printer; int disk; int cd; int num; string k; int pmem, plen; int dmem, …

Member Avatar for smitsky
0
220
Member Avatar for ImaComputerLuvr

I have an html form to get a number from the user for a calculation. The first number is given. The second is entered by the user. The result is posted to the same page. BUT the resulting answer is now the first number and again the second number is …

Member Avatar for ImaComputerLuvr
0
139
Member Avatar for dawbin

I'm an experienced ASP/MSSQL programmer trying to make the move to PHP/MYSQL and I've been able to wrangle my way up to now. I have a simple SQL query that works great in mymcadmin but gets lost in PHP. I've simplified it a bit here but this is the actual …

Member Avatar for iamthwee
0
261
Member Avatar for burt.munn

I'm very new to PHP or any type of web programming for that matter. I need the to put the following script into two columns or possibly a table with two columns. I need Fahrenheit as the heading for one column and celsius as heading for the other? It took …

Member Avatar for burt.munn
0
237
Member Avatar for davy_yg

Hallo, I get stuck when installing SQL Server 2012 : Services Account Name Password SQL Server Agent SQL Server Database Enginee SQL Server Analysis Services SQL Server Browser This Sharepoint Server connected to DCSHARE1 (Domain Controller) The problem is I do not know what to fill for Account Name & …

Member Avatar for davy_yg
0
245
Member Avatar for gu mi nam

this code was error.please help me fix it include <iostream> include <conio.h> include <algorithm> using namespace std; int a[]={1,5,7,4,9,8}; BST*binary_search_tree; struct BST{ int value; BST* left; BST* right; }; int search_bst(BST* node,int key){ if(node==NULL) return -1; if(key<node->value) return search_bst(node->left,key); if(key>node->value) return search_bst(node->right,key); else return node->value; } void insert_bst(BST* &treeNode,BST* newNode){ …

Member Avatar for gu mi nam
0
399
Member Avatar for smitsky

Hi. Can someone tell me why the following code is giving me an error message? Thank you. #include <iostream> #include <list> #include <string> #include <iomanip> using namespace std; /** * Global Variables */ int printer; int disk; int cd; int num; string k; int pmem, plen; int dmem, dlen; int …

Member Avatar for smitsky
0
423
Member Avatar for catastrophe2

Hello I have to do a sorted list code according to some instructions. a friend and I worked on this, and we pretty much ended up with the same code, his worked, but mine isnt, even though its exactly same! I have been trying for hours figuring how to make …

Member Avatar for catastrophe2
0
1K
Member Avatar for waseem1345

I have a textbox called ssd. I want it to compile the C# code in it to "Prgoram.exe" at the same location. I tried this: CSharpCodeProvider codeProvider = new CSharpCodeProvider(); ICodeCompiler icc = codeProvider.CreateCompiler(); System.CodeDom.Compiler.CompilerParameters parameters = new CompilerParameters(); parameters.GenerateExecutable = true; parameters.CompilerOptions = "/target:winexe"; parameters.OutputAssembly = "Program.exe"; parameters.GenerateInMemory = …

Member Avatar for waseem1345
0
234
Member Avatar for nabilmahesaniya

Hey friends, i have just started with my java classes but im finding it quick tricky so is there any books availabe for dummies

Member Avatar for raj.mscking
0
157
Member Avatar for Satyam_1

I a form with textbox as age. A database with 2 tables as- Accessonbook and Report. So when enter into value in Age textbox it should copy in age column in both tables. Please tell me the code.

Member Avatar for oussama_1
0
286
Member Avatar for Mohammed_9

I am having problem getting the final result here, it keeps on looping. #include<stdio.h> #include<string.h> #include<conio.h> #include<math.h> #include<stdlib.h> #include<ctype.h> int main() { int i, t, k, max, min, sumof; printf("Enter number of integer elements in array: "); scanf("%d",&t); int a[t]; printf("Enter list of array: \n"); for ( i = 0; …

Member Avatar for Mohammed_9
0
180
Member Avatar for foshan

I got this code from the internet. import random #create a sequence of words to choose from name = ("stephen","bob", "robert","craig") # pick one word randomly from the sequence word = random.choice(name) #create a variabe to use later to see if the guess is correct correct = word # create …

Member Avatar for foshan
0
199
Member Avatar for davy_yg

Hello, I am trying to update phone number in the maps: http://www.indonusa.net.id/IndonusaCMS/contactus.php Yet, I still do not find a way to do so. I have updated all the phone number in the maps just like in the text next to your message. Yet, even after I refresh it the phone …

Member Avatar for davy_yg
0
97
Member Avatar for Maideen

Hi I am new in php. Below code works fine. But If I change Select Command Like this: $sql = "SELECT login_id,password FROM user_right WHERE login_id = '$username' and password = '$password'"; It shows error recorde not found. Also I need to show the role of select user. Pls Help …

Member Avatar for Maideen
0
371
Member Avatar for nitish.mohiputlall

here are my codes: #ifndef STUDENT_H #define STUDENT_H class student { public: void enterDetails(); void enterModule(); void displayDetails(); private: char name[100]; char studID[100]; char address[100]; char module[100]; }; #endif i want to add a 2d array "M[row][col]" in my class but i don't know how to do it anyone help?

Member Avatar for Edward_3
0
181
Member Avatar for happycodingdude

Hello there, I am currently working on a indepedendent project and I am realtively new to Python. Please note that this question revolves around Python version 3. But if you have a answer in Python 2 just write it down and tell me it is in Python 2 thanks. What …

Member Avatar for iamthwee
0
318
Member Avatar for mc3330418

I have a secret word. People need to guess the secret word by entering single letters. When they start it will have **** for the word. When they guess a letter, an asterick shoud be replaced with the correctly guessed letter. I cant get the charachter to replace in the …

Member Avatar for iamthwee
0
2K
Member Avatar for HelpMEPLZ!!!

Hi everyone My code is still a bit messy as I;m pressed for time. I have to write a simple game you play against the computer. I have my StartGUI class which instantiates the GUI and then I have a Game of Life class, which does not have a JFrame, …

Member Avatar for HelpMEPLZ!!!
0
318
Member Avatar for sana.f.qureshi_1

hey there nice people, i am making a hospital management system online (using asp.net, C#, sqlserver), now here is the main thing, i want to make website's own video chat (between patient and doc). i am wondering if it's possible with asp.net (i'll be using visual studio). If it's possible, …

Member Avatar for sana.f.qureshi_1
0
682
Member Avatar for JavaPadawan

I'm working on what I thought was a straightforward program to accept user inputs and store them in an ArrayList. I created a separate class containing an object and a constructor (first name, last name, and an integer). In the main method, I prompt the user for input within a …

Member Avatar for arnab.batabyal.54
0
22K
Member Avatar for soujanya.bhat.184

Hi All, I am learning Multithreading in Java and came across this code using SwingWorker for GUI multithreading. Here is the modified code done by me. import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.List; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.SwingWorker; public class MainFrame extends JFrame { …

Member Avatar for mKorbel
0
363
Member Avatar for Jjaus

I need the code for this Pseudocode AccountBalance Begin Get starting balance Get withdrawal amount If withdrawal amount > starting balance Then Display “Insufficient funds” Else final balance – starting balance – withdrawal amount Display “saving account balance is low End If End

Member Avatar for Jjaus
0
215
Member Avatar for Iikeloa

Hi I'm working on this project and Ifaced this little problem,which is that I have two tables and I need them to be side by side but the problem is that I get every table in a separate line ! <center> <table border="1" width="40%"> <tr> <td> <center><h5>order</h5></center> </td> <?php $sql_order …

Member Avatar for Iikeloa
0
189
Member Avatar for Ajay_9

I am label which display the current time ( label8.Text = DateTime.Now.ToString("HH:mm:ss"); ) but here i want on a button click the timer would alert on two minute (i.e time out)..

Member Avatar for oussama_1
0
343
Member Avatar for brittney_2

So, I am trying to test my if else with two Character.toUpperCase answers and I keep getting this error: 1 error found Error: bad operand types for binary operator '^' first type: char second type: boolean I tried && and & and it won't work. If I don't use anything …

Member Avatar for Pobunjenik
0
140
Member Avatar for pwolf

I was following along to the following tutorial - [Derek Banas Java tutorial 18 - Threads pt2](http://www.youtube.com/watch?v=G2Xd5avyk_0) and as I decided to go over his tutorial series by following along in notepad++ and compiling with the command line, so that I can experiment and test things I'm unsure about, I …

Member Avatar for pwolf
0
1K
Member Avatar for MasterHacker110

I have searched everywhere for Borland Delphi 7 but I cant find it anywhere. I used it a while ago when I got it as part of my programmer courses but I lost all the data on my harddrive. I have looked on Borlands main website but I was unable …

Member Avatar for dausmus
0
4K
Member Avatar for mavtcr

Friends , I have a database in sql server named "Deposit" with a table "Receipts" .I want to display the data in a list box.My code is given below Imports System.Data.SqlClient Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim cnn As New SqlConnection("Data Source …

Member Avatar for cgeier
0
185
Member Avatar for Suzie999

Perhaps mt eyes are missing something simple, but I cannot understand what is going on. The following code produces intellisense and compile error "error C2373: 'GetHwnd' : redefinition; different type modifiers" I have many functions in same manner, but this will not play ball. extern "C" HWND __stdcall GetHwnd(wchar_t *); …

0
116
Member Avatar for RoseB

Below code is working fine with small problem. My problem here is, how can i get the BegValue working in a proper order. please it is only the begvalue that is giving me a headache. Please some one help me. !!! Thanks in advance. Public Class Form1 Private Sub Button1_Click(ByVal …

Member Avatar for RoseB
0
336
Member Avatar for davidjennings

The following code is producing this error `Microsoft VBScript compilation error 800a03f6 Expected End ` followed by `/stock/availability-quick/availability2.asp, line 130` I think it is a if else error. I have looked over the code and i don't see the error and would benefit from an expert pair of eyes to …

0
163
Member Avatar for joshl_1995
Member Avatar for joshl_1995
0
177
Member Avatar for kal_crazy

How to save the created txt file to a specified path? For example to C:\\ Drive. When the code creates a file it saves to the workspace folder of the project. Do I have to set the directory to C:\\? I tried using `SetCurrentDirectoryA` function but does not change to …

Member Avatar for kal_crazy
0
2K
Member Avatar for Yozuru

Hello good people I am working on a caeser cipher program for class. However, I ran into a problem with my outputs. Up to a certain point for example: two('y', 'z') Would give a '\x92' output instead of a 'x' output. Currently this is my code so far: def chartonum(ch): …

Member Avatar for Yozuru
0
288
Member Avatar for navi2582

Hi, I am new to wxpython and trying to develop a small GUI interface (shown below). User selects a python script from "Browse run script" and when he/she hits the button "Execute RunScript", the script should execute via aardvark i2c interface. But I am not sure why it's not getting …

Member Avatar for Gribouillis
0
444
Member Avatar for bLuEmEzzy

Good Day, guys, please help me, after validation in javascript,I want the user to go to the next page. I tried window.open ("sinfo.php"); The problem was it opens in another tab. I want the next page (sinfo.php) to be on the current window. Thanx

Member Avatar for bLuEmEzzy
0
103
Member Avatar for Zurompeta

Hi everyone, Got a pesky little issue here with cookies. I have searched numerous forums and numerous posts of how to delete a cookie. So, I am much aware of this doing the trick: [code=php]setcookie('cookie_name');[/code] Basically where not assigning any value to a cookie will delete it. (This is just …

Member Avatar for dave.shaw.37
0
1K

The End.