Beginners - March 2016 (Page 31)

What is a 'scope'
 
In general what is a scope in a programming language? For example, in C/C++ each function is a scope. The compiler uses a stack in processor for all variables i...
[8 replies] Last: Local variables are stored on the stack provided they _not_ objects. ... (by Moschops)
How to make makefiles and vectors
 
Hey, does anyone know what a code for a makefile would look like? I want to compile main.cpp cash.cpp cash.h checks.cpp and checks.h. Also what would a vector...
[8 replies] Last: cmake is... not easy to learn, but I have to say, I've been very impre... (by MikeyBoy)
no match for operator
 
#include <iostream> #include <string> using namespace std; int main() { int x; cout<<"Please enter the value of x; cin >> x; cout<<"The val...
[2 replies] Last: I have just added the missing " before the ; The program works fine.. (by Bopaki)
Converting textBox1 to a Character Type
 
How can I convert a textBox to a character type? I know how to convert it to an int which is: Convert::ToInt32(textBox1->Text); example of a characte...
[4 replies] Last: Are you asking how to convert to c++ std::string? if so you need mars... (by coder777)
pls help me
 
Can you help me code this problem by using simple if-else statements? thank you! Problem: A 25m Race Track is divided into 5m of Regular Soil, 4m of Rubberiz...
[3 replies] Last: Therefore, the line 8 is required. How could this be required? It is ... (by coder777)
by Mavs25
Help with code please? (Using loops and updating)
 
Hey guys! I'm trying to output my data while using a for loop. My problem is that it would cout the line and when I tried to update the new balance, interest, m...
[1 reply] : What's a huge infinite error? I ran your program and got the following... (by hiphop12ism)
Linked list display issue
 
So, I'm curious on this. This was my programming midterm, more or less a B/C on since it's incomplete. The goal of the program, is to make an address book, usin...
[1 reply] : Hi, A compiler warning, using cpp.sh. In file included from /usr/in... (by TheIdeasMan)
need reviews
 
i wrote a program that accept a string and manipulate it i need people reviews and ideas to make it better #include <iostream> #include <iomanip> #inclu...
[4 replies] Last: @ philo mallik Further to what booradley60 has just said : Good c... (by TheIdeasMan)
postal bar-code lab issue
 
.....
[1 reply] : It may make your life easier if you make a lookup array for each of yo... (by booradley60)
manipulate array
 
alright i wrote this code it is a program that accept an array and manipulate it it do everything write but i have problem with case 7 in the switch statement i...
[2 replies] Last: Thanks very much. that helped a lot i fixed it case 7: cout << "... (by philo mallik)
Implement Balanced Binary Search Tree with existing STL containers
 
Hello forum, So far I know that there is no tree data structure implemented into the STL. Probably there are reasons behind it, which I am not aware of. I ne...
[5 replies] Last: Writing functions that insert into and search for an element in a bina... (by moorecm)
Marie Simulator Problem
 
Hi, so I have a problem working with assembly code. My task is to write a simple program that takes 2 inputs x and y. If x is greater that y, then the two are t...
[no replies]
Sorting the months along with the rainfall
 
Can you please tell me how to sort the month along with the amount of rainfall.(from highest to lowest) Thank you very much. #include <iostream> #incl...
[1 reply] : There are many ways to sort, just google. As for how to do it, just s... (by DeathLeap)
seat plan wont work :(
 
i cant get this code to work guys :< i need this for my final exam tomorrow :( can you help me guys with this? :( #include <iostream> using namespace std; ...
[no replies]
Helping input different variables/void lines of code
 
So my professor wanted me to create a force calculator, so I made the basic force calculator. Now he said he wants me to include different criteria to get the m...
[1 reply] : You have now only one function -- main() -- and all the code within it... (by keskiverto)
Error message only works once. Do I need to do a Do while loop?
 
Brand new to programming. Stuck on my project, apparently our class is not on the "do while" looping chapter yet, even though our project calls for it. Here's...
[1 reply] : ¿can you do a pseudocode or a diagram flow of the solution? (by ne555)
by HJSSAE
Help with Average
 
I do not understand why this program will not work. This is the problem my professor gave me. "Write a complete program that does the following: Input positive ...
[1 reply] : Line 6: You're doing integer division. i.e. The result is going to b... (by AbstractionAnon)
Islands - problem
 
The problem goes as follows. You are given an integer N, and then N lines consisting of N integers. This represents a map, where, any land is represented by 0 a...
[5 replies] Last: @ne555 yeah, that's what I meant, mark each island you visit. (by jgg2002)
error while compiling
 
what primary expression i should add before(.) in cin lines? #include<iostream> using namespace std; struct dim{float feet,inches;}; struct room_dim{ ...
[2 replies] Last: cin>>room_dim.length.feet>>ch>>room_dim.length.inches; //this is wron... (by hiphop12ism)
Having trouble with rock, paper, scissors problem
 
Hello everyone, I am having some trouble with my rock, paper, scissors application that I need to write for class, and I would like to know what I am doing wron...
[3 replies] Last: Yes, you are right about the case sensitivity part. I believe that yo... (by hiphop12ism)
March 2016 Pages: 1... 2930313233... 47
  Archived months: [feb2016] [apr2016]

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