Beginners - March 2015 (Page 35)

by Bjord
cannot open output file \\bin\Debug\Code:Blocks SFML Template.exe No such file or directory
 
I recently installed code::blocks, and it appears to be working fine. It is able to run a "Hello, world!" program with no issues, but when I linked it with SFM...
[4 replies] Last: Thanks for catching that! That fixed it. (by Bjord)
by camk16
Trouble with "pow" function
 
I know posting a new thread for the same question is frowned upon around here, but I stopped getting replies in the other one, so.. Here is the Question: Writ...
[2 replies] Last: Don't you mean the sum from i= 1 to n of (i+i 2 )/3? The sum for i=1 ... (by dhayden)
by alexBB
Extracting real part from complex number. Part II
 
I just had a thread closed on the subject (FFT): http://www.cplusplus.com/forum/beginner/159038/ That code works well. In fact I need to make it dynamic, the ...
[3 replies] Last: #include <cassert> #include <vector> #include "complex" // non-stand... (by keskiverto)
Assignation with an array
 
hi, i try to assign a value to an array type //in my .h file array<CompartmentTissue, MAX_TISSUE> tissue; //in my c++ file for (int i = 0; i < ...
[3 replies] Last: Get rid of the new in your first post, and see if it works. the new ... (by Ganado)
operator of "*" must be a pointer
 
Why do I get operator of * must be a pointer error when I write this code? uint32_t a = 0x40023830; *a= 0x9;
[2 replies] Last: a is not a pointer so you cant do *a =. to put it simple *a means set... (by Precious roy)
C++ for a thirteen year old (1,2,3,4,5)
 
Hi! So, I am a thirteen year old, who wishes to try out C++. I entered the world of programming when I was 10 by learning about Python. Next I moved to Java, w...
[95 replies] Last: Alright that is great because the next section is all about pointers. (by GreatBlitz)
A little help here please!!!
 
Hello guys.I have made a program that asks the user to type his/her name and password.It will continue only if username is "user" and password is "pass".Otherwi...
[3 replies] Last: When validating input, I often find it easiest to break out of the loo... (by dhayden)
Is there a virtual constructor?
 
I encountered a problem like this in my project: I designed a base class: class base { public: std::vector<double> value; base():value(3, 0) {} ...
[3 replies] Last: > I searched web about your method of protected constructor, it is sai... (by JLBorges)
New to Network Programming
 
HI All, I have a 10 +years Networking Experience. I don't have any programming background. I am interested in layer 3 and layer 2 Networking protocol develop...
[1 reply] : http://www.cplusplus.com/forum/lounge/85135/ http://www.cplusplus.com... (by anup30)
by TeeK
Simple do while loop wont work
 
Im a beginner trying to learn c++ on my own. The program is a soda dispenser that gives you whatever soda you would want it to give you. The program works fine ...
[2 replies] Last: Ahh ! thanks... it worked great after some edits. I discovered my prog... (by TeeK)
by GunR
terminate called after throwing an instance of 'std::invalid_argument'
 
So I'm having a weird issue, The compiler doesn't seem to like it when I use stoi in my current project. I have used this exact code before and it complied and ...
[2 replies] Last: Oh god I'm dumb, I think I forgot to add the .txt file I want to use i... (by GunR)
by JB5056
Vowel Removal
 
I have this assignment Assignment: Write a program that prompts the user to input a string. The program then uses the function substr to remove all vowels from ...
[5 replies] Last: I would rather stick to algorithms bool isvowel(char& c) { auto ... (by closed account SECMoG1T)
terminate called after instance of std::out of range what() substr?
 
Can anyone tell me why this code throws the error: Enter a fraction expression: terminate called after throwing an instance of 'std ::out_of_range' what(): ...
[no replies]
Nested Loops
 
Print to the screen the following sequence, namely 1, 2, 3, 4, 5, 1, 2, 3, 4, 1, 2, 3, 1, 2, 1. I know I need to use a nested loop, can someone give me a hand ...
[5 replies] Last: I don't think so. void f(int n) { for (int i=n;i>=1;i--) for (int... (by Justin33)
Error Traping (1,2)
 
How can I error trap my program that allows only numbers to be enter? Thanks
[34 replies] Last: @ryanjoshiii about that try-throw-catch that i provide, im actually n... (by quisite)
Unable to get switch statement to properly call functions. Any assistance greatly appreciated!
 
Hello, I'm trying to write a program for my programming class using Dev C++ on Windows 7 that displays several arithmetic operations in a table. The program s...
[13 replies] Last: Hi, You should check for division by 0. :+) Hope all is well. (by TheIdeasMan)
For loop only works half of times specified
 
I"m trying to count the # of successful outcomes of running a certain test (code is not given below). I need a loop that runs the test for 20 times and prints ...
[3 replies] Last: Thanks for the tips! I guess I kind of confused for and while loops a ... (by rokujohaven)
Help With a Loop
 
Print to the screen the first n positive cubes , namely 1 3 = 1, 2 3 = 8, 3 3 = 27, ..., n 3 . Can anyone help me with this? I'm sure I need to use a ...
[2 replies] Last: for (i =0; i <n; i++) { Print i*i*i; } (by closed account SECMoG1T)
Algorithm to code design
 
Any idea how to implement this algo rithm using C and C++. I am a ece student with very basic knowledge of C and how to implement the algo rithm. Please help ...
[no replies]
How would I single out the last digit of a four digit code?
 
I have been tasked with determining the origin of an orange. If the last digit is 7 then the orange is from Florida. If the last digit is 4 the digit is from Ca...
[2 replies] Last: Wow... I have no idea why I overlooked that, something so simple. Time... (by Comicalizard)
March 2015 Pages: 1... 3334353637... 51
  Archived months: [feb2015] [apr2015]

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