199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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()); } … | |
**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 … | |
who have code about it ? please give me .... I want it to study thanks you very much . | |
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. | |
#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 … | |
hai i am write simple java code dataRetriving from Mysqldatabase to c:\ Commend fromt The out put desplay QUERY send me Plse | |
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 | |
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 … | |
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. :) | |
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 … | |
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!!! | |
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 … | |
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[], … | |
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 … | |
wHAT IS THE DIFFERENCE BETWEEN CRYSTAL REPORT AND DATA REPORT IN VISUAL BASIC | |
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 … | |
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 … | |
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 … | |
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? … | |
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 … | |
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 … | |
[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 … | |
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() { … | |
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'] … | |
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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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 … | |
[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 … | |
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' … | |
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 … | |
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 … | |
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 … | |
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); … | |
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()" … | |
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 << ", " … | |
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 … | |
[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 … | |
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 … | |
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 | |
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 … | |
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 … | |
![]() | 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 … ![]() |
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 … | |
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 … | |
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; … |
The End.