13 Topics

Member Avatar for
Member Avatar for humorousone

When we're taught programming (at least me, anyway), we're always told that goto statements are to be avoided at all costs. If they make code so difficult to read when used, why are they still in programming languages, and when are they useful?

Member Avatar for JamesCherrill
0
269
Member Avatar for happygeek

News headlines screaming that yet another Microsoft Windows vulnerability has been discovered, is in the wild or has just been patched are two a penny. Such has it ever been. News headlines declaring that a 'major security problem' has been found with Linux are a different kettle of fish. So …

Member Avatar for happygeek
2
532
Member Avatar for dre-logics

I have a simple question, I have the following menu. Main Menu Sub Menu 1 Sub menu 2 Sub menu 3 Sub sub menu 3.1 Sub sub menu 3.2 Sub sub menu 3.3 I would like to direct if the Form load that "Sub sub menu 3.3" is selected. Is …

Member Avatar for ryanjayson
0
249
Member Avatar for aditya.bhoi.35

I am making a personal assistant console application by using C# my problem is when after selecting the condition in the loop in main method in 165th line after executing the below code the the scope of the exection should return to the 165th line until it exists.i have used …

Member Avatar for Ketsuekiame
0
353
Member Avatar for Rohan_1

Can u plz help why dis happens? I was told to write a cpp program to find the factorial of a number using go to

Member Avatar for Ancient Dragon
0
199
Member Avatar for 111100/11000

**How to go back to** start_new_input: **of main() function?** #include <iostream> #include <string> #include <cmath> using namespace std; //global varibals: char entered_characters[9999]; int direction_of_rotor1; int direction_of_rotor2; char alphabet_of_rotor1[26]; char alphabet_of_rotor2[26]; char rotor1_backward(char Letter); char rotor1_forward(char Letter); char rotor2_backward(char Letter2); char rotor2_forward(char Letter2); char print(char print_char); int main() { cout << …

Member Avatar for ravenous
0
144
Member Avatar for Labdabeta

A friend of mine recently asked me to help debug some code. I looked through it and it was riddled all over with goto statements. I know why he uses them (he used to program mainly in assembly and batch) and I tried to explain why he should try to …

Member Avatar for Labdabeta
0
415
Member Avatar for PrimePackster

Here i have a working code, what i want to know is: When the user inputs elements to the array, i want it to be automatically aligned in form of an matrix. Instead of [ICODE] 1 2 3 4 5 6 etc....[/ICODE] But just as a matrix, like this [ICODE] …

Member Avatar for PrimePackster
0
253
Member Avatar for reza.adinata

Hi all, I am a newbie in C, and a bit curious with this "goto" statement. For instance, I create a simple code below [CODE] #include <stdio.h> int main () { int a; a = 1+1; if (a!=2) { goto error; } error: printf("error is here\n"); return 0; } [/CODE] …

Member Avatar for reza.adinata
0
184
Member Avatar for baby_c

Dear friends, I'm developing a software for one of our assignments. But the problem is I's still learning these things.But since I have bunch of Java expert friends I have no fear to face it ;) .So friends this is the code. [CODE]package census; import java.io.*; public class Main { …

Member Avatar for baby_c
0
158
Member Avatar for Bastiondar

Is changing the currentLoc variable with an [B]IF[/B] statement a bad way to terminate this loop below? I'm told: [I]"...something in the loop body must cause the expression to become false at some time. One of the things you do not do ever, is write an if statement to change …

Member Avatar for Bastiondar
0
348
Member Avatar for tcollins412

i need help with something lets say i had a url: [url]http://domain.com[/url] and it was supposed to go to the page [url]http://domain.com/loggedin.php?goto=hi[/url] how would i make it so in the browsers url bar, it only says [url]http://domain.com/?goto=hi[/url]

Member Avatar for chrishea
0
199
Member Avatar for ndowens

I am writing a application for Arch Linux, actually I already wrote it, but I wanted to do it a little differently then the other. The origional one uses the goto statement. Here is the code: [CODE]#include <iostream> #include <string> using namespace std; int main() { cout << "\tAurDown v2.1\n" …

Member Avatar for jonsca
0
178

The End.