Beginners (Page 6)

by SmOgER
how to assign characters with empty spaces into single string
 
If i have potatoe onion tomatoe yeah somewhere in txt and I know that it's total of 26 characte...
[11 replies] Last: Managed to fix this by ending line before reading chars with in.ignor... (by SmOgER)
__TIME__ !change value
 
Hello I want to add time that change every 1 second to my simple c++ game I am working on now, but i...
[1 reply] : __TIME__ is a string literal in the form "hh:mm:ss" containing the tim... (by AbstractionAnon)
No Value-command?
 
Hello! I was just wondering if there is a command that tests if a variable has a value or not. As...
[8 replies] Last: If you find the question answered, you should mark the thread as solve... (by Marcos Modenesi)
program suddenly stops working
 
hello. i wrote this inventory practice code and everytime i compile+run it, it says "inventory pract...
[1 reply] : What is the initial value of numItems ? (by Chervil)
swapping parts of an array around
 
What would a good way to swap artistfirstname with artistlastname in array = {{ "artistfirstname a...
[8 replies] Last: @Cubbi What I'm trying to lead to is that if the program operates in... (by vlad from moscow)
[SOLVED] Leaking memory
 
Consider: int main() { for (int i = 0; i < 100; ++i){ int* ptr = new int; } re...
[4 replies] Last: Thank you all for your answers. Very helpfull. (by Marcos Modenesi)
by piczim
Error messages
 
I have two error messages in the code below that I have no idea what they mean. Knot knowing what th...
[1 reply] : The messages mean what they say. Here switch(inputamount) should be... (by Chervil)
Weird and Unwanted Error!
 
Hello again! I'm writing a "Rock, Paper, Scissors"-program, and it is going pretty well, except f...
[14 replies] Last: No. I think I read somewhere that it is not necessary, but I still alw... (by GoranGaming)
lvalue compile error
 
Why am I getting the compiler error below? typedef uint8_t byte; setBit(char *ch, int bit...
[2 replies] Last: I originally had *ch |= mask; and the compiler complained about an i... (by SeeCwriter)
Problem with for loop in member function
 
I am trying to get a handle on class templates and I wrote a simple template to create objects able ...
[2 replies] Last: Thank you for your quick reply, you are completely right. I can't beli... (by R10111001)
Confused about what a template dose
 
I completely don't understand any thing about templates. I read books on C++ to help but i just don'...
[3 replies] Last: Templates enable code reuse, by allowing a function or class to work w... (by nkendra)
Calculator
 
Hi all! I want to make a calculator that calculates the product between two numbers, but I can't sol...
[1 reply] : Sorry, just figured it out! (by Isengardium)
String or int as part of variable name
 
int n = 9; while (n > 0) { Question???.ask (); }; Can I replace ??? with the value of n ...
[18 replies] Last: No worries - glad you managed to find the problem. (by MikeyBoy)
Error: expected unqualified-id before '{' token
 
Hi, I am using an online compiler, and I have an error on line 10 of my code, apparently. The error ...
[2 replies] Last: What pebble said, then remove the semi-colon from the end of line 4. (by Jaybob66)
Reading some lines with diferent variables
 
Hi!! I'm new here and new programming in C++. I'm doing a program that I need t read from a fi...
[12 replies] Last: Hi... Sorry for the late reply. Thanks all for your help. I already... (by Nuno Santos)
How to change returntype of function during runtime?
 
Hi all, I am currently a beginner in C++ and I have a doubt. Suppose I have a function which check...
[7 replies] Last: @andywestken Thanks for your precious advice. :) -Himansh (by Himansh)
4 Variable K-Map Simplifier Problem
 
I was doing this program to simplify the 4 variable K-Map. The program works fine except for minter...
[2 replies] Last: Thanks for the response. - I will do that. - Cant make a loop as far ... (by SuperKXT)
Help with fscanf()
 
I feel like I'm missing something. I'm working on a basic simulator for school and I've been playing...
[6 replies] Last: I'd like to point out that since you are using C++, you shouldn't be m... (by Duoas)
by Blank
adding two random numbers..
 
i need help...this is what i have so far.. Write a program that can be used as a math tutor for...
[1 reply] : quite a relevant example here: http://www.cplusplus.com/reference/cstd... (by mutexe)
Reading txt file in to an char* array.
 
Write your question here. Put the code you need help with here. #include <iostream> #inclu...
[10 replies] Last: I didn't log in in the weekend, so you might have completed it. Here i... (by tath)
Pages: 1... 45678... 98
  Archived months: [apr2013]

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