Beginners - June 2017 (Page 9)

My first puzzle solver
 
Hey there, I'm 15 years old and interested in C++ So the CEO of ROBLOX (where I learned to program & I still play games there daily) posted the following twee...
[2 replies] Last: There is no problem, I just wanted to share what I made and wanted to ... (by bram1253)
copying dynamic arrays
 
i wrote a code that will asks the user to enter a sentence and store the string in a dynamic array. copy the content of the old dynamic array into the new dynam...
[4 replies] Last: i just can't figure out why i am getting an access Access violation... (by masterinex)
by Kuluoz
How to search unicode string in unsigned char *buffer?
 
Hi friendz, i am new in c++. maybe my question is childish. unsigned char * buffer = NULL; /*some code for assign data for buffer */ wchar_t data = L"c...
[7 replies] Last: Thanks. It is working good :) (by Kuluoz)
What is the point in returning a const?
 
Can anybody provode me with an example about the use of const return type and how exactly it os useful?
[4 replies] Last: C++ Core Guidelines say, in F.20 https://github.com/isocpp/CppCoreGuid... (by Cubbi)
by xxvms
Pointer swap
 
Hi there :) I have question, in my assignment I have to switch string using pointers. I done this with use of pointer to pointer. However, i think this shoul...
[8 replies] Last: thank you for this :) (by xxvms)
Counting Problem
 
Write your question here. Hello All. I'm new here and also new to C, C++. I use Dev-C++. I want to learn to learn C++ for my basic needs. First of all i ha...
[3 replies] Last: @TryHardGon Thanks for the beer offer, but I don't really care for be... (by whitenite1)
dynamic array input
 
i wrote a simple program, which asks the user to enter a number other than -1. if the user enters that number , it will ask him to enter an another number and s...
[7 replies] Last: thanks guys (by masterinex)
Help with case sensitivity!
 
Hello everyone. So here is the assignment: Your program should store the correct answers shown above in an array. It should ask the user to enter the student’...
[4 replies] Last: Thank you!! (by lisagimros)
Help with creating hash table functions
 
I am creating a simple hash table and I was given some source code by my professor. Instructions are as follows: -Two tier hash table: buckets of main hash t...
[1 reply] : Your classes are mangled – for e.g you say that: class "HashTableO... (by gunnerfunner)
by riancu
undefined reference to error
 
I downloaded a library called Aquila. They provided examples of how to use the library, but whenever I run them I keep getting errors "undefined reference to......
[1 reply] : I think you would need to build the library first. How to build from s... (by JLBorges)
problem with my program's math
 
The math in my program is almost right. The problem is it doesn't find the cents when my if statement subtracts from a variable in the judgement function. Thank...
[2 replies] Last: oh my gosh haha. Thanks apparently I am tired and missed that. (by asp1010)
by Kiryu
Storing many derived classes without pointers
 
I'm currently writing a Minecraft-like game (Actually cubeworld, but no one knows what that is). Of course the map consists of many different cubes. Because I w...
[17 replies] Last: Sorry for the late answer, I kinda forgot about it because of frustrat... (by Kiryu)
Deleting pointer
 
Why do I get a random value here I deleted p. Also, why is compiler allowing p . I get it that p is not set to null but doesnt deleting a pointer mean that par...
[2 replies] Last: its generally considered a good plan to do this delete p; p = null;... (by jonnin)
by xxvms
Exercise :)
 
Hi there I am helping educational website with their C++, Website runs scoring system, where you have to resolve C++ puzzles and person that does this shoul...
[10 replies] Last: wow thanks JLBorges (by xxvms)
by ttimes
Need help with arrays and linear searches
 
I have an assignment due shortly and need some help. Here is the assignment information : For this assignment, you’ll need to: 1. Develop a short C+...
[3 replies] Last: > cout << numbers(index) << " "; > This code attempts to read exactl... (by ne555)
by DTM256
time.h vs Chrono
 
I've used #include<time.h>, but I've never seen #include<chrono> before and I played with time code last year. - I've read through the forums - I've done go...
[5 replies] Last: And on that last note: http://en.cppreference.com/w/cpp/chrono/c/clock (by closed account 48T7M4Gy)
Cannot get XLSX I O library example to compile
 
I am writing a program which involves the user populating an excel settings sheet. I then read it and the values feed into the program. There seem to be a...
[4 replies] Last: thank you so much mbozzi!! (and apologies for a very late reply) this ... (by erixliechtenstein)
by Arcy
Copying a C-string into a new block of memory
 
Greetings, The exercise is about writing prototypes and definitions of the functions present in the given programme. My questions are: 1) What's the point ...
[3 replies] Last: Thank you to both of you for your help. (by Arcy)
Pre and post increment
 
I know a built in type is not an object but I really want to understand how post and pre increment works. So is the explanation below correct? #include<io...
[3 replies] Last: since the type of x is int, there is no function call: a built-in oper... (by Cubbi)
difference between pointer variable, pointer value, pointer address, variable address
 
sorry i post code in c!!! first code: void Push(struct node** headRef, int data) { struct node* newNode = malloc(sizeof(struct node)); newNode->data = data; ...
[4 replies] Last: @jonnin thanks for the explanation!!! So i can think that &head is a l... (by surfersss)
June 2017 Pages: 1... 7891011... 16
  Archived months: [may2017] [jul2017]

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