Questions tagged [structured-programming]

27 questions
0
votes
0 answers

Cicles aspects that improves / decreases performance

I have been doing some performance checks on mutable and inmutable lists. I have created following test. The test is very simple and I would like to have a notion on what aspects should I take in account to improve the lambda expressions to have a…
0
votes
0 answers

RStudio non-english characters in code-snippet

I use RStudios to define som code-snippet, mostly to quickly load a starting structure for some of our r-scripts. In these I would like to use non-English characters, for example, in my header. My question: Is this possible? My standard UTF-8…
ErrantBard
  • 1,421
  • 1
  • 21
  • 40
0
votes
0 answers

Are there any good published algorithms for restructuring procedural code?

I've got a very ugly old program to try to organize/prettify. A few thousand lines, a few dozen labels and about 100 goto's. The goto's are about half forward and half backward. They overlap every which way, and there are even some computed…
Lucas Membrane
  • 359
  • 2
  • 7
0
votes
1 answer

What is the difference between Structured Programming and Object Oriented programming?

What is the difference between structured programming and object oriented programming?
user5733024
0
votes
1 answer

Useful to re-write the complete project? Get an idea of building an homepage

I have some problems and I hope you will understand me and what I want and I hope you can help me. So, I started to program a project for many moths ago. I want to start a little gaming community. I read many tutorials, wrote many snippets and…
hookieV2
  • 15
  • 4
0
votes
1 answer

Rewriting program from Structured to Object Oriented

I'm a self taught C++ programmer, given that my first programming language was Fortran (many years before touching C++) I write Structured C++. Now I want to take next step and learn Object Oriented Programming. I wrote small app for parsing log…
RegEx
  • 125
  • 3
  • 10
0
votes
4 answers

Comparing chars in C++ - argument of type "char" is incompatible with parameter of type "const char *

Im trying to compare 2 values in C++ (which im new to so please go easy) struct styles{ int itemNo; char desc[26]; char brand[21]; //between 3 - 20 char category; double cost; }; struct declared above, then im using this code in another function…
Gavin Crawley
  • 335
  • 3
  • 14
  • 25
0
votes
3 answers

Difference in variable value inside and outside a function

I wrote a program in which I found the area of cylinder using a functionarea with a return-type and without parameters. answerwas returned to main function. However, I am getting different output in main and a different output in area. The decimal…
Shail
  • 881
  • 9
  • 20
  • 37
-1
votes
1 answer

What is the difference between structured and unstructured programming?

I think structured programming is such a programming which can be divided into some module to make a program easy. (If I am wrong then kindly inform me make the correction of the concept) But C program is one kind of structured programming. So what …
-1
votes
1 answer

Is it acceptable nowadays to use PHP without any framework or following MVC pattern?

Further elaborating on the question, I am a freelance developer, I have been adopting structured PHP for years, and now every time I work on a project I feel that I'm doing something wrong, or not doing the project in a professional way. I am…
-1
votes
1 answer

Unit Testing NON-Object oriented programming

We have code which was written using Non-Object oriented programming and we would like to do unit testings. I've seen easy Unit Testing over Object Oriented Code in Visual Studio but I've not found a way to test when I don't have classes and…
Matias
  • 539
  • 5
  • 28
-2
votes
1 answer

Convert Readable Number to Integer in Java (Structured Programming)

Please help I got a task from my structured programming lecture to convert integer number to readable number and convert readable number to integer. for example : input 499 output four hundred ninety nine the code is: public static String…
Kevin M
  • 61
  • 7
1
2