199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for N3wbi3C0d3r

Posted it in the wrong place, sorry;) Hello peoples, as you can tell by my name, ima newbie coder, and barely know the basic concept of a non object oriented scripting language comonly known as QBasic. I wanna learn advanced programming to make games, and random programs i may need …

Member Avatar for N3wbi3C0d3r
0
145
Member Avatar for bryan7890

i wrote in my prog #include <iostream> using namespace std; int main ( ) { int arraysize = 25; int a [arraysize] = { 2, 3, 5, 19, 4, 20, 35, 123, -3, 45, 82, 93, 62, 35, 29, 21, 19, 57, 35, 64, 62, 324, 242, 0, -3 } …

Member Avatar for bryan7890
0
100
Member Avatar for SyLk

sup guys im trying to implement a nested for loop for a 2 dimension array that initializes the array to the character '*'. but its just printing out garbage, i think im messing up on my syntax :sad:.....some help would be appreciated here is what i got so for: char …

Member Avatar for SyLk
0
149
Member Avatar for elianahendler

hi i have a C++ assiggment and have no clue how to do it! the instructions are : write a program that calculates the bill of a simple restaurant. on the menu there are only 3 things to order - orange juice, vegetable salad, pasta. it is possible to order …

Member Avatar for alc6379
0
104
Member Avatar for hfick

I am supposed to figure out what the output produced would be from this equation..can anyone help me and explain it to me char var1='s'; char var2='x'; char *ptr1, *ptr2; ptr1=&var2; *ptr2=*ptr1; cout << *ptr1 << " " < var2 << endl;

Member Avatar for Narue
0
164
Member Avatar for Simplicity

How can I have different food items in a snake game? This is a piece of the code I'm given: [PHP] void display_food_at(int8_t x, int8_t y) { set_display_attribute(31); display_character_at(x, y, '#'); } [/PHP] I believe I have to add something somewhere around it..???

Member Avatar for Narue
0
90
Member Avatar for Midnight Skulke

I have design two program and both have errors on it. the first is supposed to handle queue on integer, double, string and date. I have done for integer and double. When I compile it there was error on it. If you can just help me debug it and i …

Member Avatar for Narue
0
232
Member Avatar for NAjAM AHMeD

hello! i am a brand new user to this site ihope that my experence with this site would be better than previous ones, i am studying BS(computer science), recently i had trouble with a program that ihave made well that thing is that its is complete and working as well …

Member Avatar for Narue
0
120
Member Avatar for javaLearner

hi. more or less a stupid question, but anyway.. why have a 'finally' statement in java exception handling -why not just clean up in the 'catch' clause?? is it for when an exception cannot be caught?? if not, then 'finally' seems a little redundant to me.. cheers. :eek:

Member Avatar for javaLearner
0
137
Member Avatar for sunny124

hi, my next button displays next record from the database. But after i save a record, next button don't work. Im not sure but is the next button not working because the resultSet needs to be refreshed after saving a new record? I have created the statement and resultSet in …

Member Avatar for sunny124
0
112
Member Avatar for lvdude

Hi all, First off, I'm relatively new to the world of C/C++. I've taken some courses in University years ago and haven't used it much since. What brings me back is the following dilema I have: I've built an application using National Instruments LabVIEW ([url]www.ni.com[/url]). For those not familiar its …

Member Avatar for lvdude
0
206
Member Avatar for m-soft

Hello I have a number from maximum 255 digits. I must compute the cube root of this number with 10 decimals. Time of execution is 1 second Could you help me ? 10x

Member Avatar for vegaseat
0
141
Member Avatar for NitrousGT

I think I know how to initialize the program, but i am doing a self learner and i am not sure how to begin or what to initialize. If anyone has any ideas please help me out. Here is a problem if you dont have the book... C++ HOW TO …

Member Avatar for alc6379
0
353
Member Avatar for Waskar

Hi to every one :cheesy: (I'll say it once: forgive my bad english :sad: ) I have a question!!! Is there any way to get information aboute Dial-tone PHISICALLY presense without performing a call dail?????!!!!! I've write a code, in vc++, to make connections over 16 Comm Ports (throw a …

Member Avatar for Waskar
0
376
Member Avatar for bemrag

hello everyone I need help to correcting and executing the program I wrote the program but program gives some errors like; warning C4013: 'printf' undefined; assuming extern returning int warning C4013: 'scanf' undefined; assuming extern returning int : error C2046: illegal case : error C2046: illegal case fatal error C1004: …

Member Avatar for Narue
0
252
Member Avatar for shaahul

Hi I needed some help on automating the installation of a software. During the installation of a software, you get various options. For eg. 1. the license agreeement screen gives you two options with two radio buttons. Choosing one selects Yes, I agree with the terms and conditions. And choosing …

Member Avatar for alc6379
0
146
Member Avatar for indignity

I'm the top student in each of my classes, and will be transferring next semester or the one after... and have no idea where I want to go. I probably can't get into an elite college, but I'd like to go to go somewhere that will challenge me (around here …

Member Avatar for umcookeg
0
303
Member Avatar for hill0ster

#include <iostream> #include <cstring> using namespace std; bool equalStrings (char[], char[]); //given here but must complete // on midterm int main() { char str1[80]; char str2[80]; cout << "Enter your first string: " << endl; cin.getline(str1); cout << "Enter your second string: " << endl; cin.getline(str2); if (equalStrings (str1, str2) …

Member Avatar for Narue
0
138
Member Avatar for quasimof

We are supposed to write a program which asks for the month, date, and yr and then outputs the day of that date. **input:** Month: 7 // This is July Day: 4 Year: 1776 **output:** July 4, 1776 was on a Thursday Formula: day = (r + [2.6m - .2] …

Member Avatar for ZuK
0
559
Member Avatar for SWET Student

hi everybody I have a project to write the code for the hangman game and i got stuck now :sad: :cry: The game should allow the user to choose if he/she wants to view the man as stick figure or a picture in the stick figure i should write the …

Member Avatar for SWET Student
0
272
Member Avatar for nicoletonyf

Hello there, I have to overload the subscript operator to return the largest element of a collection, the second largest, the third largest, and so on. I don't really understand what to do. Do I have to create an array and sort it? What the output will looks like? I'm …

Member Avatar for jwstickley
0
267
Member Avatar for Tomas Lopez

I have to write this program that prompts the user for the size of the tiles in inches and the number of rooms to be input. It should then input the dimensionsfor each room, and output the tiles needed for that room. After the last room is input, the program …

Member Avatar for jwstickley
0
158
Member Avatar for arthi

[FONT=Arial]undefined[/FONT]hi, I am new to asp and trying to get information from a table and make an array of it using an asp variable and then use it for further processing . The problem is the my sql query returns data this way Id 16 27 95 97 90,89,65,45,44 78 …

Member Avatar for jwstickley
0
105
Member Avatar for kwongchungying

hello, i have been stuggling with c++, i need to compile the following files but it never works always tell me the redefinition error i have tried both g++ and visual c++ but i can't make it work, i wish anybody can tell me why here are my codes please …

Member Avatar for Ejaz
0
283
Member Avatar for Young Teck 06

Need a little help here. Seems as if whenever I run the program, it closes before showing the results. Here is the code below: [code] // // Program to convert temperature from Celsius degree // units into Fahrenheit degree units: // Fahrenheit = Celsius * (212 - 32)/100 + 12 …

Member Avatar for Young Teck 06
0
117
Member Avatar for bryan7890

Write a complete program that creates an array of characters, 3 times the size of ASCII table and itinializes the contents of the array to correcponding ACSII values; when end of ACSII table is reached, you should loop back to the beggining and start again. Print the contents of the …

Member Avatar for bryan7890
0
131
Member Avatar for talk2fanie

Hi I am getting a problem , when i try to access a asp.net application in MAC OS 9x under IE 5.2x browser. Problem: 1. No server side validation are working , ie like regular experations 2. When the page got loaded in the browser, all the server side hyperlinks …

Member Avatar for nnanuvala
0
176
Member Avatar for Hendrinx

First excuse me for posting such a question, I'm sure it has a very simple answer. I am about to get to grips with PHP over the next few months and as such have no real experience. The problem I'm facing is with passing a variable declared at the top …

Member Avatar for Hendrinx
0
168
Member Avatar for gwenny

I need help writing a program using a character Queue. I am using the Queue to determine if the two sequences of characters are the same as each other. Also I have to implement my character Queue as a linked list (using Nodes). Can anyone out there help me write …

Member Avatar for Narue
0
146
Member Avatar for sachin kumar

Hi All I' m a new member of Dani Web Community.my problem is with nested linked list implementation.when i insert second node in linked list, it always overwrites the first. my declarations are as follows: struct dataset { int key ; char value[30]; struct dataset *ptrdataset; }*ptrd; struct geometry { …

Member Avatar for ZuK
0
164
Member Avatar for Young Teck 06

A bit excited here people, just completed my first (well from the book) C++ script code. Its a Temperature Converting code from the C++ for Dummies book. Unfortunately, I haven't even made it through the first chapter and am having problems with the reading. So i need to ask a …

Member Avatar for Young Teck 06
0
111
Member Avatar for Decency

hey, i've been in a middle of a problem about passing a php variable from one .php page to another? for example: if im in a middle of sign.php which has a variable called $username: this user name is to be known through all the rest .php pages in my …

Member Avatar for fpepito
0
210
Member Avatar for pratima

i must write a program that reads a number between 1 and 100 then calls a function to check if the number is part of the Fibonacci series.the main should display if the number is part of thr Fibonacci series.thanks #include<iostream.h> #include<conio.h> int check_fib(int a) {char ans1,ans2,ans; int sum,x,i; sum=0; …

Member Avatar for Narue
0
136
Member Avatar for KittyGirl

I have to write code that will prompt you to input a sentence, then it will output the number of vowels in the sentence. This is what I have so far. Can someone tell me what is wrong with it? Thanks so much! [code] //Input a sentence, then return number …

Member Avatar for Narue
0
135
Member Avatar for pratima

:rolleyes: i have to write a program which ask the user the height of a pyramid between 1 and 15 and displays a pyramid of this height made up of "*" characters on screen.for example how high would you like the pyramid?:37 pick another height(must be between 1 and 15):6 …

Member Avatar for Narue
0
123
Member Avatar for prachi

hello frds, i am provided with assignments for evaluation of stack (i.e conversion of prefis ,postfix, infix into each other) i tried for a long time and had to go for searching on net i need it urgently .plzzzzz if any1 knows it let me know prachi

Member Avatar for Narue
0
107
Member Avatar for confusedmind

hi i am having trouble understanding that what is the difference between having class xxx { } in the .h file and not having it? say i have these two code, can anyone tell me the difference? [CODE] #ifndef sample_h #define sample_h class sample { function1 (); function2 (); }; …

Member Avatar for Ejaz
0
142
Member Avatar for Simplicity

[COLOR=Blue]Hey guys, For the snake game, I need to use different colours for the snake and food. At least two different colours must be used (other than white and black). How can I change the colours? I tried many ways but none did it properly :sad: ![/COLOR] This is the …

Member Avatar for Simplicity
0
121
Member Avatar for kwongchungying

hello, i posted a thread before but i attached files so i guess it's too much trouble, i wish somebody can help me coz i have spent more than 5 hrs just to compile a very simple program, i have tried visual c ++ 6.0, g++ and gcc all have …

Member Avatar for Narue
0
931
Member Avatar for Asif_NSU

I had been using old turbo C++ compiler and with i had the help files on C++. However, the documents with my old version of turbo c++ is quite obsolete now. I want to get the latest docs so that i can look up specific function and class details with …

Member Avatar for vegaseat
0
252
Member Avatar for prathys

hello guys, I came across a strange thing when doing program in c++ in visualc++ environment.just run this code and after entering the array elements press up arrow and down arrow. Here's the code #include<iostream.h> void main() { int arr[5]; cout<<"Enter the array elements : "<<endl; for(int i=0;i<5;i++) cin>>arr[i]; cout<<"\n\n"; …

Member Avatar for Asif_NSU
0
137
Member Avatar for JoBe

Hi ladies and gentlemen, Gotta question, I have a program in wich I make a small array of 100 random numbers wich are smaller then 1000! Like this: # define MAX 100 void srand(int tabel[MAX]); void srand(int tabel[MAX]) { for (int i=0;i<MAX;i++) do tabel[i]=rand(); while (tabel[i]>1000); } This of course …

Member Avatar for JoBe
0
186
Member Avatar for hill0ster

Narue, thanks for all your help with this program! I really appreciate it. I have one last problem. In the function tryAgain, if user presses 'q' or 'Q'; the program terminates. No problem there, but if they hit anyother key; the program should allow them to re-enter pyrllSt (payroll status …

Member Avatar for iumair
0
126
Member Avatar for JBazil

ok heres the deal... i took a C++ class as an undergrad WAAAAAY back in the day and have forgot almost all of it. i recently DLed a C++ program that came with several files. i have tried to run this program to see if i obtain the same results …

Member Avatar for JBazil
0
232
Member Avatar for confusedmind

ok, here are the questions. QUESTION NO. 1: I am asked to build a complete binary tree using linked list. According to my knowledge, you are not able to sort the tree with a complete binary tree otherwise it is impossible to get it complete. I searched thru google and …

Member Avatar for confusedmind
0
1K
Member Avatar for quasimof

I have an assignment where I am given a sequence and I must turn the user's input (int) into that sequence. For example: number : 2 The sequence starting at 2 is : 2 4 16 37 58 The sequence is: 2^2=4, 4^2=16, 1^2+6^2=37, 3^2+7^2=58, etc.... how would I compute …

Member Avatar for quasimof
0
133
Member Avatar for tendekai
Member Avatar for vegaseat
0
193
Member Avatar for de_lily

need help with basic in programming language,i am a complete novioce in computer science as a hole pls help.

Member Avatar for Puckdropper
0
90
Member Avatar for Nyika

I have 2 files: a .h file and a .cpp file. I am new to c++ but need to know how to execute these files. In other words, how do I write a 'main' so I can actually get an output to these 2 files. I am using Microsoft Visual …

Member Avatar for Nyika
0
101
Member Avatar for willow

Previous program being used, that works fine. I have tried placing my break statements in various places within the programming and cannot get it to run that specific triangle that was entered so that I can enter the letter 'q' to quit. Program is to execute continuously until the user …

Member Avatar for vegaseat
0
176

The End.