Beginners - May 2013 (Page 46)

by Deduu
dynamic allocation memory
 
Hi, I'm trying to implement pointer instead of using stack memory. My program works well using stack memory, but as my program grows, I need to use heap memory ...
[9 replies] Last: [quote=Deduu]" absolutely yes. ^^ " ...then your problem isn't within... (by closed account zb0S216C)
How do I turn this program from a structure to a class?
 
main.cpp #include <iostream> #include "datestruct.h" using namespace std; int main() { int year = 0; int month = 0; int day = 0; ...
[7 replies] Last: Partly correct. A constructor is needed when you need to initialize a ... (by nedo)
Finding letters in a vector of strings
 
hi i need to find repeating letters in a string of vectors. what am i do wrong here i am getting the memory address (some random number) but not like the number...
[2 replies] Last: 1. The string iterator will process the string on a per-element basis ... (by andywestken)
c++ on google play
 
Hello programmers! I'm new to c++. I know a bit of python(read 2 book tutorials) ,but beside that i'm pretty much new to programming. Someday i would like to m...
[1 reply] : Most of the programing done for Android is done in Java. You would be ... (by JockX)
by mrm40
34.5 => 34 round
 
Hi, in matlab there are functions that round integers, im using visual studio 2010 c++, functions in matlab are: ceil(34.5) // result is 35; floor(34.5...
[3 replies] Last: ... (by MiiNiPaa)
I want to make a console game but need a better way to clear
 
http://www.youtube.com/watch?v=oSgj7VkZkQk How does the guy in that youtube video not have constant flickering due to system("cls")?
[1 reply] : HE probably used winAPI to handle console directly: changed console bu... (by MiiNiPaa)
using template within the template
 
Hi there, I have a question about templates. I have written the following implementation of linked list which works fine for the primitive types: template <c...
[2 replies] Last: Wow.. I would never have thought Visual Studio 2010 compiler could be ... (by brodskye)
Aaron Dip Sharma Exam Tips
 
Exam Tips for Aaron Dip Sharma on C++ Whats best way to pass exam ?
[1 reply] : Play Call of Duty Modern Warfare 3 for exactly 13 minutes, then go to ... (by Fransje)
by hbg
Play a sound
 
I play a sound of some one slashing a sword
[1 reply] : I dont know about that but u can play the sound of an audible alert be... (by cyberdude)
Using chars as int, change int, and usit again as char.
 
I'm pretty new to programming. I made this small program (which isn't working yet) to read a message from console, change some ASCII-table values, and print it....
[3 replies] Last: Thanks a lot so far. However, this was only my first mistake. My curre... (by BramvandenH)
Questions about Error handling
 
Hello Folks, I'm currently working through the beginner c++ book by Stroustrop and i'm up to the errors chapter. Stroustrop gives the following example progr...
[14 replies] Last: That's because you're accessing an element that doesn't exists (the c... (by mutexe)
Help fixing invalid conversion error?
 
I'm still quite new to C++ and I am having trouble fixing an error in my program. Suggestions on how to fix it would be great. Thank you. My compiler says: .c...
[5 replies] Last: int search (int arr , int size, int s) { int count = 0; for (int ... (by vlad from moscow)
Dictionary Translation problem
 
Hey guys, I am working on a translation/transliteration program, that reads an english story, and translates it to elvish, using an english/elvish dictionary. A...
[no replies]
Riemann sum program not running
 
Hey guys. I just finished writing this program and it's not running. I'm thinking that there is something wrong with the syntax? Any hints would be appreciated....
[7 replies] Last: I think that you could do this method=0; //<-- //starting values ... (by eyenrique)
extra output from a function
 
I tossed this code together for debugging reasons only so the format is not great but the problem I am having is with the function finalOutput(). I have coded ...
[4 replies] Last: The file is ok. Just need to possibly change getline(infile,marketAr... (by vin)
Manipulating Array Elements
 
Currently, I'm writing a program that's designed to make a user try and take a printed array of elements, randomly chosen from the values of 1 to 9 and reverse ...
[4 replies] Last: Thank you, much appreciated. (by Specula)
by orcbum
Coin Toss
 
I've approached a very annoying problem with my code. The idea behind my assignment is that it'll toss a coin 100 times, 1 = heads, 2 = tails, and count how ma...
[3 replies] Last: You have infinite loop on lines 10 and 16. Change loop statement to co... (by MiiNiPaa)
How do count the amount of words in a string?
 
How can I make the program read what the user typed in and print out the amount of words in the phrase the user entered. Also, after you hit yes to play again, ...
[3 replies] Last: loop from first index to theString.lenght() if( theString == ' ... (by arzhon)
by f2004w
I am not very fluent with C++ but I am trying to figure out how 2 things works:
 
1) When certain action occurred - it creates and stores a new data Example: Values given starts ->2 15 min later -> 4 5 min later ->7 25 min later ...
[no replies]
I still have VS2010 and want to upgrade to a better IDE
 
Is Visual Studio 2012 the best choice for all the latest C++11 features?
[3 replies] Last: What about GNU GCC? I'm curious on that. (by Austin J)
May 2013 Pages: 1... 4445464748... 66
  Archived months: [apr2013] [jun2013]

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