-
Replied To a Post in Problem with linking library
You might have that problem if the library was built a C code and your program is attempting to call it's functions as C++ code. If that is the case … -
Replied To a Post in How is the weather today in your country?
Great day :) Got up to 86F (30C), so I turned on the air conditioning a few minutes ago. -
Replied To a Post in C++ program I am having problems with dealing with overloading operators
Test it and find out whether it is right or not, that's how all software programming works. -
Replied To a Post in Why isn't this array working?
by shift do you mean capital letters? if not, then I don't know what you mean by that. If you must use typedef, then this is how to do it: … -
Replied To a Post in C++ program I am having problems with dealing with overloading operators
in this case the **this** pointer is optional -- I like to add it so that it is very clear that savingBalance is a member of the class and not … -
Replied To a Post in C++ program I am having problems with dealing with overloading operators
It's just a simple inline method, or you can put the implementation code in the \*.cpp file if you wish. class SavingsAccount { public: friend ofstream& operator<<(ofstream& out, SavingsAccount& obj); … -
Replied To a Post in Why isn't this array working?
remove the word **typedef**. I hope you realize that will create a non-null-terminated array of characters. You can't pass it to any of the functions in string.h. A better and … -
Gave Reputation to Labdabeta in [Error] name lookup of 'n' changed for ISO 'for' scoping [-fpermissive]
This is one of those sneaky bugs. Basically it is telling you that if you declare a variable in the for loop, it only lasts as long as the for … -
Replied To a Post in Bad Grammar
It's probably a reagional thing -- no one in my part of the planet says "three-fold". -
Replied To a Post in Is the TAB going to replace the laptop ?
I bought my grandaughter a Surface for college about 6-8 months ago -- it's a tablet at more than laptop prices. -
Replied To a Post in Bad Grammar
[Oxford dictionary](http://www.oxfordlearnersdictionaries.com/us/definition/english/cheap_1): cheaper just means it costs less mony than something else. See "cheaper by the dozen". -
Replied To a Post in How is the weather today in your country?
Started out rainy but the clods moved away, the sun shined and it warmed up a lot. Grass is green now and growing fast. -
Replied To a Post in what do you prefere for naming: database - c++ - java - php?
I agree -- I like to capitalize SQL reserved words and make everything else lower-case or a mixture of upper/lower case. That makes reserved words stand out. -
Replied To a Post in Need Help Finding Error In Select Sort Routine
On today's fast computers, probably not at all, or at least not enough to be measurable. If you are using a really old and slow computer you can profile it … -
Replied To a Post in Classes and Header
The only time I've seen it make any real difference is when the class object is a reference, in that case you have to initialize it the way you showed. -
Replied To a Post in Classes and Header
>Do I need a header file and a .cpp file both to use a custom defined class? Depends on the how complex the class is. In the simplest case the … -
Replied To a Post in Need Help Finding Error In Select Sort Routine
Yes, for loop control one-letter variable names are ok, for example common ones are i, j, k, and m. -
Replied To a Post in Why does Windows XP refuse to die?
>Microsoft has already Updates available to bring back common features to the Millions of Users relying on a 'familiar' SCREEN for their Win 8+ Version You mean the windows 8 … -
Replied To a Post in Need Help Finding Error In Select Sort Routine
Here ([click here](http://cforbeginners.com/ssort.html)) is a working select sort void selectSort(char* arr, int n) { //pos_min is short for position of min int pos_min, temp; for (int i = 0; i … -
Replied To a Post in Need Help Finding Error In Select Sort Routine
> for (rintIndex = rintLoopCount; rintIndex < intCount -1; rintIndex++) That loop on line 29 is incorrect. don't subtract 1 from intCount `for (rintIndex = rintLoopCount; rintIndex < intCount; rintIndex++)` … -
Replied To a Post in Need Help Finding Error In Select Sort Routine
Do you mean selection sort algorithm? There are lots of sorting algorithms, some better than others. -
Replied To a Post in Need Help Finding Error In Select Sort Routine
Pogramming books, especially older ones, sometimes contain errors. Go the the publisher's web site and see if it has free download of the source code in the book which will … -
Replied To a Post in Need Help Finding Error In Select Sort Routine
Where did you get that algorithm? [Here'](http://cforbeginners.com/ssort.html)s another for you to study. -
Replied To a Post in what do you prefere for naming: database - c++ - java - php?
depends on data type sUserName -- string iUserID -- integer I don't write php or java, just c and c++. -
Replied To a Post in java
Is that supposed to be written in java or c++? There is a java form for such questions. In either event, no one here will do your homework for you. … -
Replied To a Post in Question About Borland Turbo C 2.01 IDE
That explains a great deal :) You are using Turbo C because you are a hobyist, not a student who is forced to use it by his/her university. Sorry, but … -
Replied To a Post in C++ frequency of number in an array
>include (iostream) --- wont let me do the less than sign It should be like this: `#include <iostream>` Post the code you have written so that we can help you … -
Replied To a Post in What works with XP that doesn't with 7
>Lexmark all in one printer that doesn't work in Window 7. Is it an old printer you had laying about the house, or a new one? Did you try to … -
Replied To a Post in C++ programming assignment for class that I am confused on
I'm not going to write your whole assignment for you. Doesn't your book cover operator overloading? There are lots of online tutorials, such as [this one](http://courses.cms.caltech.edu/cs11/material/cpp/donnie/cpp-ops.html). Don't worry about step … -
Replied To a Post in two dimensional array @ run time
>first line is pointer to an array of 5 integers Those are char pointers, not integers. The first line declares an array of unknown number of pointers, each pointer points … -
Replied To a Post in C++ programming assignment for class that I am confused on
Use a friend method to overload those operators, for example #include <iostream> #include <fstream> using namespace std; class SavingsAccount { public: friend ofstream& operator<<(ofstream& out, SavingsAccount& obj); public: string firstName; … -
Replied To a Post in What works with XP that doesn't with 7
The only program I miss from XP is the original version of [Diablo RPG](http://en.wikipedia.org/wiki/Diablo_(series)). There are several MS-DOS games I liked. Otherwise, I don't miss a thing from XP. -
Replied To a Post in Creating your own char **argv
Another way to do it is to call strdup() and you can delete the strcpy() line. `argv[i] = strdup(temp);` -
Gave Reputation to Banfa in Creating your own char **argv
Line 11 `argv[i] = malloc(sizeof(temp));` or the modified form `argv[i] = malloc(sizeof(temp+1));` does not allocate enough memory. temp is a `char*` and has a fixed size 4 bytes (or maybe … -
Replied To a Post in initialization of 'levelOne' is skipped by 'case' label
objects can't be declared in case statements without { and }, for example: switch(choice) { case 1: { ifstream levelOne; levelOne.open("level1.txt"); } break; That also means that the stream will … -
Replied To a Post in Creating your own char **argv
Please re-read my previous post for additional problems. -
Replied To a Post in Creating your own char **argv
To be similar to argv in main argument you need to allocate one more than count pointers, the last pointer is NULL. That will also let you pass argv to … -
Replied To a Post in Dog Ears
He's talking about animals, not people. Very vew people have helth insurance for their pets. -
Replied To a Post in Sortlist not sorting
line 66 is wrong. Check it with my previous post. -
Replied To a Post in Sortlist not sorting
The problem appears to be in this function `ListNode *LinkedList::insert(ListNode *item, ListNode *sortedList)` That function is destroying the original list. It should be inserting item into SortedList and returning SortedList. … -
Replied To a Post in computer sciences
Good. Now get a college bachelor's degree and you will be on your way. -
Replied To a Post in What all IDE's can I use with C#?
vb is not an ide but a programming language, just like C# is a programming language. Probably the best IDE is Visual Studio. The Express version is free. -
Replied To a Post in code problem
The metod that starts on line 92 is a copy constructure, which means you have to create a copy of the contents of the parameter. In this case you have … -
Replied To a Post in Database connectitvity
after the last valid character in the string. See [this post](http://www.daniweb.com/software-development/c/threads/471798/database-connectitvity/2#post2078010) I made a week ago that told you how. -
Replied To a Post in Result Of Student
should be 90, 90 and 80. What did you get when you ran the program? -
Replied To a Post in console
what compiler are you using? Turbo C has a goto() function that moves the cursor somewhere then you would just print spaces. If you are using a more modern compiler … -
Replied To a Post in How is the weather today in your country?
I'd get different insurance. Or was it that you were not covered for flood and hail damage? In that case you might consider expanding the coverage you have. My town … -
Replied To a Post in how to use if else statement in charecter type array(string)
For char arrays you can use strcmp() which is defined in string.h to check if the two character arrays are the same or not. strcmp() returns 0 if the two … -
Replied To a Post in Result Of Student
Yes, I think I do understand the problem, maybe you don't understand the solution. #include<iostream> using namespace std; int main() { int a[10] = { 5, 2, 10, 25, 4, … -
Replied To a Post in Problem with - Put up a list
probably very similar to the way you looped through them in the print function. Instead of printing, just call Add() method. I can't give you actual code because I have …
The End.