199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for egolovin

so i have spent 3 hours trying to figure out how exponents work in C++ but now. my if statement isnt working. even if i punch in a 0 it spits out 1 thanks in advance [CODE]#include<iostream> #include<string> #include<cmath> using namespace std; void binToDec(string getBinary); void main() { string getBinary; …

Member Avatar for grumpier
0
172
Member Avatar for defychaos

Hi :) I'm doing a programming project with development of an algorithm for a quadratic recursive sequence: (3, 3, 7, 11, 19, 20, 32), but I can't figure out which expression to use. I know it's probably got something to do with the differences of n-1 and n-2 being added …

Member Avatar for stultuske
0
91
Member Avatar for kapil.tandon

hi , can anybody tell me which is the best way to generate the html reports in the C# and then after genrating whcih tool is considered to be the best to diplay the reports data.like we cab display in label ,literal or which is the best way?

Member Avatar for kapil.tandon
0
119
Member Avatar for chan95

hi everybody i have a problem of using iText for printing an existing pdf files. while reading the API of iText i came across methods where the Document object can be used and pdfWriter and writing pdf files etc. but i couldnt figure out how to print a given pdf …

Member Avatar for peter_budo
0
2K
Member Avatar for PhoenixInsilico

The following program should take 4 numbers but it takes 5 numbers and prints first 4 number entered. How to correct the problem??? [ICODE]#include<stdio.h> #include<conio.h> void main() { int a1,a2,a3,a4; printf("Enter 4 numbers \n"); scanf_s("%d %d %d %d ", &a1,&a2, &a3, &a4); printf("The 4 numbers entered are %d %d %d …

Member Avatar for PhoenixInsilico
0
80
Member Avatar for neeljpatel

Hi, I am trying to develop an app which needs to be in one form and the user will have to go through several steps to complete a task (similar to a wizard setup). Is there a simple way to do this? I can only think of using panels that …

Member Avatar for LizR
0
55
Member Avatar for Traicey

Guys I need a way to create a dropdown menu in ASP web form and VB.Net 2003 any help would be highly appreciated

Member Avatar for serkan sendur
0
84
Member Avatar for sganandhsg

Hi Friends, i`ll use font end VB6.0 back end Ms Access And using Crystal Report 8.5 i ll attached database to report and result also fine, but suppose change my application path(Folder) to another path(Folder) reports can`t displayed. so i need how to apply for database application path in to …

Member Avatar for hell_tej
0
481
Member Avatar for rrreeefff

#include "stdafx.h" #include "stdio.h" [code=cplus] void swap (int a, int b); int main (void) { int a,b; printf("enter 2 positive integers"); scanf("%d",&a,&b); swap (a,b); printf("d%d,a,b\n"); } void swap (int a, int b) { int swap (a,b); } [/code] I have one error (20) : error C2078: too many initializers

Member Avatar for Denniz
0
85
Member Avatar for PhoenixInsilico

The following program should take 4 numbers but it takes 5 numbers and prints first 4 number entered. How to correct the problem??? [ICODE]#include<stdio.h> #include<conio.h> void main() { int a1,a2,a3,a4; printf("Enter 4 numbers \n"); scanf_s("%d %d %d %d ", &a1,&a2, &a3, &a4); printf("The 4 numbers entered are %d %d %d …

Member Avatar for ahamed101
0
76
Member Avatar for Kainan54

I'm new to C++ and I wondering what is the best program to use to type code into? I use vista so if a c++ program requires some extra work to make it work can you tell how to make work as well? Thanks for reading!

Member Avatar for Kainan54
0
128
Member Avatar for mooresh

I have to write the following program and have no idea where to start. This is a binary file/image [COLOR=navy][COLOR=navy]1) [/COLOR][/COLOR][COLOR=navy][COLOR=navy]Open an old file [/COLOR][/COLOR] [COLOR=navy][COLOR=navy]2) [/COLOR][/COLOR][COLOR=navy][COLOR=navy]Read until byte 56 [/COLOR][/COLOR] [COLOR=navy][COLOR=navy]3) [/COLOR][/COLOR][COLOR=navy][COLOR=navy]Read the next 8 bytes to obtain the entire 9 digit cart frame[/COLOR][/COLOR] [COLOR=navy][COLOR=navy]4) [/COLOR][/COLOR][COLOR=navy][COLOR=navy]Keep reading byes until …

Member Avatar for sendoshin
0
2K
Member Avatar for cali_dotcom

hi, i just wrote a program for my website with a search function. everything works fine but i have a problem with the links to the other result pages. this is the code [code=text] <?php $errors = array(); if ($_POST) { $mysql = mysql_connect("localhost", "root", "") or die("couldn't connect to …

Member Avatar for cali_dotcom
0
95
Member Avatar for pat7047

Hey everyone, I typically don't like to go on forums and throw my code at people and expect answers... but, I'm a beginner (and a little desperate) with all this so a little help would be much appreciated. Here's the details: [LIST] [*]The purpose of the program is to have …

Member Avatar for ArkM
0
113
Member Avatar for krauz2

How can I have a switch command send to a ftp site? Here is what I have. Instead of $to_email is there one for URL? Thanks everyone. Erich switch($attn1) { case 'employees': $to_email = "ftp://myftpsite@rgl-e.com"; break;

Member Avatar for peter_budo
0
75
Member Avatar for gangsta1903

I want to do somthing like this. [code=C++] ifstream My_File::GetFile_Stream() const { return(this->Input_Stream); } [/code] where Input_Stream is a private member of the class My_File and is declared as follows: ifstream Input_Stream; When I compile I get the following errors: /usr/include/c++/3.3.1/bits/ios_base.h: In copy constructor ` std::basic_ios<char, std::char_traits<char> >::basic_ios(const std::basic_ios<char, std::char_traits<char> …

Member Avatar for gangsta1903
0
2K
Member Avatar for mathrules

I am a new user and I am looking for some help with one of my problem. I have to write a program that reads in from a file through structs and store the information in a single struct and write the code to display a single class. This needs …

Member Avatar for mathrules
0
129
Member Avatar for dr_hamburger

hello everyone, im having a little bit of trouble with my python and i was wondering if someone could please give me a hand with it :) basically, what i am trying to achieve is exactly what is going on in this thread [url]http://ubuntuforums.org/archive/index.php/t-803060.html[/url] except in my example, the dict …

Member Avatar for lllllIllIlllI
0
140
Member Avatar for Andymoore88

Howdy folks, me again. :) I'm attempting to append to a previously pickled file using cPickle.dump(). But I keep getting the error: Traceback (most recent call last): File "C:\Python25\Python\UserAccess.py", line 24, in <module> p.dump(tempadd, temp) TypeError: argument must have 'write' attribute I've opened the file using the 'a+' attribute, which …

Member Avatar for Andymoore88
0
798
Member Avatar for rugs267

I'm very very new to C so I'm having some trouble with this (and pointers): I'm trying to pass four parameters into a function: birthdayFunction(char birthday, int month, int day, int year); The birthday is the string input from the user (with "/" separating each field, ex. 7/23/76) and I …

Member Avatar for rugs267
0
110
Member Avatar for Coward

hello i have problem with radio in this code [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <link href="style.css" rel="stylesheet" /> <script> function add() { var radio=document.getElementsByName("t"); var d=document.getElementById("div"); if(radio[0].checked==true) { d.innerHTML+="<p><input type='text' id='txtfname'><br />"; d.innerHTML+="<p><input type='text' id='txttxtlname'><br />"; …

Member Avatar for Coward
0
73
Member Avatar for krauz2

How can I have a switch command send to a ftp site? I am trying this out in php. Here is what I have. Instead of $to_email is there one for URL? Thanks everyone. Erich switch($attn1) { case 'employees': $to_email = "ftp://myftpsite@rgl-e.com"; break;

Member Avatar for krauz2
0
86
Member Avatar for anny**

hi to everyone !!! anny here ,. i want to make a program using c which can calculate following functions :: [COLOR="red"][B][I]sin,cos,tan,+,-,*,/,iverse,log,ln,exp,sqrt,raise to power 100,10,2[/I][/B][/COLOR] plz plz if anyone can help me by giving me some idea about it and which is somthing of beginners level !! thanxx alot !

Member Avatar for ahamed101
0
178
Member Avatar for Falkoner1

Okay, I am trying to combine the notepad feature from this page: [URL="http://falkoner.cow.googlepages.com/Notepad.html"]NotePad[/URL] With this page: [URL="http://falkoner.cow.googlepages.com/Buildings_to_Crash.html"]http://falkoner.cow.googlepages.com/Buildings_to_Crash.html[/URL] Rather than copying and pasting the internal code from the first page into the second one, I want to put it into my external javascript page, here: [URL="http://falkoner.cow.googlepages.com/FalksMainJavascript.js"]http://falkoner.cow.googlepages.com/FalksMainJavascript.js[/URL] So far I have not …

Member Avatar for Falkoner1
0
160
Member Avatar for slow14

I'm trying to add a username, password, firstname and lastname on a text file. Everytime I run the program, it only accepts one username, password, etc. Can anyone please help? here's my code. [code=csharp] #include <stdio.h> #include <string.h> #include <stdlib.h> typedef struct { char UName[50]; char PWord[50]; char FName[50]; char …

Member Avatar for ahamed101
0
157
Member Avatar for dmanw100

I was wondering if there is an easy library that allows reading in a .bmp, mask it, then display it. I believe I could read it in with [URL="http://www.adp-gmbh.ch/win/programming/graphic/bitmap.html"]this[/URL] but I cannot do anything else with it. Your help is appreciated! Any suggestions?

0
103
Member Avatar for Andymoore88

Okay, I'm doing some experimenting on file I/O using a user/password access program I'm writing. My problem right now is while the program will append the new user and password, it does so whether or not that user name exists already. I'm not worried about duplicate passwords, but I don't …

Member Avatar for Andymoore88
0
157
Member Avatar for dhingra

[code=c] void main() { int i,j; /*input values of i and j*/ while(i*j<0&&++i!=7&&j++!=9) { do something; } [/code]

Member Avatar for ahamed101
0
111
Member Avatar for dk71in

Hello Friends, I am a student. I have to complete a project and would like to learn few things from all you experts on ms access. I have to make a personal contact directory with id, date, name, address, phone, email and photo. To feed data, I have to make …

Member Avatar for timothybard
0
135
Member Avatar for mbayabo

I'm having trouble initializing Objects while they're inside if else statements. I'm using Visual C++ 2008. for instance: [CODE] class Account { Account(); Account(int = idnum, double creditLimit = 500.00); Account(double initBal, int idnum, double creditLimit = 100.00); public: somefunction(); }; if (a > 0 && b > 0) { …

Member Avatar for chunalt787
0
140
Member Avatar for afromong

I am a noob therefore this question is hopefully very easy for someone to answer! in my code i have asked a question if the answer is yes i want the program to continue onto the next question (this is fine) if however the answer no or enter an incorrect …

Member Avatar for chunalt787
0
110
Member Avatar for chern4ever

can someone help check my code? i m trying to create multi dimension array with classes. it will not compile and i do not get the error message. thanks alot. [CODE=cplusplus]#include <iostream> using namespace std; const int MAX = 5, MAX2 = 3; class notebook { int num; public : …

Member Avatar for chern4ever
0
115
Member Avatar for yu83thang

Hi, May I know how to declare a Class in C++ window application form? Below is my code and error as shown below as well. here is my class declaration: [code=cplusplus] public ref class CLoadObj { public: bool ImportObj(t3DModel *pModel, char *strFileName); System::Void ReadObjFile(t3DModel *pModel); System::Void ReadVertexInfo(System::Void); System::Void ReadFaceInfo(System::Void); System::Void …

Member Avatar for yu83thang
0
246
Member Avatar for seogoat

I want to learn how to use stack and ques in c++, but I don't know how to start. Where should I look on the internet? Or does anyone have any ideas?

Member Avatar for dmanw100
0
105
Member Avatar for vo2corp

Im new on this thing of computers but im really intresting on learning how to creat and understand computers softwares, hardwares and everything about PC. I will like to know if some one can help me on making a keylogger based on Visual Basic Thank you!! for your time and …

Member Avatar for scru
0
80
Member Avatar for AKJo

I'm embarrassed. I suddenly realized that not in any of my programs scrollbars show when they should, despite visible is set to True. I am not able to fix it! Can someone please tell the secret?

Member Avatar for AKJo
0
178
Member Avatar for cathyf

I've been using visual studio 6 for a couple of years now, and every programer that I have asked this has said, "geez I dunno how to do that." Basically, my problem is that I can't figure out how to get the debugger to show me the contents of c++ …

Member Avatar for cathyf
0
209
Member Avatar for FtKShadow

Alright I know you dont help on homework, but I have don't so much I just need a little guidance on the ending. I just need to make my number guessing game ask the user if they would like to play again and keep there bank. The assignment: [url]http://www.glennstevenson.com/c++online/syllabus/midtermfall2008/midterm.html[/url] Heres …

Member Avatar for Sky Diploma
0
136
Member Avatar for Batool.Ahmed

This is my code [ICODE]import java.lang.Math; import java.io.*; public class TestDfunction { static void fun(float num1, float num2) throws IOException { BufferedReader read = new BufferedReader( new InputStreamReader(System.in)); String strNum1, strNum2; System.out.print("Enter the first number: "); strNum1 = read.readLine(); num1 = Float.parseFloat(strNum1); System.out.print("Enter the second number: "); strNum2 = read.readLine(); …

Member Avatar for Batool.Ahmed
0
100
Member Avatar for codered152

hi all i have a java collection question. i m using java list collection in my program and i m very confused how to iterate over the list what i have i like List<object> obj = ArrayList<object>(); now how can i iterate over this if somebody can explain me that …

Member Avatar for Ezzaral
0
115
Member Avatar for avillachandok

firstly hi all, i''d like to intrroduce myself. Im a new C++ programmer..hardly..but trying..so yes its frustrating with the error and syntax mainly. Anywayz, this is a card game with 2 classes and simple functions but im having a problem compiling it. I compile it on visual studio so i …

Member Avatar for avillachandok
0
132
Member Avatar for Jaima

The code I have written in Servlet is as follows: [code=Java]ArrayList news=admindelegate.getNewsdelegate();//this is defined already request.setAttribute("news",news); rd = request.getRequestDispatcher("ViewNews2.jsp"); rd.forward(request,response);[/code] and my JSP code is: [code=JSP]ArrayList newslist=null; ArrayList newslist=(ArrayList)request.getAttribute("news"); int newscount= newslist.size(); System.out.println("newscount:"+newscount); if(!newslist.isEmpty()) { for(int i=0;i<newscount;i++) { %> <tr> <Td><%=newslist.get(0)%></Td> <Td><%=newslist.get(1)%></Td> </tr> <% } } %>[/code] But this table …

Member Avatar for peter_budo
0
161
Member Avatar for patricksquare

I will type first the problem "Let the user Enter a Sentence. then determine the longest word(s) in that sentence " ex.#1 Input (Who is john galt ? ) output (john galt ) ex.#2 Input (Lets get jiggy with it) Output (jiggy) I already made a process for getting the …

Member Avatar for peter_budo
0
2K
Member Avatar for killdude69

Hi, I know how to subclass a RichEdit, and the messages I handle in my procedure work, but I want to know how to call the default procedure that would proccess a non-subclassed RichEdit Control. My problem is that when I subclass it, I want the default Procedure to take …

Member Avatar for Ancient Dragon
0
249
Member Avatar for Gonzo10

Hello everyone, I am trying to put a value into $value['count']; after the value is clicked the count stays at one or it resets itself any help will be awesome Thank you. [code=php] <table width="61%" border="1" align="center" cellpadding="4"> <?php $count = 1; if (isset($_GET['value'])) { $count++; $value[$count] = $_GET['value']; print …

Member Avatar for Gonzo10
0
103
Member Avatar for egolovin

can someone look at this? in theory it should work but i cant figure it out thanks in advance [CODE]#include<iostream> #include<string> #include<cmath> using namespace std; void binToDec(string getBinary); int main() { string getBinary; cout<<"Enter a Binary Number:"<<endl; cin>>getBinary; binToDec(getBinary); return 0; } void binToDec(string getBinary) { int setLength,total=0; double placeholder=0; …

Member Avatar for egolovin
0
335
Member Avatar for dexter1984

[url]http://i126.photobucket.com/albums/p98/justln/untitled3.jpg[/url] Which codes do I use so that the answer is not out of place? I tried using \t and setw but it doesn't work :(

Member Avatar for dexter1984
0
155
Member Avatar for sneha sirohi

hi everyone, thanks for a nice and quick response.i have one ques regarding inputBox.This func can be used to accept the input msg from user if we want to write more than one msg in a single inputBox like 1.user name 2.password then what we will have to do?a single …

Member Avatar for jan_grace85
0
96
Member Avatar for websniper77

I am new in Java and need help :} currently working on a new project using netbeans, I have trouble to import commons-io-1.3.2 jar because i really need to use SuffixFileFilter class which is in commons-io-1.3.2 jar.Actually I have the jar but don't know how to import it into my …

Member Avatar for puneetkay
0
114
Member Avatar for bugmenot

Hi everyone, I'm trying to write a stored procedure select statement which is a little beyond my experience level. I have a table in the DB called addresses which contains the following fields: [LIST] [*]address, VARCHAR [*]count, INT [*](a few more fields) [/LIST] My stored procedure will take in a …

Member Avatar for huangzhi
0
104

The End.