Beginners - June 2010 (Page 13)

Easier way to write a switch or if statement
 
This is a Homework assignment, so I do not want the answer just a hint in the right direction. I am trying to write a code using if or switch statements that wi...
[9 replies] Last: yes, that is a nice switch statement. exactly correct. A+ (by bigearsbilly)
Finding the second maximum value in an array..
 
Hello, The output of the required program : ***************************************************************** Enter the size of the array(max=100): 10 Enter...
[17 replies] Last: Thanks for all! and this is not for my homework I finished the semes... (by General)
Class Related Errors Compiling Multiple Files
 
That title is probably not as helpful as it should be as I am not entirely sure what the issue is, what's causing it, or how to interpret the errors I'm receivi...
[2 replies] Last: Thank you for the quick reply! I see why I needed that and I just c... (by VigilPrime)
Catching packets
 
Can anyone explain to me how to do this, I am trying to learn how to catch a packet, and analyze it, thanks in advance.
[1 reply] : What libraries are you using? Because you almost certainly need a non-... (by Albatross)
by human
multi-dimension array not working
 
Thank you, human #include <iostream> #include <string> using namespace std; int main() { const int numItems = 5; int arr1 ; int arr2 ; for ...
[4 replies] Last: Try cout << (i+1) * (j+1) << " "; (by m4ster r0shi)
combinations
 
I have a problem for generating combinations for entered ammount of numbers. for example without getting the entered ammount the loop would look like for (...
[14 replies] Last: Nice... I see you didn't use boost at all... GJ boost-boy! :D (by m4ster r0shi)
set<>.insert() -> std::bad_alloc, but only in debugger???
 
Hi, I just started c++ after 10 years again. Seems like I have to learn from scratch. I've written a small genetic algorithm which now seems to run (debug &...
[1 reply] : Can you show some code? Duplicate with a small example if possible an... (by kempofighter)
by mattew
program in c++ [Urgent]
 
HI, i have a great problem. i must resolve this problem but i don't know how i can make it. Question : Write a function that given a number expressed in any...
[1 reply] : Most people on this forum won't answer homework questions for you at t... (by sammy34)
undefined reference in void btree::insertion(int)
 
#include<iostream> using namespace std; struct node { int data; node* l; node* r; }; class btree { private: ...
[1 reply] : change void insertion(node* root, int i){...} to void btree::insert... (by spaggy)
Programming Project
 
I need a little assistance on how to do this. This whole project must emulate the idea of encapsulation, inheritance and polymorphism. If anyone has an idea on ...
[3 replies] Last: Well, here is what I have so far. I know that there are blanks and wha... (by damatte0924)
by Gunzo
problem with clock()
 
Really simple program... #include <stdio.h> #include <time.h> int main() { double elapsed=0; while(elapsed <= 10){ elapsed = clock()/(double)CLO...
[2 replies] Last: Here is a version that only writes to the console once per second, rat... (by Galik)
heap corruction after "[] delete"
 
#include "stdafx.h" #include <iostream> #include "BinarySearchTree.h" using namespace std; // Test program template <class T> class storage { pub...
[6 replies] Last: Got it! Thank you both very much! (by jeffreybalala)
os development
 
hello, i started os development and i also get a tutorial on http://www.brokenthorn.com/Resources/OSDevIndex.html but the code is very difficult can you expla...
[5 replies] Last: There is no point dabbling with OS development before you are an exper... (by Athar)
Trouble with generating random numbers??
 
Hi everyone, I just started experimenting with C++ a few weeks ago due to a class I'm enrolled in for school. Needless to say I'm very new to programming and ha...
[11 replies] Last: I think I got it now. Thanks guys, my computer lives to fight another ... (by Jason2132)
elimination!
 
hello, I want to create app that will eliminate some letter if condition is met. And I have this code which eliminates 'D' or 'd' characters, but at output i ju...
[9 replies] Last: excellent solution too. btw this wasnt college assignment. I was goin... (by dynamic cast)
how to start a program on start up
 
I am new to programming and have just created a program that I am happy with. However I need help with knowing how to make it run when I bring up my main page r...
[4 replies] Last: For Windows just drag and drop your executable into the startup folder... (by cnoeval)
Hash Table - Multiple pointers
 
Hey, I'm programming some sort of hash table using a double pointer to linked lists. The relevant code: class Node{ private: std::string word; int f...
[2 replies] Last: lines 28/33. delete without a new. (by PanGalactic)
by Gio
Error with forwards declaration of classes
 
I am writing a Roguelike game and am having trouble with the header files Monster.h and player.h. Both rely on the other so I am using forwards declaration. How...
[1 reply] : You may need to put your function definitions into separate .cpp files... (by Galik)
by everid
g++ , vc2008, optimizer turn on
 
hi masters, i'm reading inside the c++ object model, in chapter 3, it mentions things such like "turn on the compiler optimizer". is there a "switch" such t...
[2 replies] Last: Clone Thread: http://cplusplus.com/forum/general/25062/ For GNU, t... (by Albatross)
[socket programming] Post data error 411: Length required
 
hey i'm trying to send a post data with the following code int main() { try { SocketClient s("www.site.com", 80); string data = "par1=value...
[5 replies] Last: Actually, thinking about it SendLine() probably sends the line breaks ... (by Galik)
June 2010 Pages: 1... 1112131415... 26
  Archived months: [may2010] [jul2010]

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