Beginners - April 2016 (Page 21)

by banmal
Stack and Queue
 
I am to create user menu for users to choose Stack and Queue. When I compile this code there's no error but when I run the program, it stops and i cant cin the ...
[4 replies] Last: I'm using GNU g++ 4.9.3 (by dhayden)
i need help (1,2)
 
im writing a program that is form one my physic problem and wanted to do some more to it i want to do a vector product for these in my program but every time i...
[23 replies] Last: Hi, Could I just mention that you should change the types to double -... (by TheIdeasMan)
How to save unknown amount of letters to the same variable w/ headerfile
 
Hi, I am trying to make a hangman game and want to use a header file for the basic logic, and the main file simply for "ui"(command prompt). I want to save the...
[6 replies] Last: Hi, Thanks for pointing out that I am making that fresh intance every ... (by ImLolly)
String and integer reading
 
So we have to design a game board that looks like this: this is an example of the game board of size 4: ABCDE 0+ + + 1 2+ + + 3 4+ + + Whe...
[no replies]
by zramam
Help with Account class program
 
I am taking my first course in C++ and been struggling with the recent arrays and structures stuff. Your help will be greatly appreciated. This program must ...
[3 replies] Last: @AbstractionAnon You're very smart!! Thank you so much! I was able to ... (by zramam)
Why doesn't my code compare version numbers correctly?
 
It is supposed to return 1 if version 1 is greater than version 2, 0 if they are equal and -1 if version 1 is less than version 2. It does not work for all test...
[2 replies] Last: I suppose that the numbers that sscanf() failed to read would remain u... (by ne555)
Help with Functions/Array Code: calling a function but won't let me enter input?
 
Hi guys! I'm a CS major who got assigned our most difficult homework yet, and was wondering if I could get any help. So we have to make a menu driven program...
[6 replies] Last: I fixed the first problem, but I'm having trouble with how to fix the ... (by aiiight)
by andcto
help with my code
 
Hi guys, i'm trying to do my homework that my teacher gave us and I'm getting an error that I don't know how to solve this. with u guys help I would be so grate...
[1 reply] : the error it shows when i compile 1> concurso.cpp 1> Generating Co... (by andcto)
Function returning array, subscript error
 
I've only been coding for about a month, so bare with me. In my programming class the assignment is to write a program, using arrays and functions, to: -have t...
[2 replies] Last: Finally got it to work: #include<iostream> using namespace std; //... (by YeBeardedOne)
How do I draw a line in code blocks ??
 
how do I draw a line in code blocks ? is there any simple way by which I can draw a line with its co-ordinates and print it on screen??
[1 reply] : code blocks has nothing to do with it. What you mean to say is, can I ... (by Yanson)
about constructors
 
Can you tell me how to write the constructor for this? A constructor that accepts the following values as arguments and assigns them to the appropriate member ...
[no replies]
Image highlighting
 
My instructor said "One way to highlight objects in an image is to make all pixels below a threshold (T1) 0, and all pixels above a threshold (T2) 255. Write a ...
[no replies]
assignment operator
 
Hello forum, I have a list defined as follows: std::list<LaserLine> laserList; Then I have declared an non-constant iterator to go through the list...
[1 reply] : &line is a reference. There is no constructor, line is just an alias... (by Chervil)
Help building and printing array
 
I'm trying to write a program to fill an array with the following conditions: 1:) User defines number of rows up to 25. (array ) 2:) User defines the firs...
[4 replies] Last: You could do it all within one for loop if you declare the arrays befo... (by edge6768)
Hexadecimal calculator run time error
 
I'm trying to get this thing to work correctly but I just can't. For example, it adds hexadecimals like F + F = 000000001E (which I think is correct, right?) bu...
[no replies]
File of mixed content into an array
 
Hello, I have a file consisting of items that I need into an array, and prices that I need into the array as well. So far I have the array set up in a struct w...
[4 replies] Last: Use ifstream::getline() . First parameter is the buffer you wish to r... (by Tyler T)
Array problem
 
I have to create a program which generates a permutation of the alphabet (which for this is "ABCDEFGHIJKLMNOPQRSTUVWXYZ.,' ") and returns the inverse permutatio...
[no replies]
I need help; Matrices and Vectors library
 
Hey, I've got a problem. I'm currently attempting to write a library for Matrices and Vectors to be used in a Demonstration Program that I will be writing. ...
[no replies]
by ebucna
array object
 
Hi all, I have a class Driver and a constructor. Originally I had this: class Driver: virtual public Person{ protected: string idNum, address, li...
[3 replies] Last: I do have to declare an array, don't I? Possibly, but I'd use a std:... (by jlb)
Array Use
 
I'm not very good at c++ and I can come up with ideas for how to solve some problems but not how to put it into code. My problem is I'm trying to write a prog...
[2 replies] Last: Apologies for the rambly explanation, here's an image trying to explai... (by DioBrando)
April 2016 Pages: 1... 1920212223... 43
  Archived months: [mar2016] [may2016]

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