199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for infantheartlyje

Hi i could not specific Record from my binary file. This is the method to list out all records. [code] int student :: showall(fstream &fp) { student rec; fp.seekg(0,ios::beg); int i=0; cout<<"Position\tRoll No\t\tName\tBalance"<<endl; while(fp.read((char*)&rec,sizeof rec)) { cout<<i*sizeof rec<<"\t"; rec.show(); i++; } } [/code] While running this i got the below …

0
104
Member Avatar for mohanrajit.88

Hi friends, I dont have clear idea about drupal forms. Please guide me to learn it.

Member Avatar for msk2020ckp
0
131
Member Avatar for anand01

Hi all , I am learing J2ee by doing some projects. Last time i did a basic application for calculate profit and loss account, In that i maintained daily income and expenses,the user can view monthly ,yearly expenses. for that report i just displayed the data using html tables and …

Member Avatar for peter_budo
0
72
Member Avatar for raseru

I know C++ and java. My school focuses on Java but it doesn't seem to be very appropriate for game design. I wouldn't even consider Java if it wasn't for Minecraft. I want to make some nice and small indie games. If they go far great, but I also want …

Member Avatar for tiger86
0
292
Member Avatar for poker158149

Hey there, everyone. My friend and I are looking into writing a very simple game in Python. We're gonna use PyGame for it as well. It's a top-down view 2D game where you play as a guy with an ax who kills zombies. There are not different levels; it's all …

Member Avatar for Greeky
0
165
Member Avatar for shack99

Hello all, I'm trying to read an ant script through java and find where all its .java files and libraries are located. I've gone through the Apache ant API but couldn't find an appropriate method. So far all I could come up was the below code, it gives the properties …

Member Avatar for peter_budo
0
293
Member Avatar for ooops.789

hello i am trying to broadcast some values, but i dont see the function of broadcast happening....the code i had written to broadcast is #include <stdio.h> #include <stdlib.h> #include <mpi.h> int main(int argc, char *argv[]) { int rank, size, i, n, num, send; n=atoi(argv[1]); MPI_Init(&argc, &argv); MPI_Comm_size(MPI_COMM_WORLD,&size); MPI_Comm_rank(MPI_COMM_WORLD,&rank); if(rank==0) { …

Member Avatar for Mouche
0
131
Member Avatar for deraad

I'm trying to simply display some data from my database, but without duplicates, I'm working with the following code: [CODE] $query = mysql_query("SELECT answers FROM users"); $rows = mysql_num_rows($query); for ($j = 0 ; $j <= $rows ; ++$j) { $row = mysql_fetch_row($result); echo $row[0]."<br>"; } [/CODE] This works perfectly …

Member Avatar for cwarn23
0
185
Member Avatar for maybnxtseasn

Working on an assignment for class. I was able to get the sorts created buy for some reason im having a problem with reducing redundant code within my int main() function [code] /* 1.) create 10, 100, 1000, and 10000 randomly generated elements 2.) Perform The Following Sorts on the …

Member Avatar for Adak
0
181
Member Avatar for Stefan_Lam88

Hi Guys, [CODE] Yii::app()->clientScript->registerScript('highlightAC','$.ui.autocomplete.prototype._renderItem = function (ul, item) { return $("<li></li>") .data("item.autocomplete", item) .append("<a><img src=\"'.$Image.'\" border=\"0\" width=\"25px\" height=\"25px\"/> " + item.label + "</a>") .appendTo(ul); [/CODE] BY refering the above code, I wish to attach my image into an autocomplete search bar where each result will have different image depend on …

Member Avatar for Stefan_Lam88
0
243
Member Avatar for carolinatech

Hey everyone, I'm need help with a problem I'm working on. I am trying to write a code that will tell how many coins are in the amount of change from 0 to 99. My algorithm is: Get total value of change Set value of quarters to q=.25 Set value …

Member Avatar for Stazloz
0
130
Member Avatar for strongguy12345

ok well this is my first thread that im asking 2 questions, im new here, these are from my high school college computer science class, one is newer and one is older, i went back to the older one because I still want to finish it and try and extend …

Member Avatar for woooee
0
195
Member Avatar for Himajin Breaker

Is it possible to create a dynamic-sized array of structures within a structure? To provide some info, I want to read some student info off an input file, which includes some miscellaneous information, subject codes and corresponding marks. The number of subjects taken is also provided as a number in …

Member Avatar for Himajin Breaker
0
178
Member Avatar for FloridaJoe55

Ok, to the point as suggested. Second semester CS assignment to write program that reads maze info in from txt file to create maze a solves the maze recusively. I've got a dynamically allocated 2D array wtih each cell containing number that detemines the walls by bit values and it …

Member Avatar for FloridaJoe55
0
175
Member Avatar for Stazloz

I am writing a recursive function to return an integer after converting a string. I am very close. This was already quite the brain teaser, and recursion is not my cup of tea. Perhaps somebody can help with this small little problem I am having. The last thing I need …

Member Avatar for Stazloz
0
3K
Member Avatar for linhj

Hi all, I am doing the assignment as below. It is nothing wrong but just I think I complied c code and c++ code in the program. Now I would like to change it to work under c complier, but just dont know which part is wrong. Can anyone of …

Member Avatar for Panathinaikos22
0
255
Member Avatar for Manswab

hi i tried a code to implement non repeating random numbers from1 to 25..but its showing only 24 numbers..code is below..pls help me..or sujjest me a good code for non repeating random numbers[CODE] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace teasting { class Program { static void Main(string[] …

Member Avatar for Manswab
0
287
Member Avatar for khialbadshah

Hi I want to know how to insert picture and how to retrieve it from a table in PHP. Please help me.. Thanks in advance.....

Member Avatar for cwarn23
0
962
Member Avatar for hirenpatel53

Hi all i am facing one problrm in web based application as i have more experiance in windows base application so anybody hase idea please reply as soon as posible i wan't the first page of pdf need to convert into jpeg file thata i have done the problem is …

Member Avatar for hirenpatel53
0
195
Member Avatar for juniorsilver

I'm writing an application to update a database with student records. I've used this particular code before, but with just a single column, but i added multiple columns to this one. when i call the sub to save the records it gives me this exception: syntax error in INSERT INTO …

Member Avatar for Reverend Jim
0
154
Member Avatar for tallygal

I have to create a cafeteria survey application. Twenty students were asked to reate, on a scale of 1 to 10, the quality of the food in the student cafeteria, with 1 being "awful" and 10 being "excellent." Allow the user input to be entered using a ComboBox. Use an …

Member Avatar for Reverend Jim
0
211
Member Avatar for optimus_prime_1

please install this C++ software and according to image i am getting few errors will some one help me solve this problem ? software link : http://www.ziddu.com/download/17082595/turboc.zip.html image link : http://www.ziddu.com/download/17082611/untitled.JPG.html thank you ....................

Member Avatar for Stazloz
0
1K
Member Avatar for Howdydoody

I'm writing an alphabet cipher that ciphers at random. It looks like it should work when I'm debugging it but when I look at the cipher key it comes out with duplicate letters like some of them weren't switched during the for loop. Any help is much appreciated. WasSwapped is …

Member Avatar for Howdydoody
0
151
Member Avatar for rahman86

hello everyone. I have a program that should display report let say from a date to date. but i am using string compare and not date compare. what is my problem is it is not displaying the correct output and always shows a dialog box that request parameter. -how do …

Member Avatar for rahman86
0
117
Member Avatar for Interista

Hi i have about 5 types of strings having information in each string i need to transfer them into a binarytree so i need them in one node only i cant work out what i have to do.. every time i add a string it adds a node i want …

Member Avatar for rubberman
0
103
Member Avatar for jenbrandau341

Hello, I am new to C++ and very lost. I have attempted this program but my output displays file was unable to open. I am not sure I am even on the right track. Here is my project: Write a program that reads strings from a file into a vector. …

Member Avatar for jenbrandau341
0
111
Member Avatar for egoleo

I want to learn how to write a compiler. Can someone help with the path, what i need to be able to write a compiler. Any tutorial links? And can someone help me with becoming a system programmer. What i need and some tutorial links? thnx. egoleo.

Member Avatar for rubberman
0
760
Member Avatar for wolfgangcs

So I learn and write php. Very messy I am sure. I find that MySQL is deprecated and no longer the latest and greatest. I want to take my app offline. Ok, but how can I do that if the remote server is not a option? How do I store …

Member Avatar for diafol
0
137
Member Avatar for Lomholdt

So im making a anagram detector that reads all the words in a string. I already have the anagram funktion working (returning true if it is a anagram, and false otherwise) But i am having trouble making a loop that reads all the words in the string, and returning the …

Member Avatar for Lomholdt
0
158
Member Avatar for KhaosElement

I'm 'spose to be making a screen saver-ish program where objects bounce off the walls, but I'm stuck getting multiple objects to show up on the screen at once. This is my object to make a square: [CODE]package movingshape; import java.awt.Graphics; import javax.swing.JPanel; import java.awt.*; import java.util.Random; public class Shapes …

Member Avatar for mKorbel
0
1K
Member Avatar for wfws

I'm working on a lab for my C++ class that is the first to use classes and objects. It requires a search function that lists tasks found for a target course. I can't get the search function to work. Here is the relevant code: from main source code: [CODE] void …

Member Avatar for MonsieurPointer
0
168
Member Avatar for mags11

I am new to VB. I use Visual Studio 2010. I got most of my rental program to work, but I am having trouble with the easy part. The First Name and Last Name are supposed to combine to the FullName. I know I have to use the assigning textbox …

Member Avatar for codeorder
0
159
Member Avatar for Bobonoinc

I am developing an application in which I have two JPanels (aPanel and bPanel) added to a parent JPanel (cPanel). I need to be able to double click on either aPanel or bPanel to change its color. If I double click on aPanel, it changes color as desired. When I …

Member Avatar for mKorbel
0
127
Member Avatar for RedexProGamma

Alright, so in yesterday's thread, I asked for the codes to copy the contents of a directory to a separate directory. The code: My.Computer.FileSystem.CopyDirectory( , , ) worked fine. However, I have decided that I wish to add a progress bar into the mix so that the user can see …

Member Avatar for codeorder
0
2K
Member Avatar for renzlo

Hi Guys, I am almost done with my program, until this problem arises and I can't solve. I have two forms. First form has 1 listbox and 2 buttons. Second form has 1 datagridview and 1 button. The first form opens the csv and list the location+filename of the CSV …

Member Avatar for renzlo
0
152
Member Avatar for Nasas

Can u help me guys. I have problem of calling function from class and overloading. When I'm trying to print short int type number, the program brakes down. No errors are shown which tell me whats wrong. [CODE]#include <cstdlib> #include <iostream> using namespace std; int i=0, j=0, zero_fill, l=0; class …

Member Avatar for Nasas
0
117
Member Avatar for Aghtar

Hey guys, now I have an assignment to create code that will ask for a number and then calculate the factorial of it with a for loop in a separate function and return the value to main.. Here is my code, I think it looks pretty good, but when I …

Member Avatar for StuXYZ
0
167
Member Avatar for Frankey

i am looking for some advice on what is the best approach to get this done :) my datababase holds a table categories with the columns [CODE]|category_id|category_name|category_parent_id|[/CODE] i am showing my users a html sortable table with the following columns |category_id|category_name|category_parent_name| so what i want, is to do a ORDERBY …

Member Avatar for Frankey
0
256
Member Avatar for KunioUnio

[CODE]package lottery; import java.util.*; import java.util.ArrayList; public class Lottery { public static final int REGULAR_NUMBERS = 7; public static final int EXTRA_NUMBERS = 3; public static final int MAX_NUMBER = 39; public static final int TOTAL_PRIZE = 50; public static double winning; public static double cost; public static int round; …

Member Avatar for stultuske
0
274
Member Avatar for moparman426

alright so i have a problem iam working on i have to enter a 7 digit phonenumber then generate a word so example 639-2277 word mean the word newcars or any number would come up as a word well i cant get words to generate only random letters annd right …

Member Avatar for Reverend Jim
0
173
Member Avatar for Awah Mohamed

Hi guys.. Well, i am an IB student in grade 12 (last year in high school) last friday, the IT technician in my school dared me to make a mail server (send and recieve emails) and he said he can give me all the dns access that i need to …

Member Avatar for Stefano Mtangoo
0
118
Member Avatar for freebanana

I would like to automatize this process: Upload in private mode all selected videos on YouTube channel, then embed it on a private blogspot blog with the setting: no related videos, play in HD, custom width of 1500 by 1150 (or just custom width X where X is width and …

Member Avatar for Stefano Mtangoo
0
280
Member Avatar for KLMKLMKLM

WHAT in Heaven's name is a "T_STRING?" Nowhere do I see a definition of T_STRING, or why it is called T_something. From what I've been able to piece together, it might be an unquoted string. I have a [CODE]Parse error: syntax error, unexpected T_STRING in /home/xxxxxxxx/public_html/include/mmeetingDate.php on line 10[/CODE] Since …

Member Avatar for Stefano Mtangoo
0
269
Member Avatar for jacob21

Hi,I am new to jquery n using below code for submitting data in database. Its working fine for small data but not working for large data. Need suggestions Php code: [CODE]<?php include('db.php'); if($_POST) { $name=$_POST['name']; $desc=$_POST['desc']; $price=$_POST['price1']; //$type=$_POST['type']; mysql_query("INSERT INTO `pgdetail` (`name`, `desc`, `price`) VALUES ('$name', '$desc', '$price')"); } ?>[/CODE] …

Member Avatar for Stefano Mtangoo
0
201
Member Avatar for RoqueyB

I am supposed to have a while loop that asks for a number until the number is a negative. Then I am supposed to get a total of all of the numbers EXCEPT the negative number. As of right now my program adds up the absolute value of all the …

Member Avatar for TrustyTony
0
159
Member Avatar for TigerTeck

Grade2 Class.... [CODE]public class Grade2 { public Grade2(double input) { Grade = input; } public String getLetterGrade() { if(Grade==(4.0)) message="A+"; else if(Grade>=(3.85)&&Grade<=(3.99)) message="A"; else if(Grade>=(3.7)&&Grade<=(3.8499999)) message="A-"; else if(Grade>=(3.01)&&Grade<=(3.3)) message="B+"; else if(Grade>=(2.85)&&Grade<=(3.00)) message="B"; else if(Grade>=(2.7)&&Grade<=(2.8499)) message="B-"; else if(Grade>=(2.01)&&Grade<=(2.3)) message="C+"; else if(Grade>=(1.85)&&Grade<=(2.00)) message="C"; else if(Grade>=(1.7)&&Grade<=(1.849999)) message="C-"; else if(Grade>=(1.01)&&Grade<=(1.3)) message="D+"; else if(Grade>=(0.85)&&Grade<=(1.00)) message="D"; …

Member Avatar for TigerTeck
0
145
Member Avatar for mehnihma

I have a problem with case sensitive input my options are s and b and how to make a program when I input capital B or S to continue? [CODE] // options for selling and buying stocks System.out.println("\n"); System.out.println("Options as single upper or lower case character : "); System.out.println("\tB to …

Member Avatar for mehnihma
0
153
Member Avatar for danthevan

Well I was an old vb.net programmer,but not very professional and so with Java. I know the basics stuff how to think and how/why to write variables, methods, functions, threads, networking using streams or packets, and even I can write a database program which retreive records and insert records in …

Member Avatar for JamesCherrill
0
207
Member Avatar for gsting_88

How to verify email address whether exist or not in asp c#? I have search google about it, but there are no one clear's solution.. I need all help!!! Thank You.

Member Avatar for Mitja Bonca
0
302
Member Avatar for TrustyTony

Here is class that can be fed directly from split stream like one number per line file (or [URL="http://www.daniweb.com/software-development/python/code/321725"]generator producing 'words'[/URL] from multiple numbers per line).

Member Avatar for Gribouillis
0
610

The End.