Beginners - November 2015 (Page 34)

Differences in declaring a struct variable
 
What are the differences between these two declarations for a struct? Btw, I wrote this code; this is not homework or anything. And apologies, but the code bel...
[1 reply] : Both var1 and var2 is stored on the stack. var2 points to an object on... (by Peter87)
Struct of array
 
Need to output the winning division sales of a company's region using struct and an array. I'm having trouble with compiling it. I think i'm close just can't se...
[8 replies] Last: I see why i needed to do DIV div_info = { { 0, "Northeast"}...} ... (by phatboy)
by HG319
Traverse a leftist tree
 
I am given a problem where I need to search for any element in the leftist heap, not the min. I am having trouble solving this problem. We were told to create a...
[2 replies] Last: Traversing through an AVL tree and Binary are easy to me, I was trying... (by HG319)
HELP ME PLEASEE!!!
 
This is my question.. is there any source code for this question.. I cant find and im using Visuall C++ 08 express edition.. can anyone help me pleasee :'( ...
[2 replies] Last: I have tried this #include<iostream> #include<windows.h> #include<con... (by noob coder)
array with two ints for the mode
 
I need help to cout my two modes in my array. I have both 3 and 4 with the equal amount of integers but only 3 is shown as the result. How do I make it show bot...
[7 replies] Last: I really appreciate the help. My homework was already turned in, but ... (by cire)
advice would be wonderful
 
ok so i am way behind in my studies i am a senior about ready to graduate with a degree in game design and simulation programming. and when it comes to c++ i am...
[3 replies] Last: I'm also sorta new so I can't be of much help but some people gave me ... (by ProgrammingNerd9311)
Templates Class
 
Can someone please tell me whats missing It shows that there is an error and i cant figure out what it is It used to be normal class but i have been asked to ...
[3 replies] Last: > It says too many arguments foo.cpp|88 col 18| error: wrong number ... (by ne555)
cout array one page at a time
 
i have an array of 20000 elements and i need to print out but it has to be done in a clean matter filling one page and continue when the user wants here is w...
[3 replies] Last: I would like to do it like that: void showarray(const int array , i... (by Thomas1965)
Array Help Needed V2
 
As you can see, in the while loop I am trying to do the statements. Then print out the array. My problem is that, at the start I am printing out an array random...
[1 reply] : If you need it to print again, just call printArray again. But call ... (by JayhawkZombie)
error at the final result of a linked list
 
what i have to do to have a wright result? the out put is always one number like 5555555 or 666666 #include<iostream> using namespace std; int n; s...
[1 reply] : To build you linked list, you'll need some dynamic allocation. Inside ... (by JayhawkZombie)
Queue and Stack
 
Hello i have queue with n element i want to pop n/2 element and push them to another queue for example q1 : 1 2 3 4 5 6 7 8 command q1:1234 q2: 5678...
[3 replies] Last: I need to call second teller and half of customer ll move there #in... (by content)
SET THEORY, Dynamic Memory
 
I need to do the following: create a union method (i.e. union(set)) that creates a union for two sets. This method should somehow invoke the elements method...
[no replies]
inputting appointments
 
Hello, This is homework. I've made a program that lets me set up appointments I could enter how many I wants but it only prints out 1 person even though I ...
[3 replies] Last: Thank you! I'll post back once I've rewritten my program. (by zenakent)
Working through Classes for beginners
 
I have the following code from C++ How to Program and it gives the following error when compiling. I have copied the three files from the book and checked them...
[5 replies] Last: Thanks again! I will take a look at man clang and digest - cheers! (by jamesfarrow)
can someone explain me this program?
 
This program tells us the number of digits we enter. For example; 1. If we enter 1, the program will display "You entered 1 digit(s)" 2. If we enter 51, the pro...
[1 reply] : This is base on integer division. There is no position after the decim... (by coder777)
Reading a file and sorting by columns
 
To read a file with the format: Susan 24 23 60.4 Sam 32 19 93.5 James 16 92 48 and sort it by an arbitrary column, for example, by column 0, the output ...
[no replies]
I am making a Pangram and Error occurs "There is no match for Operator"
 
Error which occurs is, no match for operator >= and <=, It will be so helpful if you guys guide me to some modifications in the code and i can complete my Pangr...
[1 reply] : You are trying to compare a string with an integer. The compiler doesn... (by Peter87)
bubble sort not working
 
Hello, I can't get this bubble sort to work? I think it's a problem in the arraysort() method itself. thanks. #include <cstdlib> #include <ios...
[4 replies] Last: So what should it be instead ? Pass int by value. Yes, pointer can ... (by coder777)
by GilTea
Code Simulation issue
 
Hi there, I have been working on a program that has the following features and have come pretty close to what I believe is a final product. 1) Choose a r...
[2 replies] Last: Now the issue I am having is that when I run my program the starting ... (by cire)
Codeblocks error when build
 
Hi guys , I looked on the manual and on google as well without finding a straight answer to what I am about to ask here. This code in DevC++ works and compiles ...
[2 replies] Last: Ok Thank you, I will keep digging. (by LifeFiber)
November 2015 Pages: 1... 3233343536... 53
  Archived months: [oct2015] [dec2015]

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