Beginners - November 2012 (Page 52)

Having Problems with Class based code
 
Hi, I'm new to the forum but I'm a computer engineering student at an engineering school so I will probably frequent here. I'm having a problem with creating a ...
[1 reply] : The variables firstVariable and secondVariable in main are completely ... (by cire)
by Orbzuk
invalid conversion from 'const* char' to 'char'
 
Apologies if this is a silly question but I'm extremely new to coding, just started today. I have searched the forums for a solution and they all seem to be p...
[2 replies] Last: Oh ... whoops. Thanks (by Orbzuk)
Arrays
 
So I have this problem with a program involving arrays. The problem is: Modify your program in Program 1. In addition to count and show the number of stude...
[15 replies] Last: I didn't have much time to write my code, so forgive me for not answer... (by Nexius)
Accessing an array of structs from a class
 
In the function buy drink I want to associate a user choice (entered in main) with an item name in DrinkInfo drinks . I tried this: cout << drinks .nam...
[2 replies] Last: If I do this: /***************SodaMachine::SodaMachine*************... (by slappy5star)
For Loops - Action Statement
 
Right a simple for loop like this for(int i = 0; i < 10; i++){} Does is matter if its a postfix or prefix operator in the action statement? If so, when do you...
[2 replies] Last: http://stackoverflow.com/questions/24853/what-is-the-difference-betwee... (by Darkmaster)
the Question about Node and "if"
 
void dfspostorder ( node ∗r ) { if ( r ) { dfspostorder ( r−>right ) ; dfspostorder ( r−>left ) ; cout << r−>i << endl ; } Hello, I cant un...
[1 reply] : if (r) means "if r is not null". (by Athar)
Comparing 2 Strings in C
 
Hi all. I am trying to create a program which will compare 2 strings.Find the first character which is equal between them and save it on the third string.If it...
[2 replies] Last: More importantly, you need to fix your indentation. If this is for sch... (by Athar)
ask for input string but did not run
 
#include <stdio.h> #include<conio.h> int main() { char name ; int a,b,c,d,bil,i; FILE *inp; fopen("input.txt","w+"); printf("please insert how number ...
[no replies]
binary conversion
 
Can someone check if my functions are working correctly. I believe they do but i am not sure so someone just tell me if i did something wrong. void binary...
[1 reply] : I just had a very quick look. I was a little bit surprised, as I expe... (by Chervil)
Storing data from loop to array?
 
int getcard()//function to call to main program { srand((unsigned)time(0)); int x; string mix ; string h; do { for(int ran= 0; ran<1;...
[1 reply] : Any variables used by a program are lost once the program completes ex... (by Raezzor)
Implementing get/set function. (1,2)
 
How is the best way to implement get/set functions? class Birthday { public: voidPrintBirthdate() const; bool getBirthYear() { return year; } ...
[21 replies] Last: Thanks to everyone, I appreciate the suggestions and information!! (by dudeman007)
File copy function
 
How do I create a file copy function? I recently developed a code, but this produces incorrect result, cause some characters are still left in the source fil...
[9 replies] Last: Thanks all!! :) Everything worked :) (by SameerThigale)
please help segmentation fault ... probably simple (i'm pretty new to c)
 
I'm trying to write a Caesar cipher. but i keep getting a segmentation fault even though i'm not accessing unauthorized memory ( far as I know) #include <...
[7 replies] Last: Because it's not my code. I'm trying to get into the same mindset as t... (by Chervil)
Help Needed with the assignment
 
Ok, I need Help using c++ including fstream to solve this assignment. {a C++ program that generates all the possible representations of N cents in the typical ...
[no replies]
by oscott
Finding the minimum of a vector...
 
Essentially what I'm trying to do is to build a function that will find the minimum value of a vector so I can later apply it to a standard sort. I can't seem t...
[4 replies] Last: @vlad from moscow Thanks, all your points are correct and useful. (by Chervil)
NOOB Really Needs Help
 
I am not a programmer and I have been beating my brains out trying to build a small C++ program in Visual Studio 2005 as suggested by the detailed instructions ...
[no replies]
String Library Functions
 
Hello all, I am writing a program that takes a word, sends it to an array and uses that information to perform various library functions to manipulate it. The ...
[3 replies] Last: As @Catfish2 pointed out toupper does not change its parameter. You sh... (by vlad from moscow)
by Meden
What is making this loop repeat forever?
 
for (int n = 1; n < 6; n++){ cout << "Enter the score for test " << n << endl; if (n = 1) // n++ gets processed. ...
[2 replies] Last: oh jeeze. Such a simple mistake and I couldn't see it. Thanks. (by Meden)
by Dowal
Understanding C++ development environment
 
Hi I am a student taking Basic C++ prorgraming in the College of Don Bosco here in Papua New Guinea I am really keen to learn and understand how the programming...
[3 replies] Last: This really needs a simple diagram to show the flow. Here's a very qu... (by Chervil)
help with assignment
 
hi, I have this assignment in C programming that I need to submit very soon and my problem is that this craps game doesn't work as intended, the while loop in t...
[4 replies] Last: hi, well this is the rest of the code showing the declarations; #inc... (by phoenix lander)
November 2012 Pages: 1... 5051525354... 75
  Archived months: [oct2012] [dec2012]

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