Beginners - October 2015 (Page 22)

Pointer to a pointer to a pointer .. to a struct
 
Hello. So I have something *like* this: struct node { // magic stuff type t; node *next; } var; I tried to access the next node like: (*var).ne...
[2 replies] Last: Correct way to write this without using pointer member selection opera... (by MiiNiPaa)
by jb88
multiply all numbers within range using for loop
 
Hi! I'm trying to write a code that uses a for loop that allows a user to input a number then displays the product of 1 and the number the user entered e.g. if ...
[4 replies] Last: Ok, I think i've figured it out! #include <iostream> using namespace... (by jb88)
Segmentation fault is happening again and again.
 
I built a program of class datat structure and one of the assignment keep making segmentation fault again and again. Professor gave me a tip that I need to isol...
[4 replies] Last: Look at that line. What does it do? How it works? (by MiiNiPaa)
Need help with a homework assignment (1,2)
 
Hi everyone. I have a homework assignment that requires me to prompt the user to enter the name of a file, and then the output will tell you how many words are ...
[27 replies] Last: this means you are in the wrong directory. You must find the directory... (by closed account 48T7M4Gy)
Need help - various issues
 
New to the forums, registered because I am taking my first C++ class in college and am having lots of issues with this program i need to write. Issue #1 - The ...
[5 replies] Last: Thanks everyone for all the help i really appreciate it. (by AustinCH)
Global Variable Use
 
Hi, I'm trying to reuse a global variable as a string. Basically, I use popen to call a system command, and take that command's output as the contents of a ch...
[5 replies] Last: Thanks Peter. I managed to get past that error, and I've made progr... (by wizworks)
Need help counting brackets in my code
 
i need a program to read its own code and count the amount of open brackets inside it, and tell me the amount at the end. in class, i learned a code to make the...
[2 replies] Last: v++ What value of v was before that? What it should be if this line ... (by MiiNiPaa)
How can i use if in vector code ?
 
at lines 25-27 how can i check for all the "psomi" if there is a smaller "basi " and after cout the number of the "psomi " that there is a smaller " basi " ...
[2 replies] Last: To start off, why do you have duplicate cin >> a statements in your ... (by YFGHNG)
how can i check if one number is smaller than other table ?
 
I have to insert a number a that appears how many bread we have . after we want the diameter of the bread and the diameter for the base of the bread for each br...
[10 replies] Last: i have to check for every bread if its diameter is smaller than the b... (by chicofeo)
What is Echoing the Input?
 
What is meant by echoing the input in C++?
[5 replies] Last: https://en.wikipedia.org/wiki/Echo_(command) echo is an old unix/DO... (by cnoeval)
how to check if two number are equal = with my begin number
 
am trying but i don't know how to check if two number are equal = with my begin number :( and after i must know the position but i don't know why can anyone hel...
[3 replies] Last: yes but i don't know how to check which numbers it will give me the c... (by Antria4)
how to solve this linear funciton ?
 
int w=0, x=0, k=0 int fn(int w) { x+=3 if (w > 2) k += gn(w-1) return w + x } int gn(int x) { w+=2 if (x > 0) k += fn(x-1) ...
[15 replies] Last: Thanks a lot kemort you are a beast. (by totalnooob)
Function returns different results than isolated program
 
I'm working on an assignment where the program must find the Decimal and Binary equivalent of a single Hexadecimal digit. Hex -> Decimal works fine, however Hex...
[2 replies] Last: oh wow. I can't believe i missed that. fixed it and it works fine no... (by claivin)
log game stats and clear consol
 
Hello Everyone! I built a game that's does high low guessing what I'm trying to do now with it is that I want to log the users stats in a log file after the pro...
[no replies]
How would I do this?
 
Using a for loop, write code that will compute the result of an int raised to the power of another int. For example, your for loop should use two variables, o...
[2 replies] Last: Would this be the answer to this question? { int y = 2; for (int... (by Wulfinite)
by merm
Quick question. Related to verilog not C++
 
I just thought I would post this question here since it is similar notation to C++. We can use a multiplexer too in the code. 1. You must name the ALU mo...
[no replies]
New start or continue?
 
Repeat or go forward? I got 56% marks in intermediate now I want to do software engineering so I selected a good university but their merit is high but there a...
[1 reply] : Well? Let's say I am an employer and I have two candidates for a... (by pearlyman)
by turker
c++ plotting
 
Hello all, I have found similar topics on forum but not to answer my problem. I am working on numerical analysis and I often end up plotting x-y scatter c...
[2 replies] Last: Not really. http://matplotlib.org/api/pyplot_summary.html you can see... (by turker)
reading from a binary file to a 2D array
 
Hi! My program manages the type of occupants within an office building. Office building has floors 0-4 and 8 offices per floor (A-H); for example, office 4A is ...
[4 replies] Last: for (int floor= 0; floor < 5; floor++) { for (int office= 0; office ... (by liuyang)
Fibonacci sequence
 
Hello everyone, I have an assignment that requires me to create a code which displays the sum of all even fibonacci numbers. For example, the user inputs 15,...
[6 replies] Last: Break the problem into chunks. First figure out how to compute the F... (by Arslan7041)
October 2015 Pages: 1... 2021222324... 57
  Archived months: [sep2015] [nov2015]

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