199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for dgg32

Hi, everybody. This is my first day here. And I create a new account because I hope to learn more from you. Here is the my task. I have a text file, it contains a DNA sequence. I want to fragment it into sequences with a definitive length into a …

Member Avatar for dgg32
0
104
Member Avatar for richasr1

I'm currently trying to manipulate TShape objects over multiple classes, I had a problem with #includes and now that is sorted, the only thing i'm trying to do is create shapes on one form from another class, by creating the function and then calling it in my main class, here's …

Member Avatar for White-Gandalf
0
114
Member Avatar for rzr.copperhead

i compile this code in Microsoft visual studio C++. No errors.. but i cant save the file.. why ?? [CODE] #include <iostream> #include <vector> #include <fstream> #include <conio.h> using namespace std; using std::vector; class Service { public: Service( string d ) { strcpy(servDate,d.c_str()); } void setDate(string d) { strcpy(servDate,d.c_str()); } …

Member Avatar for rzr.copperhead
0
120
Member Avatar for Katherine692008

**I'm to the point I think where I can ask a user to input a string value, answer is Hourly. if hourly the user enters hours, then the program prints out value in currency format answer is Salary user enters which salary level Level 1 is for recent college grads …

Member Avatar for Katherine692008
0
115
Member Avatar for kimhanu

who have code about it ? please give me .... I want it to study thanks you very much .

Member Avatar for bwkeller
0
78
Member Avatar for Nemoticchigga

How do I access a private member of a class? [code=cplusplus] class Foo { public: int blah; private: bool whatever; }; int main() { Foo* myFoo; myFoo->whatever = true; //does not work obviously } [/code] How do I access 'whatever'? Thanks.

Member Avatar for White-Gandalf
0
80
Member Avatar for lookforlohith

#include<iostream> #include<fstream> #include<iomanip> using namespace std; class lohi { int x; int y; public : lohi() { x=10; y=20; } }X; int main() { fstream io; io.open("just1",ios::in | ios:: out | ios::app); io.write((char*)&X,sizeof(X)); io.close(); } in this programme i expect a file to be created and contents of x,y to …

Member Avatar for ivailosp
0
113
Member Avatar for nireekshan

hai i am write simple java code dataRetriving from Mysqldatabase to c:\ Commend fromt The out put desplay QUERY send me Plse

Member Avatar for jwenting
0
78
Member Avatar for wakeup

This is the code char number[]="0.58"; double value = atof(number); When I execute it value is 0.57999999999999996 Do you know why? Thanks in advance

Member Avatar for White-Gandalf
0
116
Member Avatar for LindaWiklund

Hello Trying to fetch a part of a string with g_regex_split. The string may look like: `"9999 00 00 CC 03 00 CC 00 00 'xxx'"` What I want is to remove everything except: `00 00 CC 03 00 CC 00 00` My idea is (since there is no get_this_part_of_string …

Member Avatar for White-Gandalf
0
186
Member Avatar for Jboy05

How do I write a C++ for loop that displays the following set of numbers: 0, 10, 20, 30, 40, 50 ..... 1000 I don't know anything about loops, so any help will be much appreciated Thank you much. :)

Member Avatar for Jboy05
0
99
Member Avatar for mcenley

Hi friends, My problem definition is as follows: Creating a class name called "Kangaroo". 1] An __init__ method that initializes an attribute named pouch_contents to an empty list. 2]A method named by creating put_in_pouch that takes an object of any type and adds it to pouch_contents. The following is the …

Member Avatar for a1eio
0
184
Member Avatar for mrcniceguy

I created a profile where,after registration and login in Someone can view his dteails. How can I do so that,he/she will be able to edit/update that same profile, after login in. i use "User" and password in login in. Help please!!!

Member Avatar for mrcniceguy
0
87
Member Avatar for sukhy_1

Hello does anyone know how to bring details from a database into a textbox? becuase ive got the login working and it displays whos logged in but i want the postcode to appear in a textbox, the postcode is kept in mysql table called address. /after connecting to mysql [code=php]$query …

Member Avatar for nav33n
0
185
Member Avatar for Yellowdog428

Need some help. I have an assignment that calls for the sorting of two arrays. One is an array of doubles, the other chars (two dimensional). I cannot figure it out for the life of me. Here is the whole program. [CODE]#include<iostream> #include<iomanip> using namespace std; //Function Prototypes double sumRain(double[], …

Member Avatar for Yellowdog428
0
147
Member Avatar for Muttley

Hi all! I have just started learning c++ and i have a lil' problem compiling one of my programs (ADT). I havent finished it yet and started partialy verifying it, if it's correct or not, but i just met an error and i have no idea what the hell is …

Member Avatar for Muttley
0
142
Member Avatar for jpachar
Member Avatar for Fritzeh

Hey people, just a quick one here, as its getting quite annoying. Basically i want the form to only be closed when a correct password is entered using the form closing event. i have tried the following methods but they all seem to crash... any ideas? They all start with …

Member Avatar for Fritzeh
0
647
Member Avatar for vaid.abhishek

Hi, Guys Here's an important problem I have been facing lately. My idea is to partition an array on basis of an element such that, this element has all the elements smaller than it before it and all the elements greater than it after it ... ( Similar to pivoting …

Member Avatar for Ancient Dragon
0
296
Member Avatar for timberland26

hello everyone. im a newbie at working with c++ and i have just got my assignment and it is to create a piece of software to analyse images of coins. can someone help me? i just need help starting it off then i can get the rest done. never done …

Member Avatar for Nick Evan
0
291
Member Avatar for evios

hi to all the experts here, i am facing a minor problem..... i ady established the connection from VB6 via ODBC to MySQL and all the data needed has been passed to MySQL perfectly. But then how do i actualli retrieve the date from MySQL and show in VB 6.0? …

Member Avatar for debasisdas
0
109
Member Avatar for bornok15

Guys i want to make a system that can access a mysql database through the internet. Does this mean that i going to assign the IP address of my database server to the IP given by the provider? like for example 110.92.221.70.. is this valid as the ip address that …

Member Avatar for bornok15
0
78
Member Avatar for rhinocort23

ok here are my questions, first of all ill ask the shorter one first, ok with vb can you make bots for games (my game being diablo 2 LoD) and if you can, how would i go about doing that, and yes, i would like it to be a bot …

Member Avatar for rhinocort23
0
141
Member Avatar for Agni

[quote]Reposting from another forum as i didnt get many suggestions there[/quote] Hi Guys, In my project the user will enter the name of the organization and it's floor map has to be displayed. the maps have to be made by us and need not be complicated at all. what i …

Member Avatar for ithelp
0
201
Member Avatar for jimJohnson

I have an exam tomorrow and just going over quizzes I did not do all that good in and was wanting to know if anyone could assist me w\ my mistakes Quiz 6 This question asks me to put in the output int Function_one(int y, int x); int main() { …

Member Avatar for ithelp
0
80
Member Avatar for jino

When i am loading the below page it is showing this error message: Parse error: syntax error, unexpected $end in c:\PHP5\www\JINO\Tutorial\mis\from net\login_full\register.php on line 76 Here line 76 is the last line.. Please help.. [code=php]<?php mysql_connect("localhost", "root", "") or die(mysql_error()); mysql_select_db("tutorial") or die(mysql_error()); if (isset($_POST['submit'])) { if (!$_POST['username'] | !$_POST['pass'] …

Member Avatar for nav33n
0
149
Member Avatar for gothicmisery85

I was wondering if what I have done is correct or not. Here's what my book says to do: [I]"Write a function template that accepts an argument and returns its absolute value. The absolute value of a number is its value with no sign. For example, the absolute value of …

Member Avatar for Laiq Ahmed
0
249
Member Avatar for PeterYpenburg

Hi, I am developing some PHP code for a client and part of the code must send emails. My development environment is using Eclipse on Windows. I want to test the email functionality from my local machine. I have to set the values in php.ini file but I am not …

Member Avatar for PeterYpenburg
0
232
Member Avatar for atrusmre

Anyone know where I can find a good tutorial on windows forms timer? All I need is a sample of something that is similar to a count down timer. Any suggestions?

Member Avatar for majestic0110
0
101
Member Avatar for Brims

Hiya my application is an online music video library where users can download music to their web browsers, mobile phones and pdas. right now my application downloads the track and plays the music track from the browser, I just want it to do the same on mobile phnes and pdas …

Member Avatar for vishal arora
0
116
Member Avatar for zwench

I have my code to the point where I see the information on the print preview, but when it prints it is only printing the last line of the page. Any ideas of what I need to fix to get it to print all the information contained? I am new …

Member Avatar for zwench
0
88
Member Avatar for zoid777

Friends, I have two bugs I would like to fix,I know thier is someone out thier that can shed some light into this. First one is simple I don't know what I typed wrong for the date function it says this as below Missing argument name. When using named parameters …

Member Avatar for zoid777
0
149
Member Avatar for kings

[CODE]<?php session_start(); if(!isset($_SESSION['un'])) { header('Location: web_login.html'); exit(); } else { ?> <html> <body> <?php print "<table align='center'><tr><td>Thank u</td></tr>"; echo $_SESSION['un']; print "<tr><td><a href='http://www.examples.com/fram.php'>View Order</a></td></tr>"; print "<tr><ta><a href='http://www.examples.com/web_job.php'>Search </a></td></tr>"; print "</table>"; } ?> </body> </html> [/CODE] when i execute this code even though my $_SESSION['un'] is present in the database it's …

Member Avatar for kings
0
113
Member Avatar for queenc

hi now i want the first one alone to be seclectes on page load,rest should word based on the user clicks [CODE] SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT"> <!-- function view(s) { if(ss.options[s.selectedIndex].value!="none") { var a=document.getElementById('IndustryType'); var temp=a.value; parent.frameright.location = "http://www.website.com/web_desc.php?var=" + temp; } } --> </script> $result=mysql_query("select * from jopposting where owns='$id' …

Member Avatar for nav33n
0
340
Member Avatar for justinmyoung

if (empty($_POST['repair_number'])) { $errors[] = 'You forgot to enter your repair number.'; } else { $rn = escape_data($_POST['repair_number']); } Could someone tell me why I on my form do I keep getting an error that says "You forgot to enter your repair number." when I'm entering a number in that …

Member Avatar for nav33n
0
59
Member Avatar for clook

i am trying to display the output in jlabels for this shipping cost program i have coded. I have created individual jlabels for the package ID, weight, and shipping cost and tried to display them with the mainPanel. I had no problems making labels for the input in my designFrame …

Member Avatar for masijade
0
103
Member Avatar for sfurlow2

For our class, we're supposed to simulate a moon lander program. For a given starting value for the height (200 feet above the surface), amount of fuel (100 pounds of fuel), and velocity (0 ft/sec), we're supposed to simulate a ship landing on the surface of the moon, depending on …

0
79
Member Avatar for roachic

Hi everyone. I'm trying to create an array of distinct random numbers. This is what I have so far. [CODE] std::vector<int> randomNumberVector; randomNumberVector.resize(10); void CBlah::Randomize(void) { int randomNumber; int length; int i; BOOL isTaken; length = randomNumberVector.size(); for(i = 0; i<length;i++){ while(randomNumberVector[i] == NULL){ randomNumber = GenerateRandomNumber(); isTaken = CheckRandomNumber(randomNumber); …

Member Avatar for roachic
0
199
Member Avatar for Suraine

Dear c++ guru: In c++, normally we will call a function as shown below: [code] int funct () { ...; } void main() { funct(); } [/code] main will call the function "funct()" which is defined within the same file. However, in my case, i wish to have the "funct()" …

Member Avatar for Suraine
0
120
Member Avatar for tones1986

Hey Guys I am trying to get a basic program to work with dynamic memory allocation. I have a problem with a overload operating my stream operator...<< On my previous program i used this: [code] ostream& operator<<(ostream& output, const Vector& p) { output << "(" << p.x << ", " …

Member Avatar for Ancient Dragon
0
139
Member Avatar for guest7

Hi, I wish to read an input file 5 times. I am able to read it once but when i try to read it second time i am unable to do that because the file pointer is stuck at EOF. Can anyone suggest a small sample code of how to …

Member Avatar for Ancient Dragon
0
93
Member Avatar for mengmarc

[B]The problem:[/B] Given a list of imployees, create a simple program that allows the user to insert, delete, display and search an employee. The prog. shall display 10 imployees as default. Also a list of menu should be display. The menu names are insert, delete, dsplay and search. [B]My questions …

Member Avatar for mengmarc
0
122
Member Avatar for lemichelle

Hi everyone, I just started C and I'm trying to understand some conceptual things. If anyone can help me with any of my questions It would be appreciated! I just want to hear it from something other than a book. 1. So, if macros can hold arguments, why would you …

Member Avatar for Aia
0
77
Member Avatar for ramiljoaquin

Hi everyone! What is the code if I want to connect to MS ACCESS or SQL SERVER using C++? Is there a special compiler for c++ for that database code? Thanks

Member Avatar for ramiljoaquin
0
99
Member Avatar for Rand22

i have been having problems inputting some data from a file and i am clueless as to why i keep getting the output i do. This is a partial part of my code but as you can see from my output for some unkown reason I am not inputting an …

Member Avatar for Ancient Dragon
0
715
Member Avatar for Superbigmac

I would like to open a access database using VB.NET. However i want to be able to connect to a Access database at runtime and have this appear in the datagrid. how do you do this? I would also like to create a database using VB.Net and have fields weight,comment …

Member Avatar for johnny3d
0
121
Member Avatar for cnet1989

I'm making a program that reads in data from a file into 2 different arrays (one is an int array and another is a char array). And they are parallel. These are songs and song types (hip hop, jazz...etc). I want to print the songs as a playlist then I …

Member Avatar for cnet1989
0
93
Member Avatar for demroth

I have been reading the posts on radix sort here at DaniWeb and at [url]http://www.cubic.org/docs/radix.htm[/url]. I have already created the code for the counting sort which will do the rest but I do not understand how to do the radix part. I guess what I am asking is if you …

Member Avatar for demroth
0
122
Member Avatar for reddaisy

Hello, I am new here so Hi to everyone. My name is Debbie and need help writing a pseudocode for the following program as Im a little confused, heres the program for code: write a program that can be used to calculate the cost of a phone call. a call …

Member Avatar for reddaisy
0
364
Member Avatar for alkeshtech

hey guys, I want to create 6 different random numbers without repetitions and this what I have done. I just wanted to make sure if this logic makes sense. [CODE] for(int n=0 ; n<6 ; n++) { randomInt[n] = generateRandomInt(0,20); cout << randomInt[n] << endl; } for(int i=0 ; i<6; …

Member Avatar for alkeshtech
0
105

The End.