Beginners - May 2013 (Page 48)

by tdnich
conversion from decimal to binary
 
I am still new to programming actually first year student and feel embarrassed that I have to post here for help but I am having problems with passing arrays in...
[no replies]
How Do I display a Picture?
 
Hi I am trying to make an RPG for my summative and I was wondering If i can include a sprite representing my main character. Is it possible? Thank you for your ...
[no replies]
by orcbum
How to make this if else statement work?
 
For an assignment in my C++ class, we're to write a code that'll calculate our entire grade. However, the code is supposed to drop the lowest assignment grade, ...
[3 replies] Last: Thank you Plover! We haven't gotten that far in our class yet, having ... (by orcbum)
by ivo1
queue
 
Hi I have an assignment to creat a queue and remove the N element from the end.So far I have only manage to write a code that inputs the numbers and I am lookin...
[1 reply] : Hi I have an assignment to creat a queue and remove the N element from... (by ivo1)
Conversion Program with Pass by Value and Pass by Reference
 
Hi, this site has been extremely helpful with my path down learning C++ but I have ran into an issue on one of my assignments. Below is my code I wrote to creat...
[no replies]
Factorial function
 
I was at school when i started thinking of making a factorial calc. I arrived home and after some errors i got this code: #include <iostream> using names...
[3 replies] Last: It only does n * Factorial(n-1), which just so happens to be the same ... (by booradley60)
trouble reading file into an array
 
This is a struct array and when I try to print out the data stored in it I get the first bookArray .item_name and the rest is just repeating numbers. it is TAB...
[4 replies] Last: Probably get it to stringstream and convert from it (by MiiNiPaa)
cannot convert parameter 3
 
Here is my problem. 'void binary_tree::insert(int,int,char,char ,char )' : cannot convert parameter 3 from 'const char ' to 'char' The main function(par...
[6 replies] Last: In function binary_tree::insert() try strcpy(root->student_course,st... (by Machtl)
Urgent Please solve the problem
 
#include<iostream.h> #include<stdlib.h> #include<conio.h> #include<string.h> class Virtual_Ballot_Paper { private: int NoOfsigns; ...
[1 reply] : a) You are using <iostream.h> <stdlib.h> and <string.h> headers ... (by MiiNiPaa)
by Oppo
Program has stopped working.
 
I made this program which it asks for the user to input a sentence, then outputs the sentence in a certain order. When I run the program,a window pops up saying...
[2 replies] Last: have you tried using std::string instead of char arrays? and I don't s... (by giblit)
array reference or pointers for get set function
 
main.cpp Person per ; int favNumber ; for (int i = 0; i < 3; i++) { cout << "enter favorite number" << endl; cin >> favNumber ; per .setFavNum(favNumbe...
[2 replies] Last: I thought the form void Person::setFavNum(int _favIntArray ) was ... (by andywestken)
system pause
 
is there another option instead of system("pause"); ??
[2 replies] Last: is there another option instead of system("pause"); ?? Yeah. Running... (by Catfish4)
a program that sorts five integers
 
im not very understand about this...when entered 3,2,4,1,5 , the result doesn't come out with 5,4,3,2,1... any wrong on this code? Note: The integers are enter...
[5 replies] Last: This looks like it works. #include <iostream> #include <cstdio> ... (by Bourgond Aries)
by daveK
C++ uppercase first letter of each word in a list
 
hello, i am new to programming, how do i change the first letter of each word in a list of names? does this make any sense; for(int a=0; a < phrase.le...
[1 reply] : What you did would turn all letters uppercase, one by one. I am really... (by JockX)
programming
 
Hey! I need help. Im new to programming. So how the codings will like to be ? write a program to accept an integer number from the user and display the mes...
[2 replies] Last: Hi Epeeist, Welcome to C++! This code will handle your problem, but to... (by Donnie)
>1 namespaces?
 
What does it mean to use two namespaces at the same time? For instance, if I use using namespace cv; using namespace std; how does the compiler...
[3 replies] Last: unqualified is one that doesn't have a :: before it. endl() is unq... (by Cubbi)
by Pebble
Command line
 
I'm struggling to get to grip's with: int main(int argc, char *argv ) In an exercise i've got to take 2 argument's and concatenate them, Outputting them ...
[2 replies] Last: Thank's vlad. (by Pebble)
by fredrb
Odd or Even
 
I recently started to program in C++, and I was given a math problem to solve. I need to know if there's any way I can check if my variable is Odd or Even? Than...
[3 replies] Last: Thanks! Worked for me (by fredrb)
by Giriko
Help with Movie database
 
Hi! I'm having some trouble understanding why my moviedatabase wont do what I want it to do. First of all, in my if-part, why am I only allowed to fill in...
[2 replies] Last: Thank you, Don! Now I'm able to both enter the name and mediatype of ... (by Giriko)
adding numbers to end of file.
 
Im trying to write a number to the end of a file but it does not work. file is the name of the file being sent to this function "test" void operatio...
[8 replies] Last: awesome thankyou it works (by theco0kie)
May 2013 Pages: 1... 4647484950... 66
  Archived months: [apr2013] [jun2013]

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