Beginners - March 2014 (Page 27)

by DVS84
for loop to while loop
 
Hi guys below is a for loop"given by my lecturer" is the while loop "mine" below that equivalent? just want to make sure im on the right track. n = 1...
[2 replies] Last: Thank you JLBorges (by DVS84)
Code::Blocks - Using two libraries
 
Hello, I want to use Direct X 11 and mingw libraries for my project. Under Settings/Compiler/Search directories/Compiler (and Linker), I've linked to the h a...
[no replies]
How to retrieve original output
 
Hello guys, What should i do if i want the original input to be written out. Example: User inputs ThRee. So output should be like: ThRee ThRee, ThRee ThRee,...
[1 reply] : It sounds like you want to save another piece of information on top of... (by Computergeek01)
Very weird C programing bug
 
i have been working on this bug for ages in my level editor's load(); function and cant seem to fix it infact the ony thing i managed to make it do is 1 read t...
[4 replies] Last: i have got rid of k and this is my function now void load()//l... (by tomplusplus)
double linked list
 
I need to create a Double linked list with prev and next pointers please help me
[2 replies] Last: #include <list> (by TwilightSpectre)
Reverse the order of an insertion sort?
 
We have to write a code to randomly fill an array, then ask for an element, then sort the array specifically with an insertion sort, then cout them in ascending...
[2 replies] Last: @keskiverto Perfect! Thanks a bunch man! (by Icyboom15)
compiling a code into a Hex file
 
how do i go about compiling a code into a Hex file for a PIC chip? it will be a small code that will go in to a PIC16F84 MICROCHIP, i do have a iCA01 USB M...
[1 reply] : You can try on this link http://picprojects.org.uk/projects/mplab/mpl... (by Jecs9)
by gnt101
assign to char * array
 
I was trying to assign a value to a single element of char * array but, for some reason the window crashes every time I use the assignment operation a =...
[1 reply] : Considering this part of the code: char * a = "some text"; You mus... (by Catfish666)
Doubly linked List
 
i had wrote this program which provide 3 cases add and delete the second half and to print . the delete function is not working . please help me #include...
[no replies]
Reading/Writing information to a Binary file
 
When I run the code it works. But when I "Press any key to continue.." I get the following error message. Run-Time Check Failure #2 - Stack around the variab...
[4 replies] Last: Problem solved ! Implemented the changes to the code below, which shou... (by JRimmer)
Design issue.
 
Hey guys, I have an exercise that wants me to identify the design issue with this code snippet. I'm a little unsure as to what the design issue is? It functio...
[5 replies] Last: Right. :) (by Little Captain)
by gduong
derived class constructor
 
I need some help with my constructor in my gaspowered constructor. GasPowered(double e, double f):Car(mak,mod) for some reason the mak,mod is red saying it ...
[5 replies] Last: // declaration /*string*/ void /*get_specification*/print_specificati... (by JLBorges)
binary search trees
 
so that max() return an iterator pointing to the maximum tree node, and depth() returns an integer indicating the depth of the tree. Note that all you need to d...
[3 replies] Last: whole code part 3 template <typename T> void stree<T>::erase(iterato... (by acnlproblems)
Dice Roll prediction.
 
Guys please help me on this one. Write a program that asks a user to predict how many rolls of a single die it will take to reach 100. When all rolling is f...
[4 replies] Last: No problem, I'm new to coding ( sorta kinda eh idek ) -- I like the ch... (by Electodemon)
Using class
 
Define a class for a type called CounterType . An object of this type is used to count things, so it records a count that is a nonnegative whole number. Inclu...
[2 replies] Last: Thank you very much. (by Stephanie16)
Dynamic array (with negative indeces)
 
OK, everything looks alright to me, but I'm pretty green when it comes to this. It is compiling and running fine, but it isn't outputting what I am expecting. M...
[8 replies] Last: WHat are lines 11 to 24 supposed to be for in your header? They're not... (by LB)
How do I read this exoression?
 
I'm struggling to figure out this expression. Int I =o;j=5, k=I=--j; I is equal to zero and j=5. Last expression, k and I are equal to 4. Woul...
[10 replies] Last: Ok here we go. j = 4 k = 4 k = j-- = gets evaluated before -- k ge... (by Renthalkx97)
What's the difference between these two constructors?
 
I've came across these two different constructors but I'm unsure as too why they've both different. The first uses a colon after the constructor header and the ...
[3 replies] Last: yes and np (by Little Bobby Tables)
Passing a vector element index
 
Is it possible to make the following statement work... point x = g.Cell .GetPoint(); Assuming 'g' is a grid class that contains a 'Cell' vector like this......
[5 replies] Last: I think I'm misunderstanding what you need. You said you needed a func... (by Renthalkx97)
Difference between two
 
Please explain difference between these . void Changethecontent(int Arr , int Count) { for (int C=1;C<Count;C++) Arr[C-1]+=Arr ; } void ChangetheCon...
[9 replies] Last: Thank you @Austin and @freakengineers tht means in the second program... (by Suma Menon)
March 2014 Pages: 1... 2526272829... 79
  Archived months: [feb2014] [apr2014]

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