Beginners (Page 2)

A Lil point of sales
 
During the past few days I've been trying to write a small point of sales program and at the moment...
[3 replies] Last: I don't see any code to input the purchase. - add code after line 25 t... (by dhayden)
cannot open file /libgcc/unwind-sjlj.c
 
Hi there The brief is to output prime numbers consecutively into an array that can be used later or...
[2 replies] Last: Thanks tipaye, those two changes fixed it. The ' candidate = back_va... (by jeremiahwuzza)
Do they yield the same result or different?
 
Do they yield the same result or different? 1. bool tf; int n; if(1) tf = true, n=2; //plz ex...
[3 replies] Last: The comma operator is a special operator in C++ that evaluates all arg... (by LB)
Stack not displaying items
 
Hi.. I'm doing an implementation of stack My program is working fine.. but when I displays the st...
[3 replies] Last: If you have n elements, you use this loop to loop through them all: ... (by LB)
by oseri
Charr array element spacing
 
Correct me if I'm wrong: The smallest unit possible to allocate is 1 byte, so : 002BF560 - point...
[7 replies] Last: Yes Oseri, if the "cout <<" had forced decimal output, OP would have ... (by oseri)
Matching Arrays Problem Help me please!
 
Hi I'm trying to write a function that will match the values within an array and the other; for ...
[3 replies] Last: thanks for answering! It's been extremely helpful! =) (by dirtymind)
Connecting Array with Date
 
My program starts with user entering rainfall amount. Then sorting the array in descending order a u...
[2 replies] Last: if (minIndex != i) { tmp = water .rain; water = water ; ... (by tipaye)
by vixdew
Trouble with dynamic arrays, structures and functions
 
I'm having some trouble with a dynamically created struct array, in that when i try to use it to cop...
[2 replies] Last: addFriend() is leaking memory like crazy. You're storing objects of pe... (by tipaye)
vector without name ==> vector<double>(24,-7777)
 
Hi im having problems understanding this syntax vector<double> hour { vector<double>(24, -7777)...
[4 replies] Last: WOW, these answers were great. Thanks you guys very much, now everythi... (by etrusks)
by Ch1156
How can i use getters and setters with math? (1,2,3)
 
I have a function in a game i'm working on that is the shop function and I need to do some math for ...
[58 replies] Last: Hi, Sorry for the brief reply, it's late at my end :+) Ok so this ... (by TheIdeasMan)
Help with blackjack game of cards
 
Hey guys, need some help debugging my code for a blackjack game. Here are the requirements. Game ...
[no replies]
Help with Displaying an array (updated)
 
I am having problems trying to display the code. It is for part of my homework. I will give the li...
[1 reply] : Read page 115. Don't store the ages in the array, store the age distri... (by fun2code)
Read character to int without crashing (1,2)
 
In C, is there a relatively simple way of stopping a program from crashing if a character value is e...
[21 replies] Last: That makes sense now, thanks. (by Bogeyman)
HELPP plz! program that prints the cost of a call.
 
Write a program that prompts the user to enter the number of minutes a telephone call lasted for. T...
[6 replies] Last: In C Simple and Neat :) #include <stdio.h> #include <conio.h> int ma... (by Subscriber360)
Difference between pressing space and enter while giving input
 
Please explain.. Say I'm giving 7 8 9 as my input.. 7 "press space" 8 "press space" 9 "now press...
[2 replies] Last: Thanks LB! (by Knightrider29)
by JB5056
Is this an example of c or c++
 
I found references to a c programming problem nearly identical to this one and cannot seem to find a...
[10 replies] Last: #include <iostream> #include <cctype> char translate( char c ) { ... (by JLBorges)
by Sym8
checkout program issue
 
so this is a checkout program. the problem i have is that the program doesnt work with the other PLU...
[16 replies] Last: ok thanks for all your help :) (by Sym8)
Question
 
Can somebody check my evenSum in line 29 i dont know whats wrong #include <iostream> using namesp...
[1 reply] : The if statement should be inside the for loop, not the other way arou... (by LB)
write a function that computes how many digits with values less than or equal to 5
 
Okay so I am new at c++ and was assigned a problem. I do not know exactly what I am being asked let ...
[4 replies] Last: Ok, now I understand. Going back to your original reply, How would tha... (by B Jarbs)
by al547
counting and printing partitions of 1 to n-1 (1,2)
 
I am trying write a recursive function(it must be recursive) to print out the partitions and number ...
[26 replies] Last: The code already outputs as it recurses. (by LB)
Pages: 1234... 66
  Archived months: [jan2015]

Cannot post in this page. To post a new message, go to the first page.