Beginners - April 2015 (Page 38)

Program returns garbage value
 
I understand that since the value requested isn't found, there is no "id" available for it, so the...
[1 reply] : Perhaps the question you want to ask doesn't really have to do with ex... (by ultifinitus)
by mi6aka
bool function return
 
hey guys, I am trying to write a function which compares 2 arrays of characters. At the end it only ...
[2 replies] Last: Glad you figured it out! Looks to me like you included your else state... (by ultifinitus)
cout not declared?
 
I'm teaching myself and bought a c++ compiler and I can't figure out why this cout is not declared. ...
[7 replies] Last: Things can get pretty messed up. The first two answers do a pretty goo... (by closed account 2LzbRXSz)
Deallocating Pointers with Arrays
 
I need to deallocate arrayPtr in my addNumber function. I know I'm supposed to use delete to somehow...
[6 replies] Last: ultifinitus Thanks for the explanation. It makes a lot more sense now... (by misskmarie)
Function call from a class
 
Write your question here. Whn i call this function in Bankaccounts.cpp - file from my main nothin...
[2 replies] Last: Thank you very much Peter87 - That solved my problem, I really appreci... (by patriic48)
Using pointers?
 
Hello. I'm trying to get into pointers. Let's say this was real program. //... else if (mood =...
[6 replies] Last: Yes. (by TarikNeaj)
Bulls and Cows
 
Hi everyone, I was asked to write a Bulls and Cows game for homework and I've done the most. But cou...
[2 replies] Last: This is my code for this exercise but using letters This was more comp... (by etrusks)
by eastw
How To Calculate Frequency In An array
 
Assume the array has [0 0 1 1 1 0 0 0 0 1 1 0 1 1 1] I would like to store 1's that has been repe...
[1 reply] : Why u dont try something like this?: arr = [0 0 1 1 1 0 0 0 0 1 1 0... (by EdevanX)
Please correct Program
 
When is Wrong in my program please cerrect it . #include <iostream> #include <string.h> using ...
[3 replies] Last: This code works, don“t forget to comment your code in the future. #... (by patriic48)
by Cobey
save value as Pointer address
 
Good Night/Morning CplusCplus int i = 123456; how can save Value i as address. Like: printf("Ad...
[3 replies] Last: stringstream http://www.cplusplus.com/reference/sstream/stringstrea... (by Cobey)
strstr() overloading?
 
solved.
[3 replies] Last: What do you expect to happen, if you do: const char * foo = "Hello"; ... (by keskiverto)
Random Number Guessing
 
I'm pretty new to coding so please excuse me if these are dumb questions. This code needs to prompt ...
[13 replies] Last: You continue to define your function within int main(); I suggest you... (by germanchocolate)
Converting string to hex
 
Hello. I need to convert string of decimal number to hex. I need the string to remain string (or at ...
[7 replies] Last: Thank you all. I'd be grateful if someone link me some good sources of... (by mighty asker)
Passing Parameters As Pointers?
 
This is my code that I have so far and I am not entirely sure what I am doing, I need some help plea...
[5 replies] Last: You mean this? http://www.learncpp.com/cpp-tutorial/78-function-point... (by fg109)
Pyramidal display
 
I need to get the zeros in this array to display as a pyramid. I've already set it up to where just ...
[1 reply] : if (np == -1) cout << ' '; else cout << setw(2) << '0'; ... (by fg109)
Array as a Pyramid
 
Write your question here.
[2 replies] Last: Ignore this post, I guess the question posted twice, once blank. (by confusedengstudent)
Destructors being called twice in inheritance
 
: Problem solved. It is due to that I didn't put the copy constructor and also the function of copy...
[5 replies] Last: We can clearly see that the OrderedLinkedList has no data members of i... (by keskiverto)
by Lee125
Stack,queue and string.
 
Can I know should we use array to store the number or words. Is that wrong when we use array?
[1 reply] : No, it's not wrong. Arrays have some advantages (no runtime memory all... (by Gamer2015)
by pik
selection sorting pointers
 
Hello. I had written a program where 10 numbers are infiled and placed on a linked list. They are t...
[1 reply] : What do you mean by "sort pointers"? Is it that you don't want to swa... (by keskiverto)
How to create simple gui in c++?
 
I use SFML but it seems like I can't for the life of me create a decent menu/gui with it. Is there s...
[1 reply] : Qt provides a large API and a GUI-Designer As you can probably imagin... (by Gamer2015)
April 2015 Pages: 1... 3637383940... 52
  Archived months: [mar2015] [may2015]

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