
please wait
by FURKANkartal
Storing random values in array
|
I want to store my values in myArray but when I print out my array ı get some numbers like -84531868 where is the problem ? int myArray ; void setGene... |
Aug 6, 2018 at 7:22pm
[3 replies] Last: for (int i = 0; i <= getN2(); i++) What is getN2() it should be i ... (by Manga)
|
by ysf007
How to loop over pairs and odds in the same loop?
|
Hey, I question comes in mind is there any option to write a loop (for, while, do while) that allows looping over pairs then impairs something like this... |
Aug 6, 2018 at 4:22pm
[19 replies] Last: @lastchance I smell a bit of recursion in that one... nice. :) Just ... (by Manga)
|
by TRGraphix
Using one one class' integer in a other class
|
I am trying to use one Class in a other one but it shows me an error code: E0077 First Class: class PlayerInv { public: PlayerInv(); ~PlayerInv(); int It... |
Aug 6, 2018 at 1:30pm
[2 replies] Last: C++11 did add brace initialization: http://www.informit.com/articles/a... (by keskiverto)
|
by Dan Moos
what is the "standard" practice for template definition location
|
I just figured out the hard way that I can't just put my template definitions in .cpp file as I would with non-template functions. Further research showed me... |
Aug 6, 2018 at 10:46am
[6 replies] Last: The build process right now looks roughly like this: (Per file ) 1. ... (by helios)
|
by Song Tung
Trouble with double spacing any input text file
|
Hi everyone, I'm writing a program which will double space any given input text file. My code below works but it only works once. If I try to run it the seco... |
Aug 6, 2018 at 4:03am
[5 replies] Last: #include <iostream> #include <string> #include <vector> #include <fst... (by JLBorges)
|
by Song Tung
Problem with reading and printing from a text file
|
Hi everyone, I'm trying to read in a file with Microsoft Visual C++ 2010 and print it. The problem is it prints the last line twice. This is my code: int mai... |
Aug 5, 2018 at 11:52pm
[3 replies] Last: Happy to help, thanks! (by Ganado)
|
Why aren't the doubles enabling their 14 point precision? |
Write your question here. So, the purpose of my code is to not only print which numbers are bigger or smaller but also print whether or not they are ALMOST equ... |
Aug 5, 2018 at 8:51pm
[10 replies] Last: Very handsome, have big penis, very big. (by DefinitelyNotPalpatine)
|
Codechef Users here will be Banned |
This is Anoop Singh from Codechef, You all are cheating and not following the Codechef code of conduct, we will find your codechef handle through your IP Add... |
Aug 5, 2018 at 6:42pm
[4 replies] Last: My guess is codechefadmin is a regular user here that just got sick of... (by Ganado)
|
by SammyB
Averaging numbers in text file array
|
I am trying to get an output with averaging the numbers in a text file, but I keep getting a value of 0. I am pretty sure I am getting something wrong or missin... |
Aug 5, 2018 at 4:43pm
[4 replies] Last: Hello SammyB, Looking over the program I noticed some problems. In t... (by Handy Andy)
|
additional Conditional Operations help |
You create three string variables you assign values to when you create them. You then create 3 int variables without assigning any values to. You have a str... |
Aug 5, 2018 at 1:55pm
[2 replies] Last: Kgerm003, in the future, please don't delete the original question. Th... (by dhayden)
|
by PanSkrzynka
Reading date from file separated by 2 posible delims.
|
Hey, what is the best way to handle obtaining int array from file like this: 1,0.2,3,4 2,4,6,8.24 16.2,7.45,2 when numbers can be seperatet by ',' or '.'. ... |
Aug 5, 2018 at 1:50pm
[5 replies] Last: If you have unix utilities, you can preprocess the file to convert . t... (by dhayden)
|
by justStarting
Getting just value from function
|
so I have a function that is returning a value (the input from a user) but when I am calling this function to another function, it is returning all the data wit... |
Aug 5, 2018 at 1:45pm
[3 replies] Last: Call get_target() just once and store the result in a variable. strin... (by dhayden)
|
by Ch1156
Using private variable from class without getters and setters (1,2)
|
I am trying to practice more on using classes and I have created a banking program but I need to save and load the data but I need to access the private datam w... |
Aug 5, 2018 at 1:19pm
[30 replies] Last: You could use this site. Just look for posts that describe the whole ... (by dhayden)
|
Web Form |
How to write a web form in c++ cgi? |
Aug 5, 2018 at 12:32pm
[2 replies] Last: Hello ahmadlimantawa, Welcome to the forum. If I understand your que... (by Handy Andy)
|
by zyan1zyan
Modular GCD problem of codechef
|
Have anyone got 100 pts in Modular GCD problem of Codechef. please Help to get 100 in it. link to the question is-: https://www.codechef.com/AUG18B/problems/... |
Aug 4, 2018 at 9:11pm
[no replies]
|
by JLBorges
getting wrong answer , need hint
|
An integer that can be represented in the form 2 x +2 y (where x and y are non-negative integers such that x≠y), would have exactly two bits set in its bina... |
Aug 4, 2018 at 7:44pm
[2 replies] Last: I have an vector of pairs of final n along with problem no.Can anyone ... (by iitkgpian)
|
by Kai456
Help with expanding array generation beyond 2d
|
Hi all, I've written a simple script that goes through and utilizes ascii character codes to fill the column of a 2D array of specified size with the alphabe... |
Aug 4, 2018 at 6:27pm
[5 replies] Last: @helios, thanks for the example. It's very interesting. (by tpb)
|
by nomat
Using Assert function
|
Write your question here. Even when i enter the correct input, my program seems to throw and exception. Please assist. #include <cstdlib> #include <ios... |
Aug 4, 2018 at 5:53pm
[5 replies] Last: assertion: n. a confident and forceful statement of fact or belief. ... (by mbozzi)
|
by aqez
Templates help!
|
Hi guys, I'm trying to figure out how I can express something in C++.. The basic idea in C# would be.. private Dictionary<Type, Component > _compo... |
Aug 4, 2018 at 3:41pm
[2 replies] Last: I mean when you put it like that.. haha. I guess I was making it more ... (by aqez)
|
by legionbre
Using transform() in MS Visual Studio 2017
|
I am trying to complete a simple tolower function on string text. #include <string> //getline(), string #include <algorithm> //transform() #include <cctype>... |
Aug 4, 2018 at 3:17pm
[3 replies] Last: Personally I don't have strong opinion. If you choose to use a loop yo... (by Peter87)
|