General C++ Programming - October 2011 (Page 27)

Finding and deleting an element from a vector of pointers?
 
vector<unsigned int> x; vector<unsigned int>::iterator itr; unsigned int varF; ... .... // find and delete an elemen...
[1 reply] : Since you are using a vector of pointers , you must delete the re... (by Duthomhas)
by Jyan
Taking in user input without them having to press enter
 
I'm working on a simple side scrolling game in C++ and as it is you enter a command to move ie)'w' which increments a position in an array, then hit 'a' which m...
[2 replies] Last: Whatever the graphics library you use, it will provide a way to get in... (by Duthomhas)
How to Approx Sine using nested for loops
 
Hello Users I need some help with my code: the Assignment was to : Write a program that prompts the user for two inputs in this order, a value for x, and a...
[2 replies] Last: Are you intending to use the Maclaurin series expansion to estimate si... (by nathan10)
Bidirectional map
 
Hello, recently I was in need of bidirectional map, but already solved the problem by using two simple maps. I'm just wondering are there any better solution f...
[no replies]
by Paul77
pjsip linker problem
 
Hi, I'm using Visual Studio 2005 express to build the freeware pjsip SIP stack. I've pointed the project include and library settings at C:Program Files...
[7 replies] Last: Have downloaded the Vista SDK 6.0 which is supposed to be okay for ... (by Paul77)
by HenriK
GLFW - How to do this?
 
Hi there, dear programmers! I just got into GLFW . Created a window, handled some input... basic stuff. However, now I'd like to limit my mouse inside the w...
[no replies]
OpenAL Samples or Tutorials
 
Does anyone know where I can find a short and simple sample for OpenAL in C++. Any sample or tutorial I have found is several years old or does not compile? All...
[no replies]
C++ Application
 
Hello, I'm making a basic console application that allows the user to create an animal species, create a pet of that species, then teach it tricks (that make t...
[5 replies] Last: It's nothing to do with it being a multidimensional array. It's becaus... (by Moschops)
by Modify
Finding part of the string followed by space
 
Hello, How can I actually find part of the string lets say: string abc ("1000 1111 11") I want to find number 11 and issue is that it will find number 11 i...
[2 replies] Last: Just because this project would make for good practice with using the ... (by Computergeek01)
(VC++ 6.0) What is the code of 'Compiler Option'?
 
Hello all! If I need a file called 'windows.h', I can input the codes: #include <windows.h> If I need a file called 'winmm.lib', I can input the codes:...
[4 replies] Last: Thank you all! Example: #define _MT #include <process.h> #pra... (by make026)
by T3l0z3
Multidimensional array creation function
 
Hello everyone, I have a question. I want to create a function which takes as an input a file, read it and creates a 2D array. Dimensions of the array are not ...
[1 reply] : 1. No, they are not protected and in large data sets it's perfectly re... (by Computergeek01)
by abu
2D plotting in c++
 
I am using VC++2010 express edition and I want to plot 2D curv (x vs y) and insert it in a tab window of windows GUI that I programmed. Anyone with some clue ho...
[2 replies] Last: Thanks (by abu)
C++ Different Text Colour
 
Hi everyone, I'm making a console app in C++ (MSVS 2010) and I was wondering how I could make different sentences or letters be a different colour all on one s...
[3 replies] Last: Thanks :D (by Muhasaresa)
error-type
 
Hi all.. I have the following header, the class "site" works in other classes, especially in main, but I was not able to compile because of the following errors...
[5 replies] Last: Thank you..!! :) You are a life saver.. :) (by tolklloyd)
assignment 1
 
hello'' can you help about my problem? our adviser gives a assignment , its going like this: create a programe that accepts a sentence and counts every l...
[2 replies] Last: first create a string for instance - string sentence; than input... (by Karajic)
copying and assigning Linked list
 
Hi everyone! I again appeal for the help of the community. I have an assignment to assign 10 integers to a silgly linked list FROM A FILE! than I have to cop...
[no replies]
Random Number Help.
 
Simple question, I'm making a Blackjack sorta game, where you can get negatives as well as positives. How would I get C++ to give me numbers -21 threw 21? Prefe...
[1 reply] : rand returns numbers in range [0..??]. You can map those numbers to a ... (by hamsterman)
by efigen
fibonacci void recursion
 
Hello im a student and this is homework so i just need help, thank you. My problem is with this fibonacci sequence, we need to write a recursive function that r...
[2 replies] Last: ah i finally got it problem was with my for loop that i used in my mai... (by efigen)
reading file
 
Hi, Im looking for a way to read a sentence into a string and take out each word as separate strings. I dont even know where to start coding this.
[2 replies] Last: well i was using fgets() to read the line. ur code is kind of confusin... (by sly oNe)
problem with libraries?
 
Hi all, Im learning to program in c++ using online lecture notes at http://www.doc.ic.ac.uk/~wjk/C++Intro/CourseStructure.html#S1. While attempting to com...
[2 replies] Last: It looks to me like you are not compiling properly. With multiple sou... (by Duthomhas)
October 2011 Pages: 1... 2526272829... 36
  Archived months: [sep2011] [nov2011]

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