3,815 Topics

Member Avatar for
Member Avatar for Navlag

Hello all, I am building a small file system in c++ that builds a table in a file called test.txt from information on another file. I am trying to copy the information over and then access a specific part of it based on the date. The data is copied over …

Member Avatar for Navlag
0
269
Member Avatar for iGuardian

In this excersize you will write a program that reads in two positive intigers that are 20 or fewer digits in length and then outputs the sum of the two numbers. Your program will read in the digits as values of type char so that the number 1234 is read …

Member Avatar for WaltP
0
137
Member Avatar for learner guy

Hi ,help needed in bishop movement c++..the code is woking fine giving desired output most of time but there is one thing unintentional happening in the algorithm.. to understand the problem plz see the diagram (ignore the 'oo' and 'o' and consider them double and single spaces respectively, they are …

Member Avatar for Schol-R-LEA
0
2K
Member Avatar for t2ac32

Hi every one well i have this problem: Im creating a method for multiplying two different lists sorted in arrays example: MyList a [9,9,9,9] * MyList B[1,1,9] the problem is that i was told not to convert to a large int and then multiply like this 9999*9 +9999*1+9999*9 Since the …

Member Avatar for t2ac32
0
1K
Member Avatar for tarekwarak

Hi ; can any one help me to find the algorithm written in c# to convert boolean query form post-fix to infix notation like example : infix : Tony and George post-fix : Tong George and example 2 : infix : Tony and George or Lona post-fix : Tong George …

Member Avatar for Antenka
0
83
Member Avatar for jprince

Hey guys, I'm making a gpa calculator and almost have it completed but can't get it to read the grades and calculate the gpa properly. Any help would be great! [CODE]import java.util.Scanner; public class StudentGPA { public static void main (String args[]){ //User inputs the number of classes he/she has …

Member Avatar for peter_budo
0
609
Member Avatar for pseudorandom21

I have a form with a number of controls on it, and I had thought that the "Controls" property of the form instance contained all of the controls on the form as per the documentation. Actually it does, but now iterating over all of my controls becomes similar to iterating …

Member Avatar for darkagn
0
142
Member Avatar for techgeek420

I'm trying to make a program that has the possibility to vote for different people. When a vote is added to a person, I want the pie chart above to change according to the votes. I have everything done except for the part of the pie chart changing. This is …

Member Avatar for EddieHappens
0
7K
Member Avatar for asrockw7

With the likes of the other n2 sorting algorithms like Bubble, Selection, and Insertion which 'worst case' does 18 element compares, or so, on a 10 element array in order to get 2 elements in order, I 'sort of' found one that does this with measly 13 element compares! Though …

Member Avatar for asrockw7
0
126
Member Avatar for learner guy

hi i am making my rook move with the help of validRook() and rookMove() functions.. i have placed validRook inside rookMove so that it is only executed when validRook return s true.. plz see if my validRook algorithm is correct(Note: this is phase 1 of my game and i just …

Member Avatar for Schol-R-LEA
0
2K
Member Avatar for begueradj

Hello people, I found a program on internet that reads 2 text files "maze.txt" and "randomMaze.txt" in which we can find *, space, S (for start) and E (for end). It resolves this maze by using DFS algorithm. My problem is that it does not run, it says there is …

Member Avatar for hfx642
0
184
Member Avatar for abhijit4569

Hello everyone, I need best books by best authors on following subjects. Money not a constraint. All subjects are from Computer Science. If you know whose books for the subjects is the best please comment below the name of the book and Author name. Thanks in Advance. Mathematical foundations Mathematical …

0
67
Member Avatar for djjavo

Hi guys I have a standard scoring algorithm but I need to help on a piece of code to only execute the scoring algorithm at certain times. I want it to be triggered by dates, but the problem arises if the program is used after 2 (or more) dates have …

Member Avatar for codeorder
0
213
Member Avatar for dsmush

Hi trying to recover an RSA encrypted 5 character word using a forward search dictionary attack in Python but having difficulty. The word was encrypted in 2 24 bit blocks (3648141 5604637) padding last block with a space e = 5 n = 21508387 table = {} for ptext in …

0
114
Member Avatar for nsyncpilu

Hy , I have to encrypt a message and then decrypt it. I have this code , but i need to save the encrypted string in a database and the code generates a random key every time. I could save the string and the key in the database but that …

Member Avatar for nsyncpilu
0
442
Member Avatar for SnoBunny85

My professor has given us the fifo algorithm program and asked us to modify it to become the clock algorithm by using reverse_map to find a page table entry and then checking its reference bit. If the reference bit is set, clear it and go on. I am just completely …

0
148
Member Avatar for tedman102

I am almost finished reading one of my tutorial books on C++. I made this program a little while back. The comments explain what the program does. There are still a few errors, like if you enter a character instead of a integer you'll be stuck in an endless loop. …

Member Avatar for mazzica1
0
1K
Member Avatar for crc0002

Here is the program assignment: [icode] Graph abstraction is important because it is used in many different areas of science, engineering, computer sciences and software engineering. For instance, the Internet makes use of graphs to represent the Internet router network configuration in order to determine the best route for forwarding …

Member Avatar for mazzica1
0
1K
Member Avatar for paavan123

In my point of understanding penalty means when your site do not satisfy with the Google's algorithm, then Google will remove/ban your site temporarily

Member Avatar for nanvymaben
0
151
Member Avatar for rse

Hello, I am new to php and mysql and I need to do password encryption and decryption. The password will be saved in a data base, I need to use an algorithm that uses SALT varible. Can some please help me with that? Thanks in advance.

Member Avatar for rse
0
2K
Member Avatar for dark_sider_1

Hi there, I usually feel really bad posting a whole bunch of code, but might any of you have an idea of why I'm getting an output of 105553 for 55555*66666? I'm supposed to use the A La Russe algorithm for multiplication: n*m m if n = 1 (n/2)*2m if …

Member Avatar for NormR1
0
189
Member Avatar for Vasthor

what I mean by undefined error is because I don't know what the error is about. :P, actually it's because the error not from the code itself, but it's about a compiler that can't defined some sort of file... btw, as title said, the error is from the code in …

Member Avatar for gusano79
0
238
Member Avatar for JRDJ12

[CODE]package com.abc.text; public class StringProcessing { /** * Returns the number of non-null strings in the set. * If null or a zero-length array is passed in, then zero is returned. * If a slot in the array is null, then it is ignored (not counted). */ public static int …

Member Avatar for JRDJ12
0
468
Member Avatar for arc45

"write a program that reads a list of names and telephone numbers from a text file and inserts them into an AVL tree showing in order and pre order traversal..once the tree has been built,present the user with a menu that allows huim or her to search the list for …

Member Avatar for shinnoon
0
2K
Member Avatar for VengefulToast

Hi forum, I just need help on my code. I am trying to find all the Armstrong numbers from 100-999(i.e. when the cubes of three digits added together equal the number - 1^3 + 5^3 + 3^3 = 153.) My code works until it gets to line 93, then it …

Member Avatar for skaa
0
687
Member Avatar for RaoxFaello

I'm new at programming, I was asked to create a program to find the GCD (Greatest common divisor) of two numbers my friend helped me create this program. All i am asking is how does it function?, I know how the whole program works (If... If else, While, Looping, Modulo …

Member Avatar for Schol-R-LEA
0
122
Member Avatar for mary786

The Question is : Three stacks can be used to sort a list of numbers. Assuming stack in holds the input list of numbers, stack out is to hold the output list after sorting the numbers and temp is used during the sorting process. The sorting algorithm follows. 1 set …

Member Avatar for NormR1
0
205
Member Avatar for Vasthor

hope anyone can help something with this code, well this code for the exercise 3.4 in Accelerated C++ book... where 3-4. Write a program to report the length of the longest and shortest string in its input. I thought my code was gonna going good, but it seems that it …

Member Avatar for Vasthor
0
156
Member Avatar for swissknife007

Can please someone give and explain the algorithm and logic of checking if a given tree is a complete binary tree. Fields available for a node are left and right child and info. Thanks.

Member Avatar for Narue
0
508
Member Avatar for JRDJ12

Hey all, I have an assignment that was assigned for the week that I could use some help on (not asking for someone to do it for me, just help with the step-by-step). Below is the requirements: 1) Create a new Java Project named whatever you'd like in your existing …

Member Avatar for stultuske
0
201
Member Avatar for geeknick

Is 2n+constant a good big o notation for a sorting algorithm? I have an assignment in a comp sci class to develop the fastest sort possible and found this to be the big o notation for my algorithm. The constant is based off the highest value in the sort.

Member Avatar for Rashakil Fol
0
107
Member Avatar for armaan ali

hello, i want an algorithm coding the algorithm is [ADD A NODE IN DOUBLE LINK LIST] the algorithm is follow. instwl( info,forw,back,start,avail,locA,locB,item) 1- if avail=NULL then write overflow and exit. 2- [remove node from avail list and copy new data into node] set new=avail avail=forw[avail] info[new]=item 3- [insert node into …

Member Avatar for frogboy77
0
310
Member Avatar for danbyo1990

Hey Guys, I found an interesting website that has a tutorial for Genetic Algorithm. Here is the article: [url]http://www.realintelligence.net/tut_genetic[/url] This is the code of its author. I can combine, but there are an errors that I can't fix it. Anyone could help me to fix this. Here is the code …

0
64
Member Avatar for Vasthor

what I mean is from this code, when coder doesn't put any curly bracket({,}), what does the while loop scope will cover? already test with random bracket put on the code, but, the only "brackected code" that work the same as the original code is when I put around words.push_back(word); …

Member Avatar for Vasthor
0
164
Member Avatar for apines

Hello, I am designing for work a testing environment which uses run-time randomly generated data to test our company's product. The problem is as follows: I have an inequality of the sort of x(1+y(1+z(1+p+q))) <= MAX, when x,y,z,p,q,MAX are integers, MAX is given as a method parameter and the method …

Member Avatar for amit28it
0
500
Member Avatar for YAMNA MIDHAT

i have made a program with this algorithm but its not working properly my code is given below can you help me to remove the errors [CODE] #include<stdio.h> #include<conio.h> void main() { FILE *f; char ch; int nalpha=0,nword=0,nno=0,nsc=0; f=fopen("abc.txt","r"); if(f!='NULL') { while(ch=getch(f)!=EOF) { printf("%c",ch); if((ch>='a'&&ch<='z')||(ch>='A'&&ch<='Z')) nalpha++; else if((ch==' ')||(ch=='.')) nword++; …

Member Avatar for YAMNA MIDHAT
0
166
Member Avatar for farshadak2004

I'm building a dictionary and I have a database of words with equivelant meaning in Access file. I want to use hash table for finding the words and the meaning. My question is how to implement the hashtable which can use the file as the reference. or any other guide …

Member Avatar for thines01
0
89
Member Avatar for cgen

I'm finding it difficult to implement an in-place algorithm for bucket sort. The question and my attempt are below. Can anyone give me a hint or an explanation of how I can implement in-place bucket sort? Q: Use the bucket sort idea to sort in-place an array of n records …

0
82
Member Avatar for cgen

I'm finding it difficult to implement an in-place algorithm for bucket sort. The question and my attempt are below. Can anyone give me a hint or an explanation of how I can implement in-place bucket sort? Q: Use the bucket sort idea to sort in-place an array of n records …

Member Avatar for cgen
0
213
Member Avatar for Dani

Google's new algorithm update, which takes advantage of the Caffeine infrastructure, is being said to impact 35% of searches on the web (Compared to Panda's measly 12%). Rolling out today, it's said to target "freshness" of content. :) Uh oh!

Member Avatar for savitasingh
0
215
Member Avatar for ArmanUV

I am buiding a Tic Tac Toe solving robot using the LEGO NXT kit for my school project. For practise, I wrote a Tic Tac Toe game using the minimax algorithm which worked very well. When I wanted to port my code to NXT, I found out that none of …

Member Avatar for Adak
0
1K
Member Avatar for cummings15

The void and Output file will not work for my code and I don't know why. [CODE]#include <iostream> #include <string> #include <istream> #include <fstream> #include <cstdlib> #include<iomanip> using namespace std; #define MAX_ENTRIES 50 struct internet { string internetDomain; string ipNumber; int counter; }; // declare the array of structs - …

Member Avatar for raptr_dflo
0
130
Member Avatar for Vasthor

can anyone tell me particular code that work opposite way for "sort", where.... [QUOTE] sort(b, e) Rearranges the elements defined by the range [b, e) into nondecreasing order. Defined in <algorithm>. [/QUOTE] from Accelerated C++

Member Avatar for stereomatching
0
92
Member Avatar for ktsangop

Hello everyone! I want to add a licence expiration feature in my application (written in visual c++). When the licence expires i would like my application to generate a random numerical key which will be sent to me by the user. Using this key and a personal key-generator i would …

Member Avatar for ktsangop
1
2K
Member Avatar for libathos

Is there a way i can modify the Bresenham circle algorythm in a way so that it actually draws arcs with specified start and end angle instead of complete circles? the algorythm in c is like this [CODE]void DrawCircle(int xM,int yM,int radius) { int f = 1 - radius; int …

Member Avatar for Adak
0
194
Member Avatar for That_Dude

Hi, all. I am a undergraduate computer engineer major, and I am currently learning Bode plots. I am very fluent with C++ but have been out of the game, as far as creating something goes. I am looking to implement a program that can construct a Bode Plot. A bode …

Member Avatar for mike_2000_17
0
726
Member Avatar for kreyd

Description of the Problem: In my program, i need to write a program that will determine how many coins of each denomination (1¢, 5¢, 10¢, 25¢, and 50¢) are required to make up a given amount of change. For example, to make 57¢ we could use 1 half dollar, 1 …

Member Avatar for 3bodd
0
282
Member Avatar for nndung179

INPUT.txt [CODE] 6 p q r s k m 6 ~p|q ~q|r ~p|~r|s ~r|k ~k|m r m [/CODE] right OUTPUT.txt [CODE] ~p|q,~q|r,~p|~r|s,~r|k,~k|m,r,~m p: Resolve unsuccessfully q: ~p|~r|s,~r|k,~k|m,r,~m,~p|r r: ~k|m,~m,~p|s,k,~p|k s: Resolve unsuccessfully k: ~m,~p|s,m,~p|m m: ~p|s,0,~p TRUE [/CODE] My Program [CODE] #include "stdafx.h" #include <string> #include <fstream> #include <vector> #include …

Member Avatar for MonsieurPointer
0
134
Member Avatar for fanfunstar

Anyone can help me with this algorithm? 1 set up stack in and print it 2 while stack in is not empty repeat 2.1 max = in.pop 2.2 while there are still element in stack in repeat 2.2.1 value = in.pop 2.2.2 if value > max 2.2.2.1 temp.push(max) 2.2.2.2 max …

Member Avatar for raptr_dflo
0
2K
Member Avatar for Coldev

Hi everyone I have this project for my programming class and would appreciate it if someone could point me in the right direction. The objective of the lab is to write a C program that will be able to solve a boolean formula and print all the satisfying assignments. This …

0
59

The End.