199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Labdabeta

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)

Member Avatar for mrnutty
0
301
Member Avatar for creative_m

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 …

Member Avatar for creative_m
0
122
Member Avatar for sangkun

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 …

Member Avatar for vijayan121
0
1K
Member Avatar for stereomatching

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

Member Avatar for stereomatching
0
287
Member Avatar for dc013

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 …

Member Avatar for epicrevolt
0
407
Member Avatar for jacob501

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 …

Member Avatar for jacob501
0
1K
Member Avatar for jeevsmyd

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 …

Member Avatar for WaltP
0
178
Member Avatar for pro_learner

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 …

Member Avatar for pro_learner
0
1K
Member Avatar for jefgreen

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

Member Avatar for jefgreen
0
199
Member Avatar for Dman01

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 : " …

Member Avatar for Dman01
0
685
Member Avatar for cip6791

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

Member Avatar for Stefano Mtangoo
0
150
Member Avatar for chinee

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 …

Member Avatar for zeroliken
0
344
Member Avatar for gikonyo

hi everyone, i have some files in the cpanel that i want to edit. how do i unhide this files?

Member Avatar for epicrevolt
0
133
Member Avatar for TLCJohn

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 …

Member Avatar for epicrevolt
0
325
Member Avatar for galhajaj

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 …

Member Avatar for thines01
0
199
Member Avatar for dancks

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 …

Member Avatar for dancks
0
374
Member Avatar for ishaan3731

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

Member Avatar for pseudorandom21
0
2K
Member Avatar for welkam

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 …

Member Avatar for welkam
0
137
Member Avatar for abvd

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 …

Member Avatar for abvd
0
985
Member Avatar for rizal189

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 …

Member Avatar for v3ga
0
91
Member Avatar for hszforu

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 …

Member Avatar for hszforu
0
164
Member Avatar for eskimo456

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 …

Member Avatar for eskimo456
0
186
Member Avatar for LdaXy

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 …

Member Avatar for Moschops
0
115
Member Avatar for PreyaticIntent

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 …

Member Avatar for Ancient Dragon
0
177
Member Avatar for DavidKroukamp

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 …

Member Avatar for stultuske
0
118
Member Avatar for Joey_Brown

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 …

Member Avatar for JamesCherrill
0
111
Member Avatar for 03hasnam

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

Member Avatar for stultuske
0
292
Member Avatar for rotten69

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 …

Member Avatar for bibiki
0
215
Member Avatar for caba992

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

Member Avatar for Moschops
0
257
Member Avatar for Awais Ali

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 ....

Member Avatar for PrimePackster
0
179
Member Avatar for alanbrazil

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 …

Member Avatar for alanbrazil
0
121
Member Avatar for Nemo_NIIT

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 …

Member Avatar for esmaeel2001
0
452
Member Avatar for Kathyrine

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 …

Member Avatar for Kathyrine
0
5K
Member Avatar for nav07
Member Avatar for gourav1

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

Member Avatar for zeroliken
0
163
Member Avatar for Mona Ali

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

Member Avatar for thines01
0
225
Member Avatar for AnkurThakur

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 …

Member Avatar for AnkurThakur
0
273
Member Avatar for kikic

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

Member Avatar for kikic
0
5K
Member Avatar for kamilacbe

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

Member Avatar for thines01
0
142
Member Avatar for BoBok2002

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

0
144
Member Avatar for cahitburak

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 …

Member Avatar for cahitburak
0
181
Member Avatar for kedzi0591

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 …

Member Avatar for indore8
0
176
Member Avatar for ayub05

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.

Member Avatar for ayub05
0
222
Member Avatar for rahulroshan

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 …

Member Avatar for rotten69
0
155
Member Avatar for swissknife007

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?

Member Avatar for rotten69
0
415
Member Avatar for lynxul

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 …

Member Avatar for humnah
0
169
Member Avatar for adnysam

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 …

Member Avatar for adnysam
0
138
Member Avatar for C0deM0nkey

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 …

Member Avatar for C0deM0nkey
0
245
Member Avatar for smiley4080

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 …

Member Avatar for smiley4080
0
404
Member Avatar for qwertpink

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 …

Member Avatar for simplypixie
0
232

The End.