General C++ Programming - October 2011 (Page 32)

by Cajit
track k largest numbers
 
Please help me write a constructor in a separate LargestK.cpp file..I have written have included LargestK01.h and maindriver.cpp file. I have written a progr...
[no replies]
Include nulls in buffer
 
I am having trouble putting together a buffer to send over a network socket that includes nulls. Basically what I want to do is: char* buffer = argv + argv...
[6 replies] Last: That worked perfectly Galik. Thank you. (by Pascal6662)
Data Filter
 
So, I'm currently enrolled in a C++ class and our homework assignment is to make a program that filters out and counters the integers from a file and prints eve...
[3 replies] Last: ESE 224? (by jonpwn)
Need Templates help urgent
 
I have a homework in which I need to look for a node in 1 of the many trees I had to program, using pre-order using a function template. My code is: class ...
[3 replies] Last: Thank you very much :) , tried template< class Tree > typename Tree:... (by JoshuaUCR)
Help with a horse racing sim?
 
I am a pretty new C++ developer and I am working on a text-based horse racing sim where the user puts in the acceleration, endurance, and speed of six horses. I...
[15 replies] Last: Besides jockey, the distance of the run, the ground condition, weather... (by sohguanh)
by Zaed
Help with SDL Map Generator
 
I'm trying to create a random map generator (or at least, pseudo-random) using the SDL library. Every time I run the program I just get a black screen, but no e...
[no replies]
Comparing 2 text documents
 
I am currently having issues comparing two text documents. I am capable of writing it myself however I can not figure out how to go about the different line len...
[3 replies] Last: okay... so.... what's the problem? To clarify: what do you need help... (by Disch)
typedef in included header file
 
Hi guys I have defined some types using typedef in a headerfile, but when I include that header file in an other one, I have to typedef them again. They are ...
[1 reply] : Post the header file, along with the line that causes the error. Wa... (by closed account zb0S216C)
How to clear the screen and then display a menu?
 
In my class of C++, we haven't gone over how to clear the screen. And how and what do you to display a menu?
[4 replies] Last: No, do not use system("cls"). Read the link. (by Duthomhas)
Why is this illegal, all are addresses
 
people say vector<string> **pv=new vector<string> is illegal. But why? the left side defined pv as an pointer which point to a pointer which point...
[3 replies] Last: [quote=northfly] vector<string> **pv=new vector<string> (sic) Here'... (by closed account zb0S216C)
by buggys
massive problem every program that i run
 
I'm getting a constant error every time i try a new piece of code when i'm testing if a plugin works. I've been trying to get SQL to work getting the same error...
[4 replies] Last: okey, ill have a look and hopefully find somthing >< (by buggys)
Question on Pointers
 
#include <iostream> #include <string> #include <stdlib.h> using namespace std; void Paranoid(string *realmessage) { (*realmessage) = '1'; re...
[1 reply] : realmessage is a pointer to string, so *realmessage is the string it p... (by hamsterman)
Calculating the "speedFine" variable
 
This is the class declaration for FineCalculator ( int courtFee), I am attempting to calculate a speeding fine using the member function getFine( zone, speedLim...
[4 replies] Last: like Gaminic(176) said use an if loop to check if zone is not equal to... (by shekhartanwar)
The last three teams
 
Hello friends :). I have a problem with a C + + program. I have the structure and array. Structure is: struct otbor { char imenaotbora ; int vgolove; in...
[3 replies] Last: Code for this output can not write. Here is the entire program code, w... (by Krasimir Ivanov)
sdl, loading and displaying pictures?
 
i have managed to initialize a program and such in sdl, but i cant seem to find out how to load and display a picture to the screen. this is my code so far:...
[5 replies] Last: haha, thanks for taking the time to answer :D i managed to find the pr... (by even821)
sdl loadiing image failing?
 
earlier today i posted a thread fabout my sdl program. i couldnt seem to load any images, so i made a modification to the code to check if the program couldnt f...
[1 reply] : There's no reason to make another thread -- I just answered you in you... (by Disch)
design problem.
 
hello guys anyone can help me to give me a link on how to draw some thing in c++ and put some basic animation on it. thxs..
[1 reply] : http://www.sfml-dev.org/ (by Athar)
by MICK
Project
 
Hi I want to make a radio streamer, which basically do the following things, 1)establish connection over HTTP with shoutcast and fetch main page 2)Parse main...
[no replies]
Trying to make a program for my fiancee's birthday.
 
Hello, I came up with a wonderful and funny idea for a joke program for my fiancee's birthday. Now I only know basic C++ programming...Like I mean BASIC C++ pro...
[3 replies] Last: A non-intrusive way would be to check the list of running processes on... (by Athar)
sdl for more than game develpoment?
 
could i use sdl to develop other types of programs like for instance a calculator or a web browser, or is it only used for game deveopment? sorry for the noob...
[2 replies] Last: ok, thats kind of what i expected to hear. (by even821)
October 2011 Pages: 1... 3031323334... 36
  Archived months: [sep2011] [nov2011]

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