General C++ Programming - August 2011 (Page 14)

by Chathu
Accessing Array Elements
 
What are ways to access array elements in C++ 1- Using pointers 2-Using Loops Any others methods u know?
[1 reply] : Look up any C++ tutorial. There's one here at this website. Check ou... (by webJose)
ASCII Game using multidimensional arrays
 
I am creating a game with ascii and the map shows up weird #include <iostream> #include <windows.h> using namespace std; main(){ int counter = 0; ...
[6 replies] Last: Thanks, I'm really tired and lazy to do it right now, but I will make ... (by closed account GbX36Up4)
How to use pointers in numerical methods?
 
The aim of this piece of code is to perform a numerical approximation of how the velocity vector of a particle changes over time when it's in a magnetic field. ...
[5 replies] Last: I want to know how to point to v0 original value at the same time I u... (by andywestken)
by duma
multitone wave
 
I have a program that generates a sine wave. I wanted to know how to generate a multitone wave with 2 frequencies using this program.What has to be changed? Any...
[no replies]
by Nelli
Display the middle char in an string please help
 
Ok this is what I got and the results determine if the string is odd or even but I need to DISPLAY the middle character if even and the middle two if odd how d...
[3 replies] Last: I can see an issue with your code, Nelli. line is uninitialized. Eac... (by closed account zb0S216C)
Check what programs are running?
 
How would you check what non-system based applications are running on a computer at any given moment? For example what would I need to get a list of applicatio...
[3 replies] Last: @chipp: I fixed the link on the post above. The parenthesis surroundi... (by vince1027)
by bkelly
std::map declaration problem
 
I am having a problem with the code that inserts an item into a map. I think it is really a decleration problem. I use typedef the set it up because the map i...
[7 replies] Last: You're most welcome bkelly! These pointer to pointer issues always se... (by kooth)
by Skagen
What LIB to use? Football manager-esque game
 
I plan to make a game similar to football manager. Lots of text, full-screen, no 3d or animations other than some dropdown windows and such. Which graphical lib...
[4 replies] Last: I don't know about Football Manager, but I do have the (free) demo ver... (by andywestken)
by fsshl
need help on compile error on invalid conversion
 
Dear c/g++ experts: at stage of make, while I install/build pathan1.2r2 I meet error about invalid conversion from 'XMLCH*' to 'short int' and initializing a...
[6 replies] Last: Thanks your help this problem is solved (by fsshl)
templates class and structure
 
This class is working fine when structure Node was embedded in the class but I want to work when the structure node is outside form class I am a newbie at tem...
[1 reply] : Node<Object> *head, *tail; (by ne555)
Password Masking
 
I wanted to mask a given string into '*' and use it in my project.please help.... Here is the program that I worked on till now... #include<stdio.h> #incl...
[2 replies] Last: I will give you the suggestions for the program, not the answer itself... (by Nisheeth)
If else statements *help~*
 
Our teacher gave us some freaking problem to be programmed.. I'm a first year student of a certain university looking for someone to write me the program of th...
[4 replies] Last: Will the following code work for you? #include <iostream> #incl... (by gaorozcoo)
by declan
Why are my compiled files so huge?
 
Hey everyone, At the end of each day I usually tar my files together and back up my work by emailing to to myself. I'm working on a relatively small project,...
[5 replies] Last: Ahhh, ok...I didn't know that I shouldn't pass headers to the makefile... (by declan)
Return of Bidimensional Array not work!
 
Hi everybody! I'm new in C++ and this language has some aspects for understand is a bit hard. One of these is the bidimensional array. I am trying to return o...
[2 replies] Last: Why dont you do something like this: Scenery env; char (*arrayE... (by gaorozcoo)
A typeid problem
 
Hello, I'd like to discuss a problem I've stumbled across today. You know the typeid operator in C++. I tried using it to determine the polymorphic type of an ...
[3 replies] Last: #include <iostream> #include <cstdio> #include <typeinfo> class MyCl... (by closed account 1vRz3TCk)
question
 
hi guys how can i compile my project with visual studio that i can run my program in other PC that they dont have visual studio or .net framework ? please te...
[7 replies] Last: well it may not work for you, I just thought it was worth a try. Mayb... (by closed account zwA4jE8b)
I need help
 
I have a very simple program that take two inputs from the user and depending on what the input is there is a response. Now it works well in the condole but I w...
[16 replies] Last: Ok to learn the windows application part of c++ i have picked out 2 bo... (by zaidhorse)
Pointer Questions
 
What would a line of code like this do? int *****************ptr;
[6 replies] Last: It could be 8 bytes on the stack (64 bit int) and I think there is ano... (by closed account 1vRz3TCk)
Swap() methods
 
What is the difference between these two swap() methods: 1. void swap(int **a, int **b) { int *temp; temp = *a; *a = *b; *b = temp; ...
[4 replies] Last: #include <iostream> void swap1(int **a,int **b){ int *temp; ... (by helios)
Getting the location of the cursor in the console
 
I had been having a look on the console functions in Windows.h header in the documentation in the MSDN site. I tried using the FillConsoleOutputAttribute() ...
[4 replies] Last: Thanks for clearing that up! (by Nisheeth)
August 2011 Pages: 1... 1213141516... 29
  Archived months: [jul2011] [sep2011]

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