I have a datagridvied with several columns and one with date and the format is Me.DataGridView1.Columns("Doopdatum").DefaultCellStyle.Format = "yyyy - MM - dd dddd" or Me.DataGridView1.Columns("Doopdatum").DefaultCellStyle.Format = "dddd dd - MM - yyyy" Depends on the button i press My problem is when i reverse from "yyyy - MM - dd dddd" to "dddd dd - MM - yyyy" It dos not work proper I have the folowing code to reverse the date Private Sub DoopdatumOmdraaienToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles DoopdatumOmdraaienToolStripMenuItem.Click If DoopdatumOmdraaienToolStripMenuItem.CheckState = CheckState.Checked Then Me.DataGridView1.Columns("Doopdatum").DefaultCellStyle.Format = "dddd dd - MM - yyyy" For Each row As DataGridViewRow …

Member Avatar
Member Avatar
+0 forum 5

Hi I coded a program where you can reverse the contents of an array. But I used two arrays to complete this process, I want to make it work by using only one array. Here is my code so far, it works btw, just need to make it work by using only one array: #include<iostream> using namespace std; int main() { int a[10], b[10],i,j; cout << "Enter 10 values for array: "; for(i=0;i<10;i++) { cin >> a[i]; } for(i=0,j=9;i<10;i++,j--) { b[j] = a[i]; } cout << "\n\nOrginial Array is: "; for(i=0;i<10;i++) { cout << a[i] << ", "; } cout …

Member Avatar
Member Avatar
+0 forum 3

This code allows you to create a linked list and reverse it recursively.

Member Avatar
Member Avatar
+0 forum 10

The code isn't displaying and then reversing entered numbers. reverse.cpp // // #include <cstdlib> #include <iostream> #include "linkedStack.h" using namespace std; int main() { linkedStackType<int> stack1; linkedStackType<int> stack2; cout << ""; cout << "output your name\n\n"; int number = 0; // AUSE LINKED STACKS // cout << "Enter first number 1 to be stored in Stack 1: "; cin >> number; cout << "Enter first number 2 to be stored in Stack 1: "; cin >> number; cout << "Enter first number 3 to be stored in Stack 1: "; cin >> number; // // PUSH NUMBERS ON STACK stack1.push(number); …

Member Avatar
Member Avatar
+0 forum 5

#include <stdio.h> Reverse Number In C Program int main() { int n, reverse = 0; printf("Enter a number to reverse\n"); scanf("%d",&n); while (n != 0) { reverse = reverse * 10; reverse = reverse + n%10; n = n/10; } printf("Reverse of entered number is = %d\n", reverse); return 0; }

Member Avatar
Member Avatar
+0 forum 4

#reverse the string

Member Avatar
Member Avatar
+0 forum 7

Write a program with Recursive function that for every step will receive input from a number of until the digits 0 entered. After entering the digits 0 It should be entered into the numbers entering printed in reverse order Track.

Member Avatar
Member Avatar
+0 forum 3

Hi everyone! I am trying to set up a reverse ssh tunnel from a windows machine using Cygwin (openssh) , to a Linux server machine with static ip, so i can access the windows pc directly through the server from any other machine. My ultimate goal is to be able to connect through remote desktop (rdp) to the windows pc from any other pc through the ubuntu server. I managed to take the first step which is setup a ssh server in cygwin and to open a reverse ssh tunnel from windows pc to the server using the following command …

Member Avatar
Member Avatar
+0 forum 4

hi, i am a web and app developer. i need some help in a javascript code which belongs to a wordpress plugin - wp-imageflow2. wp-imageflow2 is a image slider with lightbox features. The slider moves from left to right and then back to the 1st image (basically image1 to last image then back to image1). My aim is to make the slider move first from image1 to lastImage Then lastImage to firstImage. so far i have tried it to go at reverse direction i.e. right to left (lastImage to firstImage). However when the slider is to move in reverse direction, …

Member Avatar
Member Avatar
+0 forum 1

I have problem reading file form command line. I am trying to do " abcd: ./rev < numbers", but it gives me an error: ./rev < numbers Usage : ./rev FILENAME Here is the code: #include <stdio.h> #include <stdlib.h> void reverse(FILE * file) { int fscanf_return_value; char x; /* read a char */ fscanf_return_value = fscanf(file,"%c",&x) ; if(fscanf_return_value == EOF) { //fscanf returns EOF as the END OF FILE return; } reverse(file); //Get the next char //do something with the char e.g. print putchar(x); return; } int main(int argc, char *argv[]) { int i; FILE *fd; if (argc!=2) { printf("Usage …

Member Avatar
Member Avatar
+0 forum 4

Hey guys, I've tried writing code to reverse my sentence, but I keep getting an error in my for loop saying "Expected Expression". Also, should the asterisk go after the "modify" in my code? I'm not sure how pointers are exactly supposed to work and I haven't been given any errors for doing so yet. Thanks in advance, and here is my code! void f1 (const char* sentence) { char sentence2; sentence = &sentence2; char* modify = &sentence2; basic_string <char>::reverse_iterator revSentence; cout << "The reversed string is:" << endl; for (revSentence = modify*.rbegin(); revSentence !=modify*.rend(); modify*++) { cout << *revSentence; …

Member Avatar
Member Avatar
+0 forum 5

Hi, I had an assignment where we had to fox a program and get it working correctly. I fixed 99% of the problems and the program runs correct. The only thing that is wrong is my insertionSort() method. It runs correctly, but in the wrong order. Currently its listing names in descending order, comparing the last names (if last names are equal then compares first names). I have been messing around with my loops for a while now and cant figure out how to switch the order which it runs the sort. The fix is probably something really small and …

Member Avatar
Member Avatar
+0 forum 2

Hello, I need to write a program that takes a string and reverses it via pointers. I have a function called Reverse and what it does is take to pointers (*front and rear*) and intializes them to the front and back of the char array respectively. Then what it does is one by one go through the char array and switches front with rear. Finally front++ and rear-- until they equal each other. The problem I am having is outputting new array. What am i doing wrong? void Reverse(char entry[], int &length) { int i = 0, j = length …

Member Avatar
Member Avatar
+0 forum 4

Hello All, I'm trying to write a function that outputs the reverse of the input. I know that you can use the built-in list.reverse() or S[::-1] methods, but I want to make it using the 'for' loop. My code initially is: def reverse(S) for x in S: print(x, end = " ") the inputs would be >>> reverse(['a','b','c'] ['a','b','c'] #this is output on shell Any ideas on how to reverse it and have the output be like below: >>> reverse(['a','b','c'] ['c','b','a'] Any help would be greatly appreciated. Thanks.

Member Avatar
Member Avatar
+0 forum 4

to input an unsigned integer and reverse the first and last nibble of the number

Member Avatar
Member Avatar
+0 forum 16

how to create a java program that ask the user to input a string and to input a number of how many times you want to reverse it at right to left? please help me with creating this program.. sample: Enter word: computer enter number of rotation: 3 output: tercompu

Member Avatar
Member Avatar
+0 forum 13

Greetings, I found the equivalent of this in Java but not Python. What i'm trying to figure out is how to reverse and print each of 5 lines in a text file backwards. I am able to take this: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa …

Member Avatar
Member Avatar
+0 forum 3

Guys, I've been stuck on this for a while now. This is actually one of my assignments, and I'm really lost. This is the assignment: ------------------------------------------------------------------------------------------- You manage a .txt file containing the customer ID number and account balance of the members of a bank. Last week, a computing error caused each customer's account balance to get reversed. For example, if someone had an account balance of 132.64, this was reversed to become: 462.31. Write a program which will input the file and output a file containing the corrected account balances next to each customer ID number (a 9 digit …

Member Avatar
Member Avatar
+0 forum 32

I need to write a program where the user input their name, the program will tell them 'Hello,' and then show the user's name backwards. This is what I have: [CODE]INCLUDE Irvine32.inc .data pleaseEnter BYTE 'Please enter your name: ', 0 StringName BYTE 30 DUP(0) yourName BYTE 'Hello, ', 0 StringReversed BYTE 30 DUP(0) reverseName BYTE 'Here is your name backwards: ', 0 StringSize = ($ - StringReversed) - 1 .code main PROC mov edx, OFFSET pleaseEnter call WriteString mov edx, OFFSET StringName mov ecx, SIZEOF StringName - 1 call ReadString call CRLF mov edx, OFFSET yourName call WriteString mov …

Member Avatar
Member Avatar
+0 forum 2

Not asking for code, but I'm wondering if anyone can give me some advice and pointers for writing a code that reverses an inputted int, without using the string reverse.

Member Avatar
Member Avatar
+0 forum 7

Hi plz help me with a code that can detect when a pin number is entered in reverse. and alerts the user that he has entered pin number in reverse ..thanx

Member Avatar
Member Avatar
+0 forum 5

I am making a program where i have to write a recursive function that reverses a string. I am a new programmer and need help. The function should return a String and take only one argument, also a String. [CODE]import java.io.*; public class RecursiveFunction { public static void main(String [] argv) throws IOException { BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in), 1); System.out.println("Enter a string that you would like to reverse"); String userInput = stdin.readLine(); } static String reverse(String userInput) { //what do i write here return userInput; } }[/CODE] I don't know how to reverse the string or how to …

Member Avatar
Member Avatar
+1 forum 13

I am a 22 year old college gal currently enrolled in a c++ course, and we are on the topic of recursion. I understand how it works and have completed several other exercises on the professor has listed in the book, but this one has me stumped. Is there anyone out there that could help me out? I think I have 90% of it done. The question is in three parts, and its the last part I cannot seem to get: part 3: Extend the function of exercise 5 so that it also outputs a running total as the numbers …

Member Avatar
Member Avatar
+0 forum 1

I want to reverse and array of integer recursively, I think this is the way but I get this error when trying with a 5 integer array: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5 at name.of.package.ArrayAscDesc.CambioAscDesc(ArrayAscDesc.java:12) at name.of.package.ArrayAscDesc.main(ArrayAscDesc.java:34) Here's the code: [code]import java.util.Scanner; public class ArrayAscDesc { public static int[] CambioAscDesc (int[] array, int index, int tam){ while(index < tam){ int temp = array[index]; array[index] = array[tam]; array[tam] = temp; CambioAscDesc(array, index++, tam--); } return array; } public static void main(String[] args) { Scanner teclado = new Scanner(System.in); System.out.print("Inserte el tamaño del array: "); int tam = teclado.nextInt(); int[] array = …

Member Avatar
Member Avatar
+0 forum 5

Hi, Is it possible to design a PHP application to draw UML diagrams using reverse engineering? So far I found a PEAR package (PHP_UML). Anybody has an idea on using it? Thanks, Kiran

Member Avatar
Member Avatar
+0 forum 1

Hey guys, so I'm trying to write a little program that will put together any number of strings passed to it into a single string and then print out that string backwards. I think I have everything correct but I keep getting a "Segmentation fault (core dumped)" error after compiling and running. So far the output I get looks like this if I enter "Hello" and "World" for my two strings: [CODE]argc = 3 argv[1] = Hello argv[2] = World len = 12 string = ÿ9 string = ÿ9Hello World Segmentation fault (core dumped)[/CODE] Also, how can I fix that …

Member Avatar
Member Avatar
+0 forum 10

Hey guys! How can I invert (or reverse, whatever) a string, but reversing each word? Like: [ICODE]This is a string.[/ICODE] Output: [ICODE]sihT si a gnirts.[/ICODE] and not: [ICODE].gnirts a si sihT[/ICODE] Also, how can I do it to a entire file? Thanks in advance!

Member Avatar
Member Avatar
+0 forum 9

Hey all, So basically I need to change the code so that the phonebook and the inverse phonebook are easily updated and maintained. Also, whenever I add an entry, both phonebooks need to be updated. Lastly, when I write a phonebook to a file, write a backwards phonebook as well. Do your best to handle cases when two individuals share a phone number. If both Fido and Lucky have the same phone number (212-888-3434). One of them will not be in the backwards phonebook unless, the backwards phonebook is modified. Suggestion: for the backwards phonebook, allow the values to be …

Member Avatar
Member Avatar
-1 forum 4

Ok so I have to write a reverse method of a stack and I am not quite sure how to do it. I understand that i need to pop the strings from one stack into another but whenever I try to do this errors arise. Specifically it says it cannot find the pop method which is clearly defined above. Can anyone help with this problem? [CODE]import java.io.*; import java.util.*; public class MyStack<E> implements MyStackInterface<E> { private List<E> theData; public MyStack() { theData = new ArrayList<E>(); } Stack<String> theDataReversed = new Stack<String>(); public E push(E o) { theData.add(o); return o; } …

Member Avatar
Member Avatar
+0 forum 1

I am a beginner & I need to implement this program which states that I have to reverse whatever is given in input via pointers... For Example: i) Input: This is reverse order program Output: program order reverse is This ii) Input: This is exercise eight Output: eight exercise is This I made it a little bit, but it outputs to "is input" if i input "The input is" string. [code] #include<iostream> using namespace std; int main() { char sentence[80]={0}; cout<<"Input the string: "; cin.getline(sentence,80,'\n'); int length=strlen(sentence); int check=0; for(int i=length; i>0; i--) { if(sentence[i]!=' ') { check++; } else …

Member Avatar
Member Avatar
+0 forum 1

The End.