Beginners - April 2011 (Page 3)

Functions and classes
 
Very confused on how to do this assignment. My program is to create a currency exchange (pesos to dollars) using a class. I need to display out the the currenc...
[2 replies] Last: Thanks for the help. I have been reading, just having a hard time und... (by sselasky1)
how to loop exceptions
 
in main.... cout<<"enter an int" cin>>a try checking(A); catch (char *eString) { cout<<eString<<endl; cout<<"please re enter your value...
[1 reply] : This isn't the best way to validate input. I would say try...catch i... (by Zeillinger)
Problems with pointers.
 
I was given a function and told to make it reverse the characters in a character array without using any work arrays. Here is what I had. void reverse(ch...
[1 reply] : On line 4, you move a to point to one byte before the start of thr str... (by LB)
typedef Vector
 
Quick question: I have the following line in a (pure) *C* code: typedef DTYPE* Vector; As far as I know, Vector datatypes does not exist in C. What am ...
[1 reply] : It's a typedef. That line is defining the name Vector to be an alias t... (by filipe)
Initializing const fields in virtual parent class from constructor in the inherited classes
 
Hi, I have pure virtual parent class, and from that a few inherited classes. For example class parent{ private: const int num1; const float num2...
[4 replies] Last: Awesome that worked!! Thanks hamsterman, for that solution. For some r... (by maheshravishankar)
by qwesr
Need help with a random number game
 
Hey, im relatively new in c++ and im trying to code a Random number guessing game. Heres the code- #include <iostream> #include <ctime> // to use the tim...
[7 replies] Last: No problem. Good luck and have fun! :D (by GodPyro)
Help with initialization
 
I'm trying to create a program that looks through a sentence and counts out the number of individual vowels and the total number of vowels. However, it outputs ...
[2 replies] Last: Thanks for the quick reply, I really appreciate it. (by Aperture Panda)
by pooshi
sprintf Question
 
I am new with this sprintf function and need some help if possible. //LAST_FILLER_NUMBER, FIRST_FILLER_NUMBER, FILLER_IMAGE_EXT are all globals // This funct...
[3 replies] Last: Thanks for your reply. I will see what I can do. (by pooshi)
FillConsoleOutputCharacter Unicode characters
 
I'm trying to use the FillConsoleOutputCharacter statement in my Visual Studio 2010 ultimate studio using the C++ Win32 system api. My question is, is there...
[4 replies] Last: oh you smart cookie :D Thanks, I got it working now, and yeah you wer... (by DoTTGaMMa)
check this out please
 
Hi fellow forumers, I seem to be stuck on a vector assignment that I can't quite solve using the documentation on this site (which btw I usually find extremely...
[5 replies] Last: You need to change the * to an & on lines 11 and 28, not just 28 by ... (by LB)
How to append a character starting from the end of a file
 
Does anyone know if its possible to open a file for appending but then I need to be able to replace the last character written to the file with another. How can...
[4 replies] Last: Thanks for all the suggestions I will take a look at the available opt... (by victor43)
translating into c++ langagues.
 
i want to write a function called "greedy" function. Given M = { 0,1,3,2,9; 1,0,1,2,4; 3,1,0,1,3; 2,2,1,0,1; 9,4,3,1,0; } The matrix M represent the d...
[17 replies] Last: You're welcome :) (by GodPyro)
by qwesr
Need help with a random number game
 
Hey, im relatively new in c++ and im trying to code a Random number guessing game. Heres the code- #include <iostream> #include <ctime> // to use the tim...
[1 reply] : I think you forgot the curly braces after your while around all those ... (by Albatross)
(Each undeclared identifier is reported only once for each function it appears in.)
 
hey everyone, i have a problem compiling this program and i cant see what the problem is. basically i want to resize an array if it gets to its maximum size but...
[3 replies] Last: thanks im using arrays now but have a problem adding elements to it, l... (by Makarintosh)
plz help me and fast
 
plz give me solution today the question is You are required to write a program which takes two 3x3 matrix A and B containing 09 elements each and sort all th...
[2 replies] Last: For 3x3 matrix use const int maxRows = 3; const int maxCols = 3; ... (by salmanhassankhan1)
Cannot check menu items checked isn't correctly
 
Hi guys, I need your help, as I have a bit of troubleshoot with the source code. When I clicked on the menuitem1 to set the menuitem1 checked to true, and when...
[5 replies] Last: Because that's I want to check the menu items from form2 event I am no... (by mark103)
Converting and reading data from winsock2 recv buffer
 
Hey All, First post, and yes I searched but couldn't find anything that gives some specifics. I've built an app that calls a specific php file on my serve...
[2 replies] Last: Perfect ..... thanks so much, that was a lot easier than I thought it ... (by tsheppard)
by Acr
vector difference non-unique
 
Good day, My problem is as follows: v1 = 3 3 4 5 10 11 12 16 18 18 v2 = 3 4 5 6 7 8 9 I want the (set) difference of these two vectors (meaning; what is...
[1 reply] : The two vectors are sorted from low to high; if you can rely on this,... (by Moschops)
How to delete cells value?
 
Hello, I want to ask, how can I delete a cell value from Datagridview in Windows Forms Application? I'm using Visual Basic 2005.
[1 reply] : Might want to ask in a visual basic forum (by LBEaston)
Quicksort Code?
 
This code doesnt make any sense. Especially the check on v <v . Shouldnt that be the other way around? According to this video, the code doesnt correspond... ...
[no replies]
April 2011 Pages: 12345... 55
  Archived months: [mar2011] [may2011]

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