Beginners - June 2011 (Page 30)

by toexii
Splitting an integer into a vector of its digits
 
I'm currently working my way through "C++ principles and practice" by Bjarne Stroustrup, and as one of the exercises I have to work with individual digits of an...
[4 replies] Last: ne555, I'm not sure what you mean with that code. However I have figur... (by toexii)
recommend a book for programming structure
 
Hi. I've been learning about C++ (by myself, not in classes) for about 8 months or so now. I feel I have a decent grasp on all the basics, and some of the int...
[1 reply] : It's weird that nobody answered this. Some people here are quite enthu... (by hamsterman)
Need Help.!!!!!
 
It's about C programing atually. I was writing a program to check whether number is prime or not. . I used while loop. program i wrote - ------------------...
[14 replies] Last: Firstly, the syntax of for loop is for( initial state; condition; inc... (by hamsterman)
Change Queue Size
 
Is there a way to change the size of a particular queue to be different than others? I'm using const int maxqueue = 5; for 3 queues but I want a 4th to be maxq...
[5 replies] Last: I have only read some of your code, but have you considered making que... (by anonymous23323124)
do while getting stuck
 
Hey, I'm writing this program to simulate 3 queues as parking garages, where C moves to B if a spot opens, and B moves to A if a spot opens. I'm using a do whi...
[no replies]
by nanger
function works fine without return value?
 
I forgot to write down return ps; in the end of the function below, but it works fine in my program, what is the reason for this? PStation Stati...
[5 replies] Last: @ lwtan90 (2) : Compiler should not return a error! It must return a ... (by SimpleIce)
by chipp
the difference between dev C++ and visual C++ 2008
 
why the function CopyFile(), GetModuleFileName(), etc works in dev and not in visual C++ 2008? the error result said that the function cannot convert char to L...
[12 replies] Last: oh so i guess my answer before is right, right? :) note: i've edited ... (by chipp)
maximum size for an array of floats?
 
Hello, I'm trying to process large amounts of data, so I've set up a series of arrays to achieve this. However, I notice that my program crashes when I try ...
[7 replies] Last: Pointer is pointing to an array of mystructs. If you want to access th... (by firedraco)
When does applied math knowledge matter?
 
I have taken up to Calc II when I was in school, is this enough to be able to do know how to input certain levels of code once I learn them?
[2 replies] Last: Depends on the "level of code" you're talking about. Programming doesn... (by ultifinitus)
turbo c++ sand clock - graphics.h
 
hi my dear friends : i am new in c++ and really like to find a simple sand clock for enjoying and learning ... i should use turbo c++ 3.0 ... would you plz he...
[5 replies] Last: would be appreciate for help me .... (by LostLord)
help with object array
 
I am trying to create random objects, then i was to go through and count how many of each type I have, but im not quite sure how to handle object arrays. Here i...
[5 replies] Last: You use it to keep track of the server array's size. server servers... (by ModShop)
Char and string to numerical
 
I have been trying to accept negative numbers. i'm trying to use a char array to store user input... I stored user input into the char array. Then, i tried to ...
[19 replies] Last: Thankyou so much Duoas! I could not find that on the internet to save ... (by Dabeast45)
lower to uppercase
 
I am trying to complete an exercise from c++ primer 5th edition but keep i failing. The exercise is: Write a function that takes a reference to a string obj...
[6 replies] Last: Yeah i should'nt have i just wanted to be more specific. Thanks to The... (by COD3RCODE)
Help with loop searching file
 
I am trying to write a program that will aid me in some translation work. It takes a string, tokenizes it, and translates each word individually. My problem i...
[2 replies] Last: thank you, that worked (by jackfrickenfrost)
Unhandled exception with console application
 
Hi I am currently working through some C++ tutorials. I have hit a bug in trying to answer one exercise. Mycode seems to work but I get an unhandled exception ...
[1 reply] : You can't load and save in this way: void Wizard::save(ofstream& o... (by shacktar)
by benp84
Vectors and Derived Classes
 
I'm writing some code to do various geometric calculations on geographical data. Below is the relevant portion and the compiler output. Any ideas about what's...
[5 replies] Last: I posted my last comment before reading kev82's. It looks like I was ... (by benp84)
Populating An Array
 
I am trying to populate a small array. When I output the array to the console, instead of numbers, I get a dark smiley face, a smiley face, a heart, a diamond, ...
[12 replies] Last: computerquip, Thanks for the ummm... pointer. I'll be re-reading that... (by killingthemonkey)
Help with a sorting program.
 
So this is my code... #include "stdafx.h" #include <iostream> #include <string> #include <iomanip> using namespace std; struct Person{ string name; strin...
[3 replies] Last: Then change Person: struct Person { string givenName; string... (by webJose)
For loop question
 
Hi everyone, I have a few simple questions that I am not figuring out. Below is code for a program that cins an amount from the user, asks for an interest rate,...
[1 reply] : hope this helps #include <iostream> // #include <fstream> using name... (by Bongoman)
Question about classes
 
Hey, all! I've programmed in java before but I'm new to c++ and visual studio. I was wondering how I could create a separate file from my main program which ...
[2 replies] Last: Ah, that clears up a lot of the c++ nuances I didn't get. Thanks for t... (by zeromeus)
June 2011 Pages: 1... 2829303132... 41
  Archived months: [may2011] [jul2011]

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