Beginners - April 2020 (Page 4)

by itb99
Simple Array program to display sum in array
 
#include<stdio.h> void main() { int i ; int arr ; int sum=o; for (i=0; i<=4; i...
[3 replies] Last: The for loops at lines 7 and 12 are making the array go out of bounds,... (by deleted account xyzzy)
String array and txt file
 
Hi guys, I need some help. I don't know how to store ONLY the words without the punctuations or othe...
[1 reply] : You should write a function to remove the punctuation from a string. A... (by thmm)
Struggling With OOP and Vectors (1,2)
 
Hi, I currently know a bit of C, and i thought as I am off work on furlough I will learn some C++...
[28 replies] Last: Many thanks for all you help. I will work through it and try and unde... (by RocketMan46)
printf Matrices from a .txt file
 
I have a text file with the following two matrices: 3 2 5 1 9 5 7 6 3 2 4 2 1 8 6 ...
[10 replies] Last: @OP, You can read the first two values like this. #include<stdio.h> ... (by thmm)
by Tazzz
Dev c++ //How do i open it?
 
is like a list of commands... imgur.com/a/sk4mwgv It is like a list of commands, I just started ...
[2 replies] Last: i love u <3 thx (by Tazzz)
by gVd9
Cooking ribs
 
How can I make a program for cooking ribs in the pan? You have to enter the cooking time and number...
[5 replies] Last: "How can I make a program that does stuff? You have enter the time pe... (by TheToaster)
Repeating Similar Code with Different Results
 
Howdy! I'm currently in the process of making a fast character generator for D&D DMs. Thus far, I'v...
[2 replies] Last: This is incorrect syntax: if (RN1 < RN2, RN3, RN4) Presumably you... (by dutch)
search array
 
when I choose number 4 from the menu below the search function outputs -1. what am I doing wrong? ...
[5 replies] Last: ahh I figured it out. get rid of the ! before titlefound and it works... (by bigskit13)
Using functions for same output
 
I was hoping to get an explanation on where to begin on changing the following code to be used with ...
[2 replies] Last: well, making stuff global is not the way to go. lets give average a t... (by jonnin)
by Esso
Function return
 
This func. calculates factorials what I don't understand is how it keeps the values 5*4*3*2*1, whil...
[13 replies] Last: I guess I got it right now, I just try to understand every single tin... (by Esso)
English to Pig Latin Program errors
 
Hello! I am trying to write a program that inputs a short phrase from the user and outputs the Pig L...
[3 replies] Last: TheToaster, I really appreciate your insight and links to other posts ... (by agrace1024)
by Luigi1
Unicode characters
 
Hello, A friend of mine is taking his first steps on the language C and is using Dev C++ as comp...
[1 reply] : This might be the reason. If the current font is a fixed-pitch Unicod... (by Thomas1965)
Possible to continue count past first int found?
 
Is it possible to continue counting the key past the first time int is found? the key appears in th...
[10 replies] Last: Thank you so much! Coding is so detail-oriented that even the slightes... (by closed account iT5o8vqX)
String replacing Hangman
 
Hangman code, I need to replace all asterisks where letter is present, not just the first one. Also ...
[2 replies] Last: for ( k = 0; k <= str1.length(); k++ ) Looks like a buffer overflow ... (by jlb)
by Chad9
Odds/Evens numbers
 
Hello can you help me with one program in (C++) I have to do program which have to say is there an...
[4 replies] Last: Actually the OP wrote: I have to enter tree numbers. so I thought... (by lastchance)
Variable not acting as expected?
 
I am trying to learn C++ and currently constructing a program which will list the divisors of a numb...
[14 replies] Last: Might I also suggest the following correction: #include <limits> //.... (by TheToaster)
Transpose of matrix (15x10) using vector of vector
 
Hello! I wanna display the transpose of a (15x10) matrix but I'm encountering a few errors that I ca...
[9 replies] Last: This is how your function headers should look like: void generarMatri... (by TheToaster)
Templated copy constructor
 
How can I make a class use a template copy constructer over the compiler generated default copy cons...
[5 replies] Last: I still don't see why this code is an error: struct test { test(... (by KishoreG)
Counting Even and Odd Numbers
 
Hi I am currently in an intro to c++ course and got this for an assignment. I know how to check if a...
[10 replies] Last: Okay Thank you so much (by YoungProg19)
Vector Iterator
 
Hi, im kinda new to C++ and im trying to understand what the vector iterator actually does, i dont g...
[3 replies] Last: https://stackoverflow.com/questions/5606973/understanding-iterators-in... (by deleted account xyzzy)
April 2020 Pages: 123456... 20
  Archived months: [mar2020] [may2020]

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