General C++ Programming - March 2014 (Page 13)

Threads and pointers
 
Hi, In my code originally I did if (player != 0) { delete player ; player = 0; } This caused my program to crash because m...
[3 replies] Last: First you need to decide which one you want to use. http://www.cpluspl... (by giblit)
add digits
 
hi everyone , the following paragraph is a programming practice that i'm trying to solve but still not able to get it done : For a positive integer n, let f(n...
[6 replies] Last: Create a new thread and we can help you there. (by closed account 18hRX9L8)
Compiling Errors in Template Class
 
Hello, I need help in figuring out what my compiling errors mean, and what I should do to fix them: The following is my header & Implementation files. Note, th...
[5 replies] Last: naraku9333: Thank you so much!! after I included implementation at the... (by closed account S3TkoG1T)
word game C++
 
Please help. I have no idea how to even start this. So basically a human player will play this game against a computer player. HELP!!! The Game _ _ _ _ _ ...
[no replies]
Help with a project
 
I have a programming project that I have to work on and the way that my instructor is describing me to make this is completely screwed up every time I try it. H...
[1 reply] : If you can post the code you have for the do-while loop that's causing... (by wildblue)
by Kauto
Class/Constructor errors
 
# include <iostream> # include <cstring> #include <iomanip> #include <cmath> using namespace std; class Course ...
[2 replies] Last: Indentation fixed (by Kauto)
Openssl/applink.c
 
Hi, I am trying to run the file "applink.c" from the openssl package. I am doing this through codeblocks in C++, writting: extern "C" { #include <op...
[1 reply] : > The answer in the link is to add (void *) all over the place http://... (by ne555)
Big endian and little endian
 
Hi, My question is if you wrote a program such as #include <stdio.h> int main() { unsigned short a; a = 0xfff4; printf("%x", &a); } then compile...
[1 reply] : First, you have to fix the error: you cannot call printf with argument... (by Cubbi)
by lapoza
help with pointers
 
Hello all. i have been able to figure out how to capture incoming serial data and store it into an array for controlling functions. But I am now working ...
[1 reply] : I realize this is char and not integers. You need to send/receive the... (by kbw)
Considering an array a single integer, how to do mathematical operations on it?
 
here i have an assignment, creating a longInt class and using it to calculate large numbers, i dont have a clue how to manipulate a whole array as a single inet...
[7 replies] Last: Ack! I thought short and char were synonyms, woops. Bad post, sorry. (by newbieg)
by eastw
Read File,How to get rid of '/' seperator
 
Hi, How do I read a date from a file to determine different of days For example my date.txt contains: 1 23/01/2012 05/02/2012 Currently my code is: ...
[14 replies] Last: Thks for enlighten me ;-) (by eastw)
by tom26
Switch numbers between bases
 
Hello. I want to create a program that converts numbers between bases smaller than 10. My problem is converting from base 10 to base smaller then 10 - the nu...
[no replies]
Draw 2d grid with blank cells
 
Hi im trying to draw a 2d grid array for a battleships game. I need the grid to have a border around each cell does anyone know how to do this. so far my code i...
[4 replies] Last: I figured it out, I used the extended ASCII table to border each cell ... (by zaqplmby)
by auxny
My queen keeps overflowing!
 
I was assigned to convert a permutations code into an 8 queens chess code, I think i'm pretty much finished up but when I execute it, it continues to stack ove...
[no replies]
by Yedya
Question about an array of objects
 
So I'm doing a bank account project. I have 3 variables in my account class,but I want to hold all the acocunts in the array.How can I make an array of objec...
[no replies]
Nested class vector index access
 
Is it possible to pass the vector index '4' to the Height() function without passing it as a parameter of the function. Basically, I'm trying to eliminate usin...
[8 replies] Last: Thanks! I got it to work. :) (by HellfireXP)
Text File
 
I am practicing and I came across a simple programming exercise from the book I am studying from. The problem states: Three employees in a company are up for...
[2 replies] Last: When I compile it with the loop above, the .dat file is empty. (by Binarydude87)
Merge Sort and Linked Lists
 
I am getting an error trying to convert from nodeType<Type> to nodeType<Type>* in my recursiveSort function and I do not know why this is happening. Can anyone ...
[7 replies] Last: This was one of those errors that made me feel stupid. I had a meetin... (by yoked88)
Optimization of Mandelbrot Set Generator?
 
Hi all, I've got a quick question about creating a bitmap and the most efficient way to do it. I'm making a Mandelbrot Set generator, and right now I've got a ...
[no replies]
Code Error!
 
So, I began writing this code in Visual Basic and I wanted a simpler way to loop this. I might be over thinking here, but I did get an error and I just wanted s...
[2 replies] Last: Oh darn it! Thanks for letting me know. I changed it around to get it ... (by sierranm)
March 2014 Pages: 1... 1112131415... 36
  Archived months: [feb2014] [apr2014]

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