Beginners - September 2010 (Page 13)

"Hello World" project for borland c++
 
I tried the available source code for the Hello World console project and none works.
[13 replies] Last: The problem is that you are trying to compile as a VCL application (Wi... (by Duthomhas)
by dlugo
Issues with exceptions
 
So I"m having some issues with exceptions. I don't even know if I'm doing it right or not. All I want is to have a user select an equation and if the number is ...
[5 replies] Last: Quicklink: http://cplusplus.com/doc/tutorial/exceptions/ I agree w... (by Albatross)
SerialPort
 
Hi, Can anyone help me how to read data from a serial port (COM1, COM2...)? Or recommend literature/links where I could find more information about this. ...
[2 replies] Last: This is dependent on the Lib you're using. Have you picked one yet? Wh... (by Computergeek01)
priority_queue questions
 
Hi. I was trying to code the algorithm from here: http://en.wikipedia.org/wiki/Prim%27s_algorithm But I don't know how to update a value in a priority_queue ...
[5 replies] Last: Thanks for the replies! ne555: It's true that I can use the edges and... (by mconell)
Converting from String to Hex C++
 
Hi, I have a .txt file that has a list of hex values that i need to load and use. I am able to open the file and read in the hex values as strings and dont k...
[2 replies] Last: Thank you...that worked wonderfully :) (by ufool71)
Trouble with if-else versus switch-case
 
Greetings, I am quite new to the programming world and am currently enrolled in a college course on C++ programming. That being said, we are only starting o...
[6 replies] Last: I don't think you can use switch in this case because you don't have... (by wasabi)
Can I restore a random_shuffle on a string?
 
I was wondering if the following random_shuffle could be reversed? ie; restore the alphabet to its original string arrangement after being passed to a differen...
[9 replies] Last: Right gotcha Use srand (seed) instead of srand(time(0)); (by AlphaBravo)
setw() zigzag
 
The problem I'm having involves the field width of setw(). My assignment requires me to give an integer output and a millisecond output to control the speed wh...
[2 replies] Last: Also, you should remove the auto keywords. auto is deprecated and it ... (by Athar)
Two digits in a date
 
So I am doing a calculating date to day of the week assignment for my class and one part of it has me all stubbed up. In the "procedure" for calculating the day...
[5 replies] Last: Oh okay so 1961%100 is just 19 with a remainder of 61. Got it. (by Jakewins0)
by dznguy
uppercase = lowercase
 
hi, im just wondering when i type in a letter, how do i make it so that it will recognize that the upper case letter is the same as the lowercase of it. i.e. ...
[10 replies] Last: comparing your model and my switch in switch model, the only problem t... (by dznguy)
by Lucrin
Convert Character to Numeric ASCII
 
Ok so I need to write a translator program that will convert a single line of text from characters to their numeric ASCII equivalent. Here is an example: Att...
[4 replies] Last: Not yet, but it will when C++0x becomes the official standard. I jus... (by sohguanh)
variable not incrementing?
 
I'm making thise database program and I have a class item. I need to call it with a name, price, amount and ID. For the ID i use int i as a side variable. Yet,...
[13 replies] Last: The order of the variables in the initializer lists does not matter - ... (by Athar)
Question on how to write a program to test statements
 
I'm in COSC 1436-8001 in community college at the moment learning C++. I'm doing a problem in the book and i'm just confused on the last part f. I've done al...
[1 reply] : Hmmm..... maybe you want to consult Java JUnit framework which is over... (by sohguanh)
compound vs simple interest exercise..
 
Hello again, sorry to bombard the forum with noob questions but I was stuck on this problem yesterday, came back today and still can't figure it out. Exercis...
[3 replies] Last: @george, One of your classmates posted the same questions in s thre... (by nathan10)
by Lucrin
ifstream question
 
Ok I am writing a translator program for a class I am taking. If i am using an ifstream called inputFile I know I can use inputFile.get(char) to read a single c...
[3 replies] Last: It reads until whitespace, and does not include the whitespace in any ... (by LB)
by yts
array and string
 
#include <iostream> #include<cstring> #include <string> using namespace std; int main() { int i=0; string t; int a; cout<<"plese enter the n...
[7 replies] Last: http://cplusplus.com/reference/algorithm/find/ ^I'd do it using this.... (by Albatross)
Completely lost Arrays
 
I have an assignment that requires me to calculate and print the sum, mean, variance, and standard deviation of a set of numbers. This is the sample code giv...
[7 replies] Last: Thanks Guys I really appreciate it......aspecial thanks to Thumper for... (by Miltek360)
trouble with pow function
 
Hello, I am CS student at University. I am trying to write program to find time it takes for metal spheres to reach the ground. The equation is (2h/g)^(1/2) ...
[2 replies] Last: I'm pretty new to this but wouldn't it be far neater to declare a clas... (by ThePillowist)
Non-void function
 
i need to prompt user by name to enter a favorite number. im trying to creat a non-void function to send the user's name and obtain and return favorite number ...
[4 replies] Last: I don't think you fully understand basic functions, research them. The... (by quirkyusername)
passing lists to functions
 
Hello, I have a problem with lists. Basically I would like to create 3 pointers to bunny objects ( lines 5 to 7 ) and place them in a list. Then I would like t...
[4 replies] Last: of course ..!! Brilliant ..!!. it works, thanks again m4ster r0shi. (by Mike200)
September 2010 Pages: 1... 1112131415... 32
  Archived months: [aug2010] [oct2010]

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