17 Topics

Member Avatar for
Member Avatar for danae.gordon9

Hi everyone, I'm new to programming (and daniweb) and I'm having a small problem with a Caeser Cipher program I'm writing. messageE = input('\nPlease enter string to encrypt: ') offsetE = int(input('Please enter offset value (1 to 94): ')) encryptedE = '' if offsetE < 1 or offsetE > 94: …

Member Avatar for vegaseat
0
258
Member Avatar for theashman88

@echo off REM This batch file will play with shift command :loop echo %1 shift if %2 == GOTO end goto loop :end exit 0 When I inputted C:\Users\~\Desktop> Shift.bat 1 2 3 I got this 1 2 end was unexpected at this time. Why do I keep getting "end …

Member Avatar for gerbil
0
310
Member Avatar for losh177

Hi everyone, I'm trying to figure out if there is any way to do exponents using bit shifting. I know the following: x *= 2 --> x << 2 x /= 2 --> x >> 2 pow(2, x) --> 1 << x i'm looking for the equivalent bitshift, if any, …

Member Avatar for turboscrew
0
1K
Member Avatar for rfrapp

I believe that one of the pages of the site that I'm creating is shifted slihtly to the left. I may be going crazy, but I'm pretty sure that's what's happening. The page that I believe is shifted is: http://armyants.us/members.php?steam=All If you guys could help me out here, then that's …

Member Avatar for EvolutionFallen
0
113
Member Avatar for kurtzky

I have an ASP Classic page with SHIFT_JIS charset. It has a meta tag under the <head> section like this: <meta http-equiv="Content-Type" content="text/html; charset=shift_jis"> My page has a text box (txtName) that should only allow 200 characters. I have a Javascript function that validates the character length, which is called …

Member Avatar for kurtzky
0
395
Member Avatar for jwill222

The language i'm trying to do this in is c++ let's say i have a number 123456 , i want to divide this up into partitions of two so i would have: 12,34,and 56. I want to add the partitions up and it would equal 102. How can this be …

Member Avatar for raptr_dflo
0
2K
Member Avatar for sathish1990

**Please help me friends** **I have a doubt in using array in JAVA** **if my input is AB1CD** They are stored in array as a[0]=A a[1]=B a[2]=1 a[3]=C a[4]=D I developed a coding to insert the number that appearing after a alphabet in the same array element like a[0]=A a[1]=B1 …

Member Avatar for JamesCherrill
0
165
Member Avatar for surajrai

Hi All, I am trying to understand shift operator which is used in my project. What I came to know from google is that Bit shifting allows for compact storage of similar data as a single integral value. But how does that work. and what is the advantage. Can you …

Member Avatar for Narue
0
295
Member Avatar for TrustyTony

There was question about encryption in Delphi/Pascal forum and a guy was suggested reversing the bits as additional step (I do not know if he in reality meant XOR 255, that is making 0's 1's and vice versa). As it keeps still same distribution of letters I suggested as better …

0
615
Member Avatar for byrosport

Okay the text on my input file is Wxmv_bpm_xwl_jig_lwwza,_PIT._Q'u_awzzg,_Lidm._Q'u_inziql_Q_kiv'b_lw_bpib. Here's My code but for some reason I can't get my program to convert the message to my output.txt file. Can someone please help thanks [CODE] #include <iostream> #include <fstream> #include <cstdlib> using namespace std; int main() { string str; int …

Member Avatar for byrosport
0
269
Member Avatar for JordanHam

I have read many different threads about how it is not possible to delete values from an array, but I need to find some way to do this. I am making a program that involves a bottom up approach algorithm where it pairs off data segments, finds the best segments …

Member Avatar for Fbody
0
154
Member Avatar for chintan_1671

I have a byte array which looks something like 01 00 02 00 73 45 69 A5 So i have to read first 2 bytes and convert it into integer to get its value. Same for next 2 bytes and then next 4 bytes. Here the value for first 2 …

Member Avatar for ddanbe
0
234
Member Avatar for drooblez23

Hello, I'm a new user, but a long time reader (sounds like I'm on a radio show lol) and I just have a question regarding the "page shift problem". For those of you who are not familiar with what the page shift is, it's basically only happens with "centered" templates. …

Member Avatar for ko ko
0
115
Member Avatar for seven37us

Hi everyone - This is my first post, so please be gentle :) I am having a problem on a website I recently built in which the entire container is shifting just a few pixels to the right on some of the pages of the sites. Not all of the …

Member Avatar for george61
0
132
Member Avatar for michaelcp23

Hello I am having trouble with my spry drop down menu shifting to the right when I hover over the navigation bar. It is only the submenu's that shift, not the actually nav bar itself. The error is only visible in IE6 & IE7. I do not see the problem …

0
146
Member Avatar for photoyid

Is there a way to determine which shift key is pressed? I am writing a program that shows an image and I want the user to say which side of the screen it is showing up on.... I thought of using the mousekeys but realized that not all computers have …

Member Avatar for TrustyTony
0
797
Member Avatar for Mapper99

I have a simple web page. For some reason, one of my div's (holding a bing map), is shifted way off in the blue. Here is the link: [url]http://70.38.38.174//where-does-this-drain-to/where-does-this-drain-go.html[/url] Looks fine in Chrome/IE. Thanks in advance, M

Member Avatar for macneato
0
91

The End.