199,114 Archived Topics
Remove Filter ![]() | |
I am really confused as to the purpose of the unary + operator. What in the world does it do? I have tested it and it doesn't return the absolute value. Does it just return the operand? And if so what purpose is it?! (I mainly care about integer types) | |
Hi I want to store variables in a text file (not as an object).my problem is that the class contains ArrayList of another type ,and I wrote one method to store the member variables of my class in "file.txt" ,but I don't really know how to write the ArrayList variable … | |
Hi, The program I'm trying to make is to transcribe DNA to RNA and separate into codons. So far I was able to transcribe DNA to RNA and store it in string variable. Next part is to separate RNA strand into groups of 3 (codon) and store each group in … | |
I take some codes from [url]http://boost-spirit.com/home/articles/karma-examples/output-generation-from-a-list-of-key-value-pairs-using-spirit-karma/[/url] But it wouldn't compile My compiler : vc++ 2010 os : win7 64bits [code] #include<iostream> #include<string> #include<boost/optional.hpp> #include<boost/spirit/include/karma.hpp> namespace karma = boost::spirit::karma; namespace phoenix = boost::phoenix; int main() { typedef std::back_insert_iterator<std::string> sink_type; karma::rule<sink_type, std::string()> base = karma::string; typedef std::pair<std::string, boost::optional<std::string> > pair_type; karma::rule<sink_type, pair_type()> … | |
Hello, I have purchased this software and I am wanting to upload it to make a website and the software came with instructions on how to install it and I would like to ask if you could explain to me what I need to do. Thank you for helping me … | |
I was going to try and use Mechanize for one of my programs so I just tested a bit of code I found on a website when I was searching for a tutorial on mechanize. [url]http://stockrt.github.com/p/handling-html-forms-with-python-mechanize-and-BeautifulSoup/[/url] I know the site is 2 years old but on all of the other … | |
I want format out in cout , similar to the way printf supports the functionality. I read that iomanip can be used for that purpose. But the problem is at college we have to do in the ancient Turbo C++ and I dont think it has iomanip. I'm making an … | |
Guys,i have developed a Java Application.I have already connected it with MySql DB & it's working properly.In DB there is a table calls Music and in that table contains a field calls Song _Path.It includes the path of the song in my computer.In java application there is a "Play" button.After … | |
For some reason, my program will not let the user enter his/her row number. Here's the code: [CODE]#include <cstdlib> #include <iostream> #include <iomanip> using namespace std; int a=0,A=0,b=1,B=1,c=2,C=2,d=3,D=3,e=4,E=4,f=5,F=5; void ticketchoices(); void displaychartfirst(char firstclass[2][6],int ticketnumselection); void displaychartbus(char busiclass[5][6],int ticketnumselection); void displaycharteco(char ecoclass[6][6],int ticketnumselection); int main(int argc, char *argv[]) { char X; … | |
Hi The following code shows good enough how to multiply two long data [CODE]long x = 10, y = 3; long p = 0; while (y > 0) { if ((y & 01) != 0) p += x; x <<= 1; y >>= 1; } std::cout << "\nResult : " … | |
I would like to check if a user is logged on domain1.com and return a message on domain2. There is a lot more to the code, I only added a basic sample. index.php on [url]http://domain2.com[/url] [CODE]<script type="text/javascript" src="http://domain1.com/test.php?js"></script>[/CODE] test.php is on [url]http://domain1.com[/url]. [CODE] <?php if (isset($_GET['js'])){ header("Content-type:text/javascript"); ?> function doAjax(){ … | |
trying to connect a product class to the main class but i am getting errors i don't understand.like C:\Users\Juanelle\Documents\OOP Final Project\Order Process.java:36: cannot find symbol symbol constructor Product(java.lang.String,double) location: class Product Product product1 = new Product("Roses", 50.00); and in the error message the arrow is pointing at the n in … | |
hi everyone, i have some files in the cpanel that i want to edit. how do i unhide this files? | |
Hi all, I am looking for some help, can anyone point me in the right direction. I am looking for a Events Calendar for a community website I am building in WordPress. I am looking for it to a UK flavour but easy for people to fill in. If anyone … | |
Hello! i wanna to create a game that will use a mdb database file to store things and upload them while the gema will need them the thing is i dont want that the player could touch the file and easily cnange things with access.. there is a way to … | |
I was supposed to write a program that reads and writes phone numbers of people to a file called phones.txt. The reading part works. The write part doesn't. I tried to use the cat command because I thought doing cat >> file.txt would simply append to a file. What it … | |
I actually intend to make a program using c++ which does the three following tasks: 1)lets me input the location and name of a jpg image file... 2)picks up the name of the file and stores it in a string...for eg if file name is myfile.jpg it picks up "myfile" … | |
I am beginner and this is my [B]first project[/B] (happy face). I am trying to make log in systen to learn php and mySQL. At first everything was working so and then i decided to rewrite everything in [B]Object oriented[/B] code and then it is not working. Since it is … | |
Hi all I have an assigment but I'm stuck on the loop. I've checked other threads here but got a lot of complicated code that I haven't study yet (i.e.: "System . out .print" is still Screen . message("a") for me) So I have 6 lotto numbers 1,2,3,4,5 And I … | |
what's wrong with this program, i will sort descending this program [CODE] #include <stdio.h> #include <stdlib.h> FILE *fp; typedef struct buku{ int no; char judul[30]; char pengarang[30]; int jumlah; }dt_buku; dt_buku sementara[50],bantu; int i,j; void tukar(void); void viewData(void); void sortData(void); int main() { viewData(); printf("\n\n"); sortData(); return 0; } void … ![]() | |
HI!! I would like to know some of the alternatives for java swing. I have to create some kind of multithreaded bots for multiple account creations,Scraping etc. using proxies.Although i would like to ask is Java capable of handling this type of bots,because i have read over the internet that … | |
Hi there I am writing a game with some basic AI elements. The enemies know there position and the players position and so are able to rotate and follow the player around etc. The idea is that when an enemy gets within a radius of the player they calculate a … | |
I'm attempting to port a header file for a program that was designed for a Unix environment. i'm'; aware of the type defined variables like s16, u8 and such, but is their anything else i need to know about Unix C? not to familiar with it. thanks. sample portion of … | |
Okay, I'm still a fresh out of college programmer (only been doing it for 4 years), so I will try to be as descriptive as possible. I apologize now for anything that doesn't make sense. I've got a C++ project that using MFC to create forms. I have my main … | |
Why is there so many questions in this forum on really simple gui problems that can easly be solved by using an IDE such as netbeans and creating the gui from there .... I mean thats what is there for why still use the old way? beacuse you like to … | |
Hello; Well, I need to create a program that randomly inserts new different sized spheres into a swing panel and animates them [movement is delimited by the width and height of the frame - when they collide with the frame they bounce to a random direction]. How could I accomplish … | |
WHY DO I GET ERRORS FOR loadTicket MEthod saying incompatiable type, please someone tell me whats wrong and tell me the correction for it? import java.util.Date; import java.lang.*; import java.io.*; import java.util.Calendar; public class Ticket { public TicketInfo x; public int tNumber; public static long entranceTime; public static long paymentTime; … | |
Hey everyone, I'm just wondering what level and type of maths are needed in solving programming problems. I was looking at maths courses the other day but I was unsure which one would suit my need as I'm an IT guy. Can anyone suggest something? I want to be able … | |
hi guys i am newbie in c/c++ staff and friend of mine told me that you can mix c/c++ and i thought it's cool but i want to see how it's work so please help.. if you have any simple example will appreciate ..thanks | |
Hey, I want to Shutdown the computer using Registry in c++.. i have googled and only one thing that i see about [B]ExitWindowEx()[/B].. But i have no idea about to implement in c++ program... So please help me .... | |
hi everyone, I am reletively new to c sharp and have a question regarding a console application I have created. I have a text file which contain 16 records which i want to sort in dob order. I was wandering how i could split the data so when i run … | |
Hi I am using web application. on my login button i have written this code [CODE]protected void btnlogin_Click(object sender, EventArgs e) { //sql connection SqlConnection cnn = new SqlConnection(); cnn.ConnectionString = "Server=HOME-PC;Database=kandivalideal;Trusted_Connection=True;"; cnn.Open(); SqlCommand cmd = new SqlCommand("select mobileno, password from register where mobileno='"+txtmoblie.Text +"'and password='"+txtpassword.Text+"'",cnn); cmd.Connection = cnn; SqlDataReader … | |
I am trying to sort a record according to their respective number like this: [CODE] 5 reyes d r 1 2 3 3 delos d k 4 5 6 9 go t r 7 4 5 1 po w w 2 2 2 2 bun b m 3 3 3 … | |
how trigger an event on specific time of day .net | |
[CODE]class thr2 { public static void main(String args[]) { A a = new A("first","hello1"); A a1= new A("second","hello2"); try{ a.t.join(); a1.t.join(); }catch(Exception e) { } } } class A implements Runnable { Thread t; String str; B b = new B(); A(String name,String str) { t=new Thread(this,name); t.setName(name); this.str=str; t.start(); … | |
[CODE] protected void RefList_SelectedIndexChanged(object sender, EventArgs e) { // Define ADO.NET objects. string selectSQL; selectSQL = "SELECT * FROM Project "; selectSQL += "WHERE Ref#= '"+RefList.SelectedItem.Text +"'"; // Label14.Text = RefList.SelectedItem.Text; SqlConnection con = new SqlConnection(); con.ConnectionString = "Data Source=.;Initial Catalog=Project;User ID=sa;Password=786"; SqlCommand cmd = new SqlCommand(selectSQL, con); SqlDataReader reader; … | |
Hello Guyz, I wish that the Title of the thread explains itself a lot. I would like to Save an image from an HTTP URL which actually redirects to another URL. Actually, I am trying to Save the Profile picture of Facebook. [B]Example : [/B][URL="https://graph.facebook.com/thakurbhai/picture"]https://graph.facebook.com/thakurbhai/picture[/URL] Now when you will open … | |
Hello, I need help for my task.. This is the matrix 1 2 3 4 5 6 7 8 9 the result is 1,4,7,8,9,6,3,2,5 I have to solve this task in assembler 8086 in emu... I need help, it is very important for me. Please help me | |
Hi , Am developing a Windows application in which one module has to send a report to customers a mail.. the Question is I use net.mail namespace in c# and here comes the code . [CODE] try { SmtpClient smtp = new SmtpClient(); MailMessage msg = new MailMessage(); smtp.Credentials = … | |
I am trying to build a binary search tree. The elements in my input file is printing, but with junk. The problem is with the sentinel in the while loop. I'm not sure of what else to try. I've tried: while (infile) while (count != 14 && infile.good()) while (strcmp(Str, … | |
Hi everyone. I created a [B]Windows Forms Application[/B] project which is [I]sending data to parallel port[/I] by using [B]inpout32.dll[/B] and I'm having following problems: [INDENT] When I test it on Windows XP, an error occurs "This isn't a Win32 application". Why? When I test it on my pc, it runs … | |
Hello! I have problem with class, the error is "Applik" : is not a class or namespace name. In mine opinion code is fine, and i cannot find solution, please help me i am beginner. This is mine code **App.h ** #pragma once #include <SDL/SDL.h> #include <windows.h> #include <gl\gl.h> #include … | |
My website's performance has decreased. My website needs 13 secs to download. So [COLOR="Green"]i want to combine js scripts to one script.[/COLOR] But i don't know how to do it. Please tell me very easy ways to combine js scripts to one. | |
Hi I want to auto detect the language and translate it to english, im using it in an interface, I tried google API translate code but it is not translating the value in variable Can any one plz try Eg: I want to translate the sentence in $x to English … | |
I am completely new to PHP. I would like to know which are the good online resources where I can learn PHP. What are the basic things in PHP one needs to know? | |
Hello Everyone! I am due with an assignment that I just can't seem to acomplish. So here's the deal: I get a file with the following structure: TyP_1 TyP_C2 TyP_C3 ORDER Nr_rec rec1_field1 rec1_field2 rec1_field3 rec2_field1 rec2_field2 rec2_field3 Typ_x can be S for string N for numeric or C for … | |
Dear Programmers I have an issue when I place a label box / other component in the MDI Parent form and then open any child form the label box/ other component displayed in child form (Show in SpanShot), could you please help me out to regret this problem, Thanks in … | |
Alright guys, I'm kinda new to python. I've made a kind of an organiser program that allows you to make entries with deadlines, write them to a text file and display them in human readable format when I want it to. I first made it in command line and it … | |
Can anyone help me in this Question . found the entity type and the constraint , limitation, assumption and diagram Represent part of the mlitary command structure of the armies of world. It is desired to represent every command unit and all army personnel, along with their ranks and personal … | |
dear all, [CODE]$member_id = $_POST['member_id']; $delete = 'yes'; $HOST = 'localhost'; $USERNAME = 'root'; $PASSWORD = ''; $DB = 'hrs'; $link = mysqli_connect($HOST, $USERNAME, $PASSWORD, $DB); $query = "UPDATE member SET delete='$delete' WHERE member_id='$member_id'"; echo $query; $result = mysqli_query($link, $query) or die(mysqli_error($link)); [/CODE] Any error in my query? it says … |
The End.