hence in Scotland we tend to go all out in celebration at Hogmanay (party starts on 31st and lasts until the 1st or 2nd).
LOL -- I'm moving to Scotland :)
hence in Scotland we tend to go all out in celebration at Hogmanay (party starts on 31st and lasts until the 1st or 2nd).
LOL -- I'm moving to Scotland :)
Home Page now looks very much similar to the link you had where you could see everyone's current activities (I forgot the name of the link). But there people who had invisible mode turned on did not show up. Shouldn't the Home Page be like that too? It makes the invisibility mode pretty useless now.
Check out DirectX or OpenGL -- but be prepared for some heavy-duty programming.
It's been snowning all night and still snowing at 8:00 a.m. Looks like about 3 inches of that white stuff. Last time we got this much snow at one time was about 15 years ago.
clearly, Christmas is simply not tied to a religion, and thus, the state can have this federal holyday without violating church-state
That's not true here in USA. Here, Christmas is all about celebrating the birth of Christ, probably 75% of all Christmas music has Christ as it's theme.
Christians claim Christmas for themselves
It's called CHRISTmas for a reason. Name it something else if you don't think the holiday is all about Jesus Christ.
Happy Holidays is as good as any.
just like they claim marriage for themselves
Christians aren't the only ones -- I heard just the other day that India made gay sex/marriage illegal. It's also banned in other countries, like Russia.
seems like im the only one with the error 2816
Or you are one of the few people still using Dev-C++, which hasn't been updated in many years. If you want to use MinGW then Code::Blocks is a lot better IDE than Dev-C++.
belajar1.cpp:17:3: warning: no newline at end of file
Linking...
Move the cursor to the end of the last line of your program, press the Enter key, then save. Some compilers don't like not having a '\n' at the end of the file.
The other errors are because the program isn't linking with openGL libraries. What IDE (if any) are you using?
In fact I think America should just make every religous day, from every religion, a federal holiday.
A friend of mine is from India and he says they have lots of holidays -- maybe you should move to India. As for me, I never liked holidays, too boring, I'd rather work.
That said, doing GUIs in C++ is still very easy (if you're comfortable with C++, of course)
Maybe for people like you, but for us mere mortals it can be very undaunting and take years to write/test/debug significant applications in pure c++ and win32 api (assuming MS-Windows os). Yes, there are a few libraries such as wxWidgets and QT that make it a little easier, but still is not "easy".
I compiled your program with VC++ 2013 and only got one error, related to deprecated strcpy(). That error easily goes away by disabling error 4996
#pragma warning(disable: 4996)
line 37: strcpy(ls->name, "");
Why use strcpy() here? Just set the first character to 0. ls->name[0] = '\0';
If this is supposed to be c++, why are you using so many C constructs and functions? For example you should use new instead of malloc(), and you could substitute std::string for char*.
Yes, it is possible. And Yes, c++ is not the best language for it any more -- vb.net and C# are easier for MS-Windows. If you want cross-platform, then QT is a better solution. There are many ways to write GUI applications, some platform dependent and some are not.
No one said anything about abolishing Christmas, just abolishing the American federal holiday. Nothing else would change.
Congrats on your 1 year anniversery -- may you have many many more.
Instead of putting all those statements in one bit line separated by either || or && you should call them as individual statements.
bool a,b,c,d,e,f;
a = checklength(length);
b = lowerCase(length,line);
c = upperDate(length,line);
d = beginLetter(length, line);
e = correctDigits(length, line);
f = specialChar(length, line);
if( a || b || c || d || e || f)
{
// error
}
Most people already know that Christ was not born Dec 25th, but most likely in the spring. But the very name CHRISTmas is to celebrate the birth of Christ. One of the early Pope's decided Dec 25th would be as good a date as any to celebrate since that date is already celebrated for other things.
Many people suffer from the misconception that Christmas is a Christian holiday
Well, it wouldn't be called Christmas if it wasn't a Christian holiday. Why not just name it "Winter Festivals" or something like that?
What part of that asssignment do you need help with?
30% of americans already see it as an insult to their religions.
*70 and up - already have funeral, plot and stone paid.
I didn't say we would abolish Christmas -- just the federal holiday due to separation of church and state. The First Amendment to the US Constitution states: "Congress shall make no law respecting an establishment of religion". IMO declaring Christmas as a federal holiday violates that law. (Public Law 90-363)
Christmas has an interesting history. It was not a holiday in early America, and in fact was outlawed in Boston for a few years. Christmas didn't become a federal holiday in America until 1870. I anticipate one day in the not-too-distant future Congress will pass a law abolishing it as a federal holiday for political correctness.
I'll write it for you but it will cost you $10,000.00 USD, full payment in advance.
i ask you (dragon). wouldnt it have been better if u do a research on the meaning of pentesting before attempting to make an idiot of urself publicly
Look who is calling who an idot? You don't even know how to spell or write a readable sentence. [rant]And you can thank too much texting for that problem. You are not alone -- probably most teenagers today have the same problem, too much texting and not enough education. [/rant]
Here is an example using DataGridView. I just hard-coded it to contain 10 rows and 125 columns, but you could get this info from a textbox if you wish.
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
DataGridView1.RowCount = 10
DataGridView1.ColumnCount = 125
Dim row As Integer = 1
DataGridView1.ColumnHeadersVisible = True
For col = 0 To DataGridView1.ColumnCount - 1
DataGridView1.Columns(col).Name = "TextBox" & row & "_" & col
Next
End Sub
How you present the data on the screen is completely independent of what format the data will be written. Is there only one column of those boxes? Instead of using all those boxs you can do the same with a DataGridView control. With that control you just tell it how many rows and columns you want, then you can populate then with anything you want -- the boxes are even editable so that someone can enter the data into the grid manually from the keyboard.
If you are going to save the data in csv format then you don't need to do anything with Office Automation and I previously mentioned. CSV is just a simple text file with columns separated by either commas or tabs. I don't know anything about xml format, never worked with it. Saving to an Access database isn't terribly difficult, there are lots of tutorials how to do it.
Why don't you try an alternative way of doing it, like I've mentioned before?
It makes you wonder why so many people who claim to believe in God/Jesus are so afraid of dying
It's a natural thing, just as natural as breathing. All creatures have a fear of death.
I turned on AutoScroll -- it appears to be just a visual thing because when I scroll the boxes at the top of the windows appear to be ok. I don't know if there is a fix for it or not, most likely not. But don't take my word for it -- there are lots of people who are more experienced with vb.net than I am, especially Reverend Jim.
On second thought, yes I do see a problem -- the text boxes appear to be getting closer and closer together, the gap between the first two are a lot greater than the gap between the 12th and 13th. That behavior occurs with both VB.NET versions 2012 and 2013. I don't know how to fix it either.
I don't see any problem with it. Here is what I see. How do you know the distance is wrong for the last few boxes, you can't even see them?
Wrong example. That is sorting an array, not a linked list.
Well, yes -- I just hard coded it for my own convenience. But you still have the problem of being able to view all those text boxes without a scrollbar. An easy way to do that would probably put them in a ListView control or DataGridView control.
You can put a VScrollBar control on the form then handle it's events in order to scroll the textboxs into view.
Do you recommend me to read MSDN ?
Yes, it's the official source for MS-Windows GUI. Also look for tutorials and examples. Microsoft has lots of example programs. And you will find lots of examples at CodeProject.com, which is probably the largest repository of free Windws example code that you will find on the internet.
learned most of their programming knowledge on Internet
That may be ok, for a hobbyist. Some people learn better and faster by reading books. If you have lots of time on your hands and don't mind spending hours and hours searching for answers that are easily found in a book, then do it.
I ran your function and all the text boxes look equal distance from each other -- the problem is that I can see only the first few, depending on how large I make the window, because there is no scroll bar to make them visible. The only change I made was that I commented out the line 'boxes(Row, Col) = txtb
and I just hard coded an initial value or i instead of entering it in a text box.
And the boxes have vertical alignment as in rows of an Excel worksheet, not horizontal alignmemt as in columns.
Sorry, but that does not sort the linked list. You need to test it out with working code before trying to tell someone else how to do it.
No there isn't. If you don't know what you are talking about
A simple google shows that quote was written by French author Jacques Anatole Franois. Now whose calling the kettle black.
Now, the up arrow acts more like a toggle switch, press it the first time and the number increases by one, press it again and the number decreases.
What you are attempting to do is called "Office Automation" -- using vb.net (or some other .net language) to automate one of the Microsoft Office programs. google "vb.net office automation" and you will find a lot of information on how to do that. Another topic to google is "vb.net excel open workbook" And another article here.
Oh -- I guess I'm getting blind. That's exactly what I want.
So he's trying to get people to stop loving?
Well, no -- heart doctors don't stop your heart but make it better. Maybe he's trying to make people love better, something like a young Dr Ruth. Now she's a true "love doctor".
To write a GUI using pure c++ is pretty difficult. Here is an into tutorial, and it only scratches the surface.
Writing Windows GUI programs is a lot simpler with other languages, such as CLR/C++, C# or VB.NET.
Here is a pretty good overview of .NET, and if you google for "what is .NET" you will find lots of other articles. In 10 words or less, .NET is a replacement for win32 api.
'word' being an undeclared identifier on line 22
Check the spelling, it's probably not the same spelling as the parameter.
Is there currently a way to mark all threads in a forum as read? Every one of the forums I see in the Home Page shows NEW (I assume that means there are some unread threads). If not, will you please add such a feature?
The only thing you need in getWord() is lines 22 and 23 of the code I posted. All the rest is just one-time initialization of the words vecor and can be put at the beginning of main().
You might want to pass the vector of words as a parameter to getWord()
As you can see, getWord() is nothing more than a one-line function.
std::string getWord(vector<string>& words)
{
return words[rand() % words.size()];
}
Failing to refresh the page before making changes causes a lot of problems. I've seen entire paragraphs disappear because I forgot to refresh before editing a post.
something like below is what I have in mind. 2000 words should probably not be a problem.
#include <vector>
#include <string>
#include <fstream>
#include <iostream>
#include <ctime>
using namespace std;
int main()
{
vector<string> words;
ifstream in("filename.txt");
if (!in.is_open())
{
cout << "Error opening file\n";
return 1;
}
srand((unsigned int) time(0)); // seed the random number generator
string word;
while (in >> word)
words.push_back(word);
in.close();
int n = rand() % word.size(); // get a random word
string random_word = words[n];
cout << "Random word is \"" << random_word << "\"\n";
return 0;
}
Why are you converting the random word into a vector of single characters? It would be a lot simpler to just index into the std::string array.
HAY Ninjasssssssss !
No clue what that means. AFAIK you are calling everyone vulgar names.
I’s asked recently by a friend to do a pentesting on d system dat he administers
What the hell does all that mean??? what is "d" and "dat". Write English please. And I have no idea what "pentesting" means either.
I hate to reinvent the wheel (don’t wanna learn Ruby)!
If you are attempting to translate something from Ruby to c++ then you have no choice but to learn Ruby. You can't translate French to English if you don't already know both languages, so what makes you think you can translate Ruby to C++ without knowing Ruby??
I would swap the data, not the link pointers. That makes sorting a lot easier. But your teacher may or may not allow that simple method.