John A commented: Hard work. :) --joeprogrammer +4
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
Mine too....
Direction? We don't need no stinkin' directions!
'Stein, where is your proof? Show me some real proof of evolution, not theory, not 'it might have happened this way,' but real proof. Show me something that only evolution, in the original Darwinian sense, could explain, and you'll have a case. I've researched the topic some...admittedly, I'm not an expert...and I have yet to see anything that fits that description. All I've seen is stuff validating the concept of 'change over time', which isn't evolution.
EnderX, where is your proof? Show me some real proof of creationism, not theory, not Bible quotes, but real proof. Show me something that only creationism, in the Biblical sense, could explain, and you'll have a case. I've researched the topic some, too...admittedly, I'm not an expert either...but I have never seen anything that justifies creationism. All I've seen is Bible-quoting believers claiming "the hand of God", which doesn't prove it happened.
And why does it have to be in the Darwinian sense? Can't it be an updated, more enlightened theory? Or do you want to just disprove Darwin, but not evolution? ;)
Martians are so cute!
Are there any suggestions for screwing his computer?
Yeah. Grow up. If you become mature, he won't find it so funny.
Face it- when it comes to governments, it is rarely safe to use logic when predicting what they may or may not do.
My favorite quote about governments:
"If governments were people, every dang one of them would be comitted"
Congress will adjurn in a few days for the holidays, and when it re-convenes in January it will be a new congress with the Democrats in contol. Then you will see that bill by John McCain die a quick death. It will be put on the bottom of the pile of bills never to see the light of day again.
Yeah, and watch how your take-home pay gets whittled down, too. :eek:
and I'd like to see him store that number in an integer:mrgreen:
You'd need a plugin module like BigfrickinNum from CodefrackingSpace.foo
Maybe this will be easier to read:
structure Moviedata // to my knowledge structure is not a keyword,
// change it to struct not structure and see
// what happens
int main()
{
structure Moviedata ; // this doesn't declare an object of type
// Moviedata but this would----Moviedata data; Note
// in C++ you don't use the keyword struct or class
// when decalaring an object of the type, you use
// struct/class only when declaring the struct/class
// itself.
cin.getline(movie.title,string movietitle); // 1) don't pass type
// names as arguments to functions.
// 2) this type of getline() takes a C style string
// as the first argument. Since you are using STL
// strings as member variables of the Moviedata
// struct you want the other type of getline
// anyway (see the type you use below). If you
// declare a variable of type Moviedata by the
// name of data then you could do something
// like this:
// getline(cin, data.movieTitle);
getline(cin, data.stringdirector); // 1)there is no object by the name
// of data declared that I can see, and
// 2) even if there was, there is no member variable
// called stringdirector in the struct Moviedata
getline(cin, data.int yearreleased); //again, 1) where is data declared
// as an object in your code.
// 2) don't pass the variable type name, just the
// variable name itself
getline(cin, data.runningtime); // correct getline syntax for STL
// string, but runningtime isn't a member variable …
in language C
Code that examine if the tree is full
Tree is full if each node have 2 child
i dont know how to write the code ?
somebody can help me ?
It seems to me a tree can never be full. The last node(s) will always have two free child positions, won't it?
they did. Did you hear about the massive raid in britain a month or 2 ago?
Then why is it still happening? ;)
*sigh*...
Welcome to the United States- The Land of Frightened Sheep.
Ain't that the truth. And they won't do anything to stop crap showing up in my emails, but they'll regulate a place I want to frequent. It's so sad.
Of course aliens exist.
1) Just look at the Cantina scene in Star Wars!
2) Lots of them work in fast food all over the city! Many are even illegal.
I haven't changed. I still look like me...
jump on a
I want to set a timer from a button click to run for ten minutes then go off, but can only get the timer in vb6 to run for 10000 milliseconds ! any help would be great.
I don't know why you can't go higher than 10000, I just loaded a timer with 60000 -- 1 minute. 70000 was too large.
Regardless, you can just count the number of times the timer kicks off, and when it gets to the 10-minute count, you're done.
Its OK to use Single Command Button,
but not OK to Check for StartTime = 0 .
As StartTime =0 means 12:00:00 AM.
What If the user clicks Stop At exactly that time?
Good point. I'm used to C where the time returns time from a specific date. I forgot VB's time is 24hrs.
Good solution checking the caption... :)
Well.. I'am not trying to Argue with the moderator, but trying to tell one of the rare possibilities.
You can correct any moderator when they are wrong. We're just as human as you. Well some mods are. There are a couple I'm not so sure about :confused:
hey guys i had a program using a function to form the plurals of English nouns according to the following rules and it just aint working any help would be great thnx
I don't see any rules here, just code that you claim doesn't work. And if it doesn't work, we can't really use it to understand the rules, can we?
You need to tell us what the problem is, don't make us guess. What is the program doing? What should it do instead?
Or with only one button:
Dim StartTime As Date
'
Private Sub cmdStart_Click()
if StartTime = 0 then
StartTime = Now
cmdStart.caption = "Stop Timer"
else
MsgBox DateDiff("s", StartTime, EndTime)
StartTime = 0
cmdStart.caption = "Start Timer"
end if
End Sub
If course you can store the difference in a variable and use it elsewhere, too.
Assembly language is probably the last language you will learn.
I'd recommend RPG II as the last languave you want to learn! :twisted: At least assembly is useful.
looked wickedly at
It can't.
OK, I made a misteak (sic). So sue me. You used a technique I wouldn't use and misread the code.
how should i modify my IF statement in order for the query to execute properly based on the conditions provided?..
You are using the wrong process.
1) Load the query string into the variable (the sprintf() part)
2) Execute the query using some database function. This you didn't do.
3) Now check the return from the database call with the IF
Star Wars never appealed to me, *Runs and Hides*
You'd better run!!!! Dani, we need to demote this guy! :twisted:
and the mage
heyi just wrote and comiled with Dev-C++
----
they said that its meant to come up with the message...but all it did was flash..i didnt see the message :(
is that meant to hpn?
That's because DevC opens a window to run the program, runs it, and when the program ends, closes the window. Change your code to this:
#include <stdio.h>
int main()
{
printf("This is output from my first program!\n");
getchar();
return 0;
}
Please use Code Tags, not colors. And please read this about using computer-speak.
need ur help regarding the above matter.
Please state the matter in the post. Don't use the title as part of your question. It's only meant to give us an idea about what we're about to read.
I've write a code for if statement but it didnt work as expected when I run the program.
I assume you mean the IF statments like:
if (sprintf(query2,
"select * from Register where MasterAccNo = 'NONE'")
== 0)[b];[/b]
What the sprintf() statement does is load the first parameter (query2) with the rest of the parameters and returns the number of characters loaded. Therefore, each and every IF will fail.
But notice the character at the end of the IF (in red), that will end the IF. Therefore the code block is executed because it's not part of the IF at all.
they can accomplish?
Nonsense, Yourself, is easy to start a sentence with
Maybe you could delete old ones? ;)
I was always facinated by the field of IT, so now i wish to make a career shift.
I wish to make a career as a software professional. Friends, kindly guide me on how to start? Which courses to join? etc.
I would look into some night courses initially -- intro to programming, intro to C/C++. If you like it then, look into an associate's degree.
Hmmm, well, I came up with this
int strLength = strlen(myArr)-1;
and then in the loopfor (int i = 0; i < strLength; i++)
but I see where you're coming from :oThanks for the example, I'll see that I can find an equivalent to use in my program next week-end.
I would reverse the -1 and go with: int strLength = strlen(myArr);
and for (int i = 0; i < strLength-1; i++)
The reason is strLength actually represents the string length, which you can modify in the loop. And you can still use strLength elsewhere in your program if the need arises. By subtracting 1 first, it's really only useful for this particular part of the program.
As a pagan (Wiccan) I celebrate the Sabbat of Yule on December 21.
So then why are you taking off on the 25th, per your moderator announcement?
1) Conformity
2) Too many to fight
3) Everyone else does...
:twisted:
((am I missing something? how do the last two posts relate to their previous posts?))
I'm reallllllly sorry ... it's me tinkering with stuff. I kinda sorta mighta been doing something that caused table locking issues and I couldn't get it to free the user table without restarting MySQL. Won't happen again. I promise!
You're dealing with computers! Don't make a promise you can't keep. They'll make a fool of you every time! :twisted:
Thanks for your feedback thoguh, very fruitful, you didn't have to take the efforts, next time I guess no need to ask, better live in ignorance!
Don't do that! I agree with you that if you've never come across a problem before you don't always know if there are hidden considerations. Many problems that look simple are really complex, especially if you're new to a field.
Why would anyone indulge in such mindless entertainment? Instead of bashing penguins for points.. you should be concentrating on how to SAVE penguins.
Gee, after stating that
The Discworld series is good with me, but my absolute favorites are the Discworld adventures of Tiffany in "The Wee Free Men" and "A Hat Full of Sky".
you can be judgemental about a cartoon penguin and mindless entertainment? Hmmmm ;)
I am Roman Catholic, but if it were my choice, we would celebrate Hanukkah and Christmas, because i am accepting of all religions... regardless of beliefs or disapprovals of my own church.
But what about buddhism, mithraism, druidism, paganism, LDS, bahai, etc. etc. Wouldn't you have to celebrate all of them to really be accepting? ;)
Man, yall are still raging on about this? Ha ha, Im out for three months and look what happens.
Because the above post is a full year and 1/2 old, I find
I agree, this is a bit of an unnecessary argument. I think the rules are fine as they are. You can't please everyone... this is a classic example.
to be hilarious :lol:
I wanna share with my friends but they dun have QBasic on thier comp. Ill put my programs on a floppy disc an give it to em but i cant figure out how to make them able to run without the actual QBasic program. It gets so frustrating! :evil:
There are a few Basic compilers available. From here I see FreeBasic and xBasic
Also found firstbas and GLBCC. Check here, too.
I've been using PowerBasic for years, but it must be purchased.
Google is very helpful ;)
If you try a few of these compilers, please post your reactions to them -- do they work well, do you have to make coding changes, stuff like that.
The short answer is: You can't.
The long answer is:
You can distribute QB along with the program, and use the command "qbasic /run program name"Also, if you have QB 4.5, you can compile it. Unfortunately, QB 4.5 isn't available for download legally (AFAIK) and cannot be purchased anywhere.
Sure you can, and I've found lots of stuff, like http://www.qbcafe.net and http://www.qbasic.com, as well as a lot of forums and sites dedicated to QBasic that I'm sure can point to more.
Space Invaders, Pacman, and Pong! The holy three!
Koalas are cool, too; they have such a tough life- hang out in tree, munch vegitation, sleep. Lather, rinse, repeat. :)
Not only that, they eat only eucalypus leaves -- which are highly alcoholic. They look that way because they're stoned!
a boob related
Anatomy of an error message:
OK, check your code. Definition for enterScores is: void calculateAverage(int *, const int, double &);
You call the function with calculateAverage(score, SIZE, averageScore);
The error states
gradedani.cpp:19: error: cannot convert `double*' to `int*' for argument `1' to `void enterScores(int*, int)'
Argument 1 -- might mean score. What type of variable is score? What type of variable is the function expecting for parameter 1 (see definition)? Is there a conflict?
...for spaces!
This is another thing where I beat the code into submission.
I just want someone to tell me if this is "good programming practice"-
or have i gone off on a tangent.
Is the use of the member access operator OK?All this program does is take a text file and strip the spaces out
I would do it almost like that, but not quite. I'd make the loop simpler, among other things:
// this will open a file , read all the characters
// and display only letters and punctuation
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
cout << "Enter a filename: ";
char filename[80];
cin >> filename;
ifstream file(filename);
if (!file)
{
//// cout << "File doesn't exist!" << endl;
cout << "File was not opened!" << endl; // could be a different reason
}
else
//// if (file) // you already know the file opened
{
char ch;
while (file.get(ch) != 0 )
{
if (ch !=' ')
{
cout << ch;
}
}
file.close();
}
return 0;
}
?" I just laughed.
IV will keep you alive in the hospital
I've been reading Discworld lately. Also, many of the Zanth novels (Piers Anthony) are wonderful for geeks -- very punny -- er -- funny!
I'm just about through with the Chronicles septet, two more to go. And the Wizard of Oz books are pretty neat. These can be downloaded from Project Gutenberg.