Beginners - January 2010 (Page 9)

a problem about whether a point is still safe.
 
int *pia=new int[ivec.size()]; int *tp=pia; tp =0; tp =1; delete pia; this is a part of an example from a book. after deleting pia, it will no ...
[9 replies] Last: so in my codes, st = 's'; means im trying to modify a constant str... (by hzesen1221)
Extract String from html file
 
string::copy --> method was useful but it was brief. How do i extract a word or phrase from html file and display on the screen? Do i need to use any special cl...
[2 replies] Last: Hi Bro, Thanks for the useful advice. Basically i need to extract data... (by greatsoulz)
trying connect 4 but having loop problems
 
Hi, I'm trying t his code out.... Will someone tell me why it isn't working? #include <iostream> #include <string> using namespace std; int knock = ...
[1 reply] : nvm i figured it out after i took a piss (by brokenbot)
Binary Search Tree
 
Hello. I'm trying to complete the code for BST ..I'm finding trouble with the delete function .. input :: integer process :: deletes the node containing ...
[4 replies] Last: #include<iostream> using namespace std; struct Tree { Tree *... (by Maimaje Bello Abdullahi)
Issue with Placement in Connect Four
 
Hi, I am new to C++ and am trying my hand at programming a Connect Four game. I've been trying my best to find what's gone wrong but after a good look I'v...
[6 replies] Last: Hi, I'm trying t his code out.... Will someone tell me why it isn't... (by brokenbot)
Big O notation
 
Hi, i have question find the worst case and average case performance of the following sorting algorithm. • Insertion sort • Merge sort thnaks
[2 replies] Last: Thanks for your post Helios. It really help (by Maimaje Bello Abdullahi)
0x61cf3000.
 
I'm not sure what I'm doing wrong with my program but it was running fine then right as the program should of finished i got this: Access violation reading loc...
[5 replies] Last: On line 132 you're not checking to see if x is greater then the boun... (by arrias)
Pointers in swap values
 
I would like to know how can the swapping function be implemented using pointers, void swap (int*, int*) //function prototypes void swap(int& a, int& b);...
[2 replies] Last: Thanks! (by makan007)
New to C++. I need a compiler.
 
I am 13 and really interested in computer programming. (Windows only) I am going to try learning the basics/intermediate level of C++. Can anyone recommend a F...
[6 replies] Last: I am a fan of Microsoft Visual myself, although I use the Professional... (by kevinkjt2000)
Please explain some concepts about Pointer & Class & Array Pointer
 
I read this code section from a tutorial, but I cannot understand it thoroughly. It is about Pointer & Class Pointer & Array Pointer. This is it: // poin...
[2 replies] Last: Hi blackcoder, In fact, I've read these tutorial already, but I can... (by chaienbungbu)
Visual C++ "Hello World" problem
 
I am trying to get started learning C++ but for some reason this doesn't work; #include <iostream> using namespace std; int main () { cout << "Hello ...
[14 replies] Last: You can also just use "Start Without Debugging" for now. It will aut... (by cnoeval)
Code boxes in Forum posts?
 
How to I get a code box that I often see in forum posts into a post?
[1 reply] : Click on the <> button at the right of the edit box http://www.cplu... (by Bazzy)
Header Files, Source Files, Resource files?
 
I am 13. Just started learning C++ (trying to at least..). I created a Win32 App that is 'empty'. How and where do I start writing code? Header Files Source ...
[3 replies] Last: http://www.youtube.com/watch?v=JlcPIjCTxLk&feature=PlayList&p=A68C1F33... (by blackcoder41)
Looping Grade Program Challenge: Will not loop properly
 
Hello, I have a problem with a C++ programming assignment that I need to get done by next Monday, and it's driving me crazy. The premise behind the program i...
[5 replies] Last: while(true) { cout << "\nPlease enter your numeric score: "; ... (by blackcoder41)
by cppbeg
hey ...
 
jhbk; k
[8 replies] Last: Well, the errors I see are quite simple. 10,11,81: You didn't decla... (by wasabi)
Callbacks
 
Hello I'm trying to figuring out how Callbacks (pointers to functions) work. I have the following problem (example): A class TMySerialReader reads the ser...
[6 replies] Last: If you have the boost libraries available to you, the best solution is... (by jsmith)
Tests on characters
 
I'm trying to use getchar to determine what to do in the program. So if I type in p in the program when it asks, I want it to run a certain statement block. ...
[6 replies] Last: No No. Please, I've said it in my previous post, it returns a sing... (by unoriginal)
Functions
 
are there any functions that: quit the program right there delete things that have been shown already in the program pause for a certain amount of time (not ...
[2 replies] Last: i suggest, on your free time that is, exploring the libraries. You mer... (by brokenbot)
Can't figure out what happened!
 
Hey guys, Well I ran this code a few days ago and it worked fine, I don't know what happened suddenly its giving me an error again. Well there are basically 3...
[9 replies] Last: @taikodragon : I can't seem to remember why I added "main.cc", maybe t... (by akshayk)
Solovay - Strassen primality test
 
I am trying to write a program that tests an odd number if it is prime using the Solovay - Strassen primality test (http://en.wikipedia.org/wiki/Solovay%E2%80%9...
[1 reply] : Hey, You could try seeding rand(). Also, if (x = 0 || pow(a... (by arrias)
January 2010 Pages: 1... 7891011... 24
  Archived months: [dec2009] [feb2010]

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