Programming Talk / Help Thread

fantanoice

I can see through time
Pronouns
She / They
Hey, lets talk programming! What could go wrong?

8zCs5Yv.gif


So I guess I'll start off. I'm interested in learning how to insert / extract data from spreadsheets and doing stuff with those. Unfortunately I haven't been able to find any good, step-by-step tutorials on how to just get data out of a single cell, plus I'm not sure what the best tool for the job is. A solution using C++ or C# would be preferred; I don't want to go hunting / installing other stuff if it's not necessary. Also I'm using OpenOffice. Anyone have any suggestions?
 
i just started becoming a professional programmer so expect some quality posts from me in this thread
 
all things php

i hate it
sometimes i love it
then i hate it again

its a rollercoaster of feelings
 
That's the general consensus I get from php developers lol

I felt like an idiot yesterday. I was trying to refactor some shared functionality between two derived classes into a helper namespace (c++). I had everything right, I had a pointer in my parameters list, I was calling the header in the cpp and forward declaring in the h, I was deferencing the pointer to call the functions, etc, but I kept getting an 'incomplete type' error which is typically what I'd get if I hadn't included my h.

After spending ages trying to work out what I did wrong and googling to remember if there are any gotchas with calling functions on abstract classes even when they're pointers, I finally realised that the problem was that the functions I was calling were protected and not public. Jfc.
 
Wow memories of my first ide

... Ditch it and use visual studio instead

https://www.codewars.com/users/queenie
 
Lua thing I learnt the other day: It has a hard limit of 60 upvalues that you can use in a function. An upvalue is a variable local to the file but not the function.

To get around the limit I had to remove a crapload of those locals and use them in a table instead.
 
I've got to write this program for my computer studies class. It is in Turing. It can be found here: http://compsci.ca/holtsoft/

Here is the program assignment that I need to write:
Write a program using nested “for” loops that prints the following patterns.
I need to ask the user for the number (example: 5 to print the following patterns)

a. b.
54321 1
4321 12
321 123
21 1234
1 12345

My input number has to be from 1 to 9.
 
Ok, my dad wants me to program something that will reverse a word (i.e. "word" -> "drow"), but I don't know the command to extract the specific letters from the word. He also said that I can't:

-have user input go letter by letter
-only be able to use letters of certain lengths

So now I'm stuck on:

-how to extract the letters out of the words
-how to assign the specific letters their values as letter1, letter2, etc.
-how to arrange those values

Can anyone offer any help on this one?

E: And I do have it so you can only input a word that's 9 letters long, so a word like "lighthouse" is out.

E2: And if you're interested, this is all I've come up with so far:

Code:
#include <iostream>
#include <string>

using namespace std;

int main()
{
    string word;

    cout << "Please enter a word that is 9 letters or fewer: " ;
    cin >> word;
    cout << "Processing..." << endl;