199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for magnus-110

I'm using this encrypting function psoted by a member: [CODE]Public Function SimpleCrypt(ByVal Text As String) Dim strTempChar As String = "" Dim i As Integer For i = 1 To Text.Length If Asc(Mid$(Text, i, 1)) < 128 Then strTempChar = _ CType(Asc(Mid$(Text, i, 1)) + 128, String) ElseIf Asc(Mid$(Text, i, …

Member Avatar for sprogrammer
0
101
Member Avatar for khizer03

Hello everybody I Have a doubt i have created an application in VS2010 for windows application i have used form1 in form1 i used a button, onclicking on to the button it will load a second form ie.. form2 in which image is added the overall situation is when i …

Member Avatar for codeorder
0
127
Member Avatar for iraj.jelo

hi friends . i have a sqlite program. i need get stuff data from QLineEdit and add to model & tableView . but i dont know what should I do :( plz help me

Member Avatar for TrustyTony
0
182
Member Avatar for Adnan671

Ok so, this IS a homework assignment. I'm not asking for the answer. I need help on how to get started. Any help would be greatly appreciated. The assignment is to revise some code from a previous assignment, but I'm having trouble with figuring it out. The instructions are: You …

Member Avatar for Adnan671
0
134
Member Avatar for hust921

I am trying to make an encrypter, but as you can see, it's not working. str[] have an undeclared array size, i know that theres an option to make it with a pointer array, but i really want to make it a fixed size, also, so i can skip the …

Member Avatar for hust921
0
300
Member Avatar for TIM_M_91

Hi guys can anyone tell me if it is possible to sort integer values for smallest to biggest which has been stored in my database as Strings. What I want to do is list my items in an textarea that sorts the numbers from smallest to biggest. Also note if …

Member Avatar for stultuske
0
115
Member Avatar for smoothe19

Here is the instructions given: Use a loop with indirect or indexed addressing to reverse the elements of an integer array in place. Do not copy the elements to any other array. Use the SIZEOF, TYPE, and LENGTHOF operators to make the program as flexible as possible if the array …

Member Avatar for NotNull
0
4K
Member Avatar for dariaveltman

dear all!!! here is my code. when I run it "enter name and enter city "appears together. I dont understand why. please help me figure it out. thank you. #include <iostream> #include <string> using namespace std; void prompt(string name[7], char city[7]); void init(int index[7]); void sort(string name[7], int index[7]); void …

Member Avatar for tungnk1993
0
138
Member Avatar for 4hotkiss

[I]is any book [U]which explains what each code means and why it does[/U] that in c++, i am starting in progamming field from beginning. [/I]

Member Avatar for tungnk1993
0
96
Member Avatar for shywolf91

Here is my code: [CODE] #include <iostream> #include <string> #include <cstring> using namespace std; //() char openedP='('; //open ( char closedP=')'; //close ) //end () //dash char dash='-'; //end dash class PhoneNumber { int countryCode; int areaCode; int number; char type; int year; public: PhoneNumber() { countryCode = 43; areaCode …

Member Avatar for Topi Ojala
0
179
Member Avatar for Gnawk

Hi i need to make a method that does the example below if the array contains these number -12 3 -12 4 1 1 -12 1 -1 1 2 3 4 2 3 -12 The output should be: N Count 4 2 3 3 2 2 1 4 -1 1 …

Member Avatar for NormR1
0
118
Member Avatar for tiredoy

I just wrote a simple code.Since it have no warnings or error attentions from the VC compiler,it TOTALLY doesn't work! What I wonder is whether the problem is due to the sequence of complying as well as how to figure it out. ------------------ Here is the code [CODE]#include<iostream> using namespace …

Member Avatar for tiredoy
0
171
Member Avatar for PIXXAR

IM HAVING PROBLEM WITH THIS PROGRAM, GOING BACK TO THE MAIN PAGE AND SELECTED PAGE, IF THE USER ANSWER NO, THE PROGRAM WILL GO BACK TO MAIN MENU IF THE USER ANSWER YES, THE PROGRAM WILL COMPUTE THE SAME PROBLEM. help PLS... THE PROGRAM BELOW WONT GO BACK TO COMPUTE …

Member Avatar for PIXXAR
0
1K
Member Avatar for shankhs

can anybody suggest me whats wrong with the code?? [code] #include<iostream> #include<string> using namespace std; void rev_str(string str,int n) { while(str[n]!='\0') rev_str(str,++n); cout<<str[n-1]; } int main() { string str="shankhs"; rev_str(str,0); return 0; } [/code] thanks

Member Avatar for venugopal.somu
0
504
Member Avatar for venky.skcet

I am working with a database application and am currently having a problem in joining the tables.. Table 1 : Materials -- Columns (item_code PK,item_name,p_rate,n_rate) Table 2 : Projects -- Columns (proj_id PK,proj_name,etc,etc) Table 3 : Proj_Mat -- Columns (id PK,item_code FK,proj_id FK,qty) Here Proj_Mat works as the bridge table.. …

Member Avatar for venky.skcet
0
105
Member Avatar for jayadan

Whats the best and easy way to learn JAVA and anyone can suggest a very good and simple website to learn and workout JAVA codes.

Member Avatar for dymatic
0
159
Member Avatar for nezhad

Hello; I have 2 questions: 1- I know you can allocate memory to an array dinamically in C and C++. But, can this be done if the array is part of a structure? 2- Can the size of a dynamic array automatically grow up to a maximum or do you …

Member Avatar for nataraja833
0
573
Member Avatar for sammry

I am trying to generate a list of urls for the tags people who have submitted while posting their information. Data gets saved in mysql table as tags and the value comes with comma for multiple words, for example: tag1, tag2, tag3 abd saved as is in a single field. …

Member Avatar for veedeoo
0
194
Member Avatar for shivya jain

Hello experts, I never used [B]"Dataset"[/B] in my project. But I know this is used for the set of tables. Can I use this to authenticate from more than one table? Tables in my Database are: Login, Student, Student Details, Fee, Teacher, Teacher Details. I want to use dataset in …

Member Avatar for Pgmer
0
97
Member Avatar for extjac

Hi there, i am trying to use the classes proplery and i have a basic question....The following is the class i am using in order to get information from the DB...It is workinkg and i dont have any problem. But the question is how do i show the information on …

Member Avatar for veedeoo
0
134
Member Avatar for BlackRocker

write a Java program that performs the following task on an input text file. 1. Determine the number of characters 2. Count the number new-lines 3. Identify the number of empty lines. I have been working on this problem that I saw on the book and the part where I'm …

Member Avatar for stultuske
0
2K
Member Avatar for ShaRp codeR

Hello, I am stuck on this issue since like a week now and i have been trying to find out how to do this. I am trying to copy the ArrayList elements into another class. I have 4 classes: registration class (MAIN CLASS) address class (DONE) student class (DONE (kinda)) …

Member Avatar for stultuske
0
162
Member Avatar for sfurlow72

Alright, this isn't actually homework. I'm going back to school so I figured I would brush up on some programming before I go. I'll be taking the second course in a three course C++ programming sequence (starts with classes, recursion, etc.), so nothing too advanced yet. I wrote this program …

Member Avatar for ravenous
0
315
Member Avatar for sp85202

I need this program to take user entered information, check and see if the object exists and add it if it doesn't. I keep getting a nullpointer exception when trying to add an owner to an Arraylist. I've included the relevant part of the driver class, the OwnerParser class that …

Member Avatar for stultuske
0
237
Member Avatar for baig772

Hi all I am working on a website and the requirement is to make it in two languages i.e. icelandic and english. just like facebook and other google, if a user selects a language, then the site is translated in that language. I am not allowed to use google translator. …

Member Avatar for diafol
0
126
Member Avatar for gopi17

heyy guys....i manage to connect to diff database in a single form...but how do i compare the value... for eg. now i would to compare invoice_no for the both of them [CODE] $host="localhost"; // Host name $username=""; // Mysql username $password=""; // Mysql password $db_name="test"; // Database name $tbl_name="test3"; // …

Member Avatar for veedeoo
0
89
Member Avatar for while(!success)

Hey guys, I need help recognizing multiple digit numbers that are read so that I may push said number into a stack for future evaluation For example: 22 3 + should evaluate to 25 When I input 22 3 +, my output is evaluated to 5 Any help/criticism is welcome …

Member Avatar for WaltP
0
2K
Member Avatar for Motifaithed

Hi All, I'm working on a database wherein I want to input the current date into existing table upon the user enter his pin. I'm having a hard time to make it work here is my code. [CODE] <?php $result="SELECT * FROM profiletable WHERE (firstName='$_POST[assetSearch]' || lastName='$_POST[assetSearch]' || IDNumber='$_POST[assetSearch]')"; $q …

Member Avatar for veedeoo
0
182
Member Avatar for javanoob7697

I'm trying to build a program that has a user guess 4 random pegs in order. it needs to use arrays and methods and i'm struggling mightly... here are some parameters The structures must be declared as variables in the main() method. You must write your program so that the …

Member Avatar for javanoob7697
0
157
Member Avatar for aianne

Sorry I'm new to these stuff but I am having a hard time about this. So I'll trying to create a php and mysql program which can view records from database server. In my form I have 2 dropdown list and 2 submit button, the first one the the list …

Member Avatar for aianne
0
879
Member Avatar for Envious1

Hello, I am new to java and I was wondering if you guys could help me solve this problem: Your history instructor gives three tests worth 50 points each. you can drop one of the first two grades. your final grade is the sum of the best of the first …

Member Avatar for zeroliken
0
132
Member Avatar for HasNor

hi all... i have a problem when my boss ask me to do something that i don't know how to do it.. i need the idea for increment ID that will count by date.. For example today is 7/3/2012,user send request then id become AB-070312-1, user send other request at …

Member Avatar for HasNor
0
162
Member Avatar for FraidaL

I'm writing some while loops but I feel like there is a better way to write them. [CODE]int i=3; while (i<31) { cout << i << " "; i+=3; } //this one is for the first 10 terms of a sequence starting with 3 and adding 3 each time. int …

Member Avatar for zeroliken
0
211
Member Avatar for lassy85

The program has no errors and when ran will show the logo, buttons but not the inventory data. I have been working on figuring out why it will not display the cd information with no luck. Could use some fresh eyes to look at this and help me figure out …

Member Avatar for lassy85
0
191
Member Avatar for nexocentric

Before I post my problem I would like you in advance for taking the time to read this. I've been using simpletest to help me develop and test my php scripts. I'm currently working on a session class and when I go to test it I get the following exception …

Member Avatar for nexocentric
0
238
Member Avatar for mlhazan

I spent almost whole evening to understand the following code: [CODE] <?php $link = mysql_connect('localhost', 'root', 'root'); if (!$link) { die('Could not connect: ' . mysql_error()); } $db_selected = mysql_select_db('database_1.1'); if (!$db_selected) { die('Could not select database: ' . mysql_error()); } $query = 'SELECT last_name, first_name FROM Employee'; $result = …

Member Avatar for scaiferw
0
135
Member Avatar for sfurlow72

What's the difference between having a const function and declaring const after the function? For example, if I had a class Myclass with some private data members and I set up a public function called int getMyValue(), what would the difference be between declaring that function as: [CODE]const int getMyValue();[/CODE] …

Member Avatar for L7Sqr
0
181
Member Avatar for caltech

Hey, I'm building a website for this business, using HTML, CSS, PHP and AJAX for dynamic content. I'm trying to make a page which will display the thumbnail of each profile image, and have each thumbnail link to the corresponding profile. How exactly I can go about executing this, I'm …

Member Avatar for caltech
0
155
Member Avatar for O_mini

Program created in BlueJ: For this Assignment I am to create a magic square from odd numbers >= 3 input by the user. I want to test my code to see if it works, but I can't figure out how to actually print the square from the number input by …

0
439
Member Avatar for Surfsup

When the cursor enters div.round I want div#expand to appear. This is happenning fine. When I remove my cursor I want the div#expand to remain visible - this is also working. Then to close div#expand I want to click a#one - this is the bit that's not working with my …

Member Avatar for AleMonteiro
0
190
Member Avatar for BIGGDRE10

Ok im writing a program in java thats suppose to Use a while loop, to print the lower case alphabeth and its corresponding ascii values of the upper case alphabeth from Z to A So far i came up with while (counter +32) (char) (counter +32) if (counter < ?) …

Member Avatar for zeroliken
0
109
Member Avatar for nivek10

class class1 { //variable declaration }; class class2 { public: int func(void *msg); // others func... }; int class2::func(void *msg) { class1 *pointer = (class1 *)msg; //others declaration. } I would like to ask reagrding on this line of code : class1 *pointer = (class1 *)msg; the class declaring a …

Member Avatar for nivek10
0
380
Member Avatar for bflack

I've created this function and I wonder if ever I COULD USE VARIABLES IN reading column values on database table. [CODE] function vote($column, $imgid)//the $column stands for a variable handling a string I've passed from my previous call. For now I am setting it as a string named "likes" which …

Member Avatar for scaiferw
0
131
Member Avatar for Remedyseeking

I am creating a shared database to record requests entered by a team of 30. I need to record the Order Number, Reviewer Name, Date, Action Type(Order Type), Client Name, and a comments box for each order entered. When creating forms, Currently Reviewer Name and Date are auto-input so the …

Member Avatar for ChrisPadgham
0
474
Member Avatar for triumphost

When do I really need to use Delete in Destructors? if I do Point P = new Point(); I've been told every time I use new, it stays in memory even when out of scope and that I should use delete to remove it.. so do i need to do …

Member Avatar for triumphost
0
762
Member Avatar for iraj.jelo
Member Avatar for iraj.jelo
0
124
Member Avatar for programmer12

Hi I created some codes to upload my videos on the website, but for some reason it stopped working. Can Someone please help me debug the issues thanks! [CODE]<?php $username = "root"; $password = ""; $hostname = "localhost"; $database = "name_of_database"; $db = mysql_connect($hostname, $username, $password); mysql_select_db($database, $db); $path = …

Member Avatar for veedeoo
0
164
Member Avatar for james6754

I have put my code in to separate classes instead of having it just inside one class. Here is my constructor, I have also included my file which defines the class (#include "Matrix.h") [CODE] Matrix::Matrix(int* m,int* n)//constructor takes two ints { M = (*m); N = (*n); this->ptr = new …

Member Avatar for thines01
0
108
Member Avatar for sess4561

hi guys, how are you? I hope someone can help me with this as its been bugging me all day, and I'm sure there is a very simple explanation. Basically, what I have at the moment is this:- [CODE] $ip = ($_SERVER["REMOTE_ADDR"]); $xml = file_get_contents("http://xxxxxxxxxxxxxx); [/CODE] This returns me the …

Member Avatar for veedeoo
0
183
Member Avatar for whit89

Im trying to compare an entered value in a drop down box to see if an asset is available for use. At the moment its is From - Duration - Could i be better with From - To- Which would be easier to implement. Ive attached what i have so …

Member Avatar for diafol
0
271

The End.