General C++ Programming - November 2011 (Page 16)

How do I clear a 2D or 3D array fast without loops ?
 
Hello all! I can clear a 1D array fast like this: char a = ""; int b = {0}; But I don't know how to clear a 2D or 3D array fast without loops: (I...
[3 replies] Last: Thank you, Moschops!!! Thank you, andywestken!!! (by make026)
Chinese string to hex values
 
Hi, I want to display the hex values for a string of chinese characters in the console. I'm using visual studio 2010 c++ in windows 7. So far I have ma...
[2 replies] Last: Thanks a lot Cubbi! That's exactly what I wanted. Thanks for your he... (by ahoysailor)
Creating an X in the Terminal
 
Hello, I can only get part of the X to show up in the terminal. It is supposed to look like this: * * * * * * * * * * * * * Can ...
[2 replies] Last: Thank you Andy from your suggestions I was able to figure out the rest... (by samantham)
Using double pointer for create random matrix
 
Hello, could you please help me explain few steps from part of my program? At first I am new here and beginner in c++ programing (I used to create programs in...
[14 replies] Last: thank you very much (by mudrnudl)
Creating a sort of typing program (HELP)
 
Guys please help me creating a program that would set a timer for the user to type the displayed statement. If the user succeeds in typing it under the given t...
[4 replies] Last: Once you've got some code and have worked with it for a while, come he... (by Zhuge)
by bbh84
two parallel one-dimensional arrays
 
I need help programming this exercise. store maximum order amounts in one dimensional int array. shipping charge amounts in parallel one dimensional int array. ...
[1 reply] : Where exactly do you need help? We don't solve homeworks here. If yo... (by webJose)
dynamic memory allocation with structure
 
#include<iostream> using namespace std; struct mc2 { public: int seq; double fitnes; }; int main(){ mc2 *pros_tim,*chrom,job; cin>>j...
[1 reply] : 1. Don't make us guess. What's the question? Error messages? Show ... (by webJose)
Polymorphism and Dynamic Binding
 
I am trying to write a program in which a function can take objects of different classes with common parents. Depending on which class it belongs to, the functi...
[6 replies] Last: I am wondering whether I should have posted the file I am trying to wo... (by Wildebai)
by Chathu
What Projects Can Be Done
 
Hi guys What kind of projects can be done using c++ language. This is for my Final year project in University.I like to do a game using c++ but I'm didn't dec...
[9 replies] Last: I'm gonna do it. thanks for all the ideas (by Chathu)
prog to display name in alphabetical order.
 
hi guys! need some help here on c++ using for loop program need to take string input (name) from user and compare it. let say i enter 4 student "John", "Peter...
[no replies]
Constructor/destructor class
 
Im having trouble writing the code for a class box. I keep getting an error that says overloaded member function not found in 'BOX'. Im not sure what exactly it...
[2 replies] Last: Thanks fun2code, guess i got a little carried away. Thanks a bunch. (by robdog4)
Programming for Hash table
 
Write two different implementations of a hash table for strings (your choice of C char * or C++ string class). One implementation should use chaining to handle ...
[no replies]
I need help with that program please
 
That's the instruction, ARE MY CODES COMPLETE? A tires shop needs you to create a program to track its current customers who are getting a service done to ...
[2 replies] Last: IF NOT CAN YOU HELP PLEASE? (by molus87)
Help with Logic/Syntax
 
OK, I am writing a code that deals with American Football and the down and distance. What I want it the computer to do simple calculations of the down and dista...
[no replies]
by bbh84
C++ random integers
 
I could use some help with a c++ program that has to display six unique random integers for a lottery game. the random integers have to from 1 through 54. I don...
[5 replies] Last: How about a loop? (by Athar)
Undefined symbols for architecture x86_64
 
I am trying to write a program that can simulate a flowchart. A flowchart is made of "cells", which are connected by "yes"/"no". I divide cells into to types ...
[4 replies] Last: Thanks, that worked. I simply removed Cell::Cell() (I didn't need it) ... (by Wildebai)
Writing a program to test your answer out
 
First time poster, not sure if this is the right site to ask this question: So, on one of our exercise questions I've come acrossed this question. I was wonder...
[1 reply] : Also looking one with array questions with UML First, assume a cal... (by corknutz69)
Segmentation fault
 
Why might I be getting the first line of my cout (Index Value) and then the message Segmentation fault? The file I am accessing reads out just fine. Thanks ...
[2 replies] Last: Ah yes! Thanks ..I got rid of const int num, and its assignment, and c... (by allenm3)
help me with password verifier in C++, please
 
Hi, this program verify password inputs. The password should contain at least a lowercase and an upper case letter and a number. But my code has bugs. It sti...
[3 replies] Last: You are testing the wrong way. For example, here is your verifyUpper ... (by Duthomhas)
matrix linear regression
 
I am trying to come up with a program that will read a txt.file containing a matrix and use linear regresion to create a cline based on the data read from the m...
[2 replies] Last: well i mean, if you already have a project created i wouldnt object in... (by william singer)
November 2011 Pages: 1... 1415161718... 47
  Archived months: [oct2011] [dec2011]

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