General C++ Programming - February 2013 (Page 17)

Stroustrup's GUI Interface Library Question
 
I am reading "Programming Principles and Practice Using C++" by Bjarne Stroustrup. I am currently on chapter 13. The chapter is about GUI programming, the purpo...
[4 replies] Last: Thanks again! (by benbalach)
Abstract Class and Virtual Function
 
I have this header file called Shape.h containing these function declarations. and a Shape.cpp which contains the body of the function. I am not showing it sinc...
[8 replies] Last: As for constructors then you could define them the following way ... (by vlad from moscow)
How do you test a compare function with a parameter that is a blank string?
 
Hi, I'm stuck on the last step of my lab. It is asking us to Modify your code by adding your own tests to see if your functions work right. Include at least ...
[2 replies] Last: Your function myStrCmp is invalid. It compares only first characters ... (by vlad from moscow)
Input issue
 
Hi guys, Working on a little stub program for a console rpg. However, I am new to the #include <Windows.h> header and it's causing me some issues. Here's th...
[2 replies] Last: Thanks whitenite1, it works splendidly after I initialize "collision".... (by toomanystars)
Developing a Desktop Application
 
I want to develop a Desktop application in which user can store the values in database and user can retrieve the values from database whenever he want. Is it...
[1 reply] : Is it possible in c++ Yes. Please let me know how to do it. You ... (by MiiNiPaa)
error messages
 
Hi Can someone help? #include <iostream> using namespace std; int main( ) { cout << "Hello world" >>; return 0;}
[15 replies] Last: it could if you explicitly tell your compiler that it is the c++ file.... (by MiiNiPaa)
by Phiru
I want to sort elements in vector
 
myData class has int id, char* name; And I push_back some myData class like this. myData *a1 = new MyData(0, "a1"); myVector.push_back(a1); myData *a2 =...
[3 replies] Last: solved it!! Thanks All!!! (by Phiru)
search the queue sizes in a vector
 
hello, i have a paradigm where a integer before gets enqueued to a queue, the loop of queues in a vector is searched and integer is enqueued to a queue which ha...
[13 replies] Last: @cire #include <vector> #include <queue> std::size_t min_index = 0;... (by Rahul kumar S)
by kohlh
accessing directorys with fstream
 
working on boiler plate stuff to access a directory and stick the files in a vector here is the code the problem is it won't except a file folder only files wit...
[no replies]
Debug Error When Deleting Dynamic Array
 
I get this error when I'm attempting to delete an array. I'm new to dynamic arrays, and from what I have learned, arrays must be deleted after use. I plan on us...
[3 replies] Last: Increasing size2 in your loop is not going to increase the amount of m... (by cire)
SMTP help
 
Guys I am trying To send a mail using C++ code i found from the net , when i compiled it it says In function `_Z13ChilkatSamplev': [Linke...
[3 replies] Last: The header files you are using that give you the functions and classes... (by ModShop)
conio.h
 
What functions are in this library? I want to make a ciphering program with this.
[2 replies] Last: I would suggest curses over conio any day of the week. (by closed account S6k9GNh0)
GCC Compiler Help!
 
I have use GCC a lot in the past, and it's practically the only compiler I use.. However, the library I am using it with right now is giving me a lot of troubl...
[4 replies] Last: In that case, all I can say is that the linker can't find the definiti... (by Peter87)
by EeAA
selection sort for nondecreasing order input
 
Question: What is the efficiency and big O of the selection sort algorithm when the input happens to already be in nondecreasing order? Answer: Not sure... ...
[2 replies] Last: You recall correctly. The big O of an algorithm is the upper bounds o... (by sysopfb)
Assignment Statements
 
I am suppose to write an Assignment statement for the following operation..... 1.) Stores the ASCII code for 'B' in e. I came up with e= char 66 Can so...
[1 reply] : You can directly assign the char to an int since you just want ASCII. (by sysopfb)
Warning : '<' signed/unsigned incompatibility error
 
Hi all! I'm really brand new to C++ and I'm currently learning it for fun. I'm working on prototype functions, and I got an error I can't figure out! I get an...
[3 replies] Last: Thanks to both of you! ☺ (by Anthony973)
by Skuzzi
Large numbers
 
How would I by any means print out the result of one number being added by two numbers 999999 times, the numbers both happen to be about 16500 digits long. It m...
[2 replies] Last: i would suggest using GMP http://gmplib.org/ (by K0T4K0t4)
Find the number of islands in a given matrix and area of every island
 
Dear, I am counting the number of islands in a given matrix and try to find the area of every island. http://en.wikipedia.org/wiki/Connect…raph_theory%29 ...
[no replies]
Basic Program Help
 
I'm at a loss, I can't for the life of me understand what this question is asking, and my assumption was that it wanted a series of numbers input and a function...
[5 replies] Last: Wow, thank you! I was stressing so much I think I get it now I don't k... (by Ursad0n)
Scripting
 
What is this? I have code::blocks 12.11 and there is a scripting console but I don't know how to use it.
[no replies]
February 2013 Pages: 1... 1516171819... 43
  Archived months: [jan2013] [mar2013]

This is an archived page. To post a new message, go to the current page.