General C++ Programming - November 2010 (Page 19)

Classes
 
Hey guys, i'm having the biggest problem completing my worksheet. Its about classes.. Please help me...
[14 replies] Last: Thanx guys (y) (by tambrwn)
24 hour clock issue.
 
I am writing a program that gives you 4 options of different cities. When a city is selected, you enter the current time from your location ( which happens to b...
[2 replies] Last: could you elaborate more. how and what step would i add 24 hours, i as... (by Rumbolt24)
removing structures via pointers
 
I'm supposed to write a remove() function to take out some data, however, it seems none of the info is being saved anyways, as when I try to print out all of th...
[2 replies] Last: So it turns out I made a stupid error (line 76). Sorry for wasting eve... (by Omgimapencil)
Var. not difine
 
/* have the user enter a number (number output has to be number!) for number = start and 0 = end number-- answer = number*number output number! = answer */...
[2 replies] Last: Well, one error is for(int i = number; i = 0; i--) . It's supposed t... (by hamsterman)
boost.asio - change buffer size in HTTP Client example
 
Hi! There's example HTTP Client at http://www.boost.org/doc/libs/1_39_0/doc/html/boost_asio/example/http/client/async_client.cpp Please help me to change max...
[no replies]
C++ printing out all the elements in the list in sorted sequence?
 
Implement a class SortedList as defined by the following skeleton: #define MAX_ITEMS 10 typedef float ItemType; class SortedList { private: int lengt...
[no replies]
by Kiana
Accessing private members of base functions
 
class Girl { private: int Age; }; class Kiana : public Girl { public: // The following line gives me an error int GetAge() { return ...
[3 replies] Last: I see, thanks! (by Kiana)
Convert System::String to unsigned Char Array
 
I have looked at many fourms and found many theories on the conversion from marshal strings to pointer but no actual working code example. What I need to do is...
[no replies]
C++ program for class troubles
 
#include <iostream> using namespace std; int main() { class Student { private: int Id; int FinalGrade; float Grade ; public...
[no replies]
How do I use 2 template parameters?
 
Hello everyone, I would like to know how I can use two template parameters at once. My template-class looks something like this: Header: template <cla...
[13 replies] Last: thanks ^^ (by Squall83)
by kratos
placing an unknown int size into a dyanmic array
 
How do I take an integer of unknown size and store each integer (0-9) in a dynamic array. I know how to take a sing int (0-9) and turn it into a char, but if I ...
[4 replies] Last: It sounds like you are being asked to write your own version of the s... (by Duthomhas)
General C++ question envolving inputs
 
Im new to C++ programming (im currently taking a C++ programming class at my university) and i was wondering if someone can point me in the direction on how to ...
[3 replies] Last: You need to google around "C++ serial port". Both C and C++ are not... (by Duthomhas)
by sjeps
Multiple variables inline compare
 
I'd like to do something like this if(a==b==c==d==e){ ... } Of course this won't work, i'd like to know if there some easy way to do that without do...
[3 replies] Last: #include <boost/tuple/tuple_comparison.hpp> if( boost::tie( a, b... (by jsmith)
Read last line from data file
 
I have this code to read the last line of a data file: #include <stdlib.h> #include <iostream> #include <fstream> #include <string> #include <stdio.h> ...
[1 reply] : How did you compile the g++ version? Is it a Cygwin or a native Windo... (by kbw)
undefined reference to 'isPrime()'
 
I dont know whats wrong with my code. Basically I need to write a boolean function which take an interger as an arguement and returns true if the arguement is a...
[5 replies] Last: @vsaurabh2: We don't just give solutions to homework assignments. ... (by jsmith)
C++ trouble with a sorted list program?
 
Implement a class SortedList as defined by the following skeleton: #define MAX_ITEMS 10 typedef float ItemType; class SortedList { private:...
[3 replies] Last: x.comparedTo(values ) What is comparedTo? the basic types are not ob... (by ne555)
How to display all of my prime numbers in this bool function
 
Well so far I managed to show an output but only from the 'main' functions. I have placed the function call for the bool function but it doesnt show when i run ...
[5 replies] Last: It needs to display all prime numbers down between 1 to 100 (by bqui5449)
To make a windows application a Service
 
I am working on a WIN32 application which contains simple gui. Is it possible to convert it into a service base application or i need to remove the gui. ...
[3 replies] Last: A service should be a server in the traditional sense. If you need to... (by kbw)
by Nobun
GDB Debugging problems
 
I had some problems while trying to debug a program. To be simply: the dubugger shows me wrong infos (some pointers will be displayed with wrong type). I tr...
[no replies]
Weather Program
 
I included my original code down below....Basically I need some input on where to start off. From what I can tell it seems that I will need to re-organize the ...
[1 reply] : Here is what I have done in the past hour. I want to eventually pass i... (by raider94063)
November 2010 Pages: 1... 1718192021
  Archived months: [oct2010] [dec2010]

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