
please wait
by servbot
Write a character literal whose value is an asterisk (*).
|
I'm using codelabs to do some programming exercises, and I can't for the life of me seem to get this right. I would greatly appreciate any help. Thank you. |
Feb 5, 2017 at 3:46am
[2 replies] Last: Ahh, I see. Thanks a lot! (by servbot)
|
by Kourosh23
Arrays of strings - BUG!
|
I understand the correct implementation and usage of arrays regarding with indexes and memory locations, but the output of the code is not what I am looking for... |
Feb 5, 2017 at 3:38am
[7 replies] Last: Wait, I meant what if {"HELLO"} is like this {"H", "E", "L", "L", "O"}... (by Kourosh23)
|
by zivvy
Writing a program to find x^n
|
Write your question here. hey guys, I am supposed to write a program to work out x^n but I still don't understand C++, we were legit introduced to c++ 2 weeks ... |
Feb 5, 2017 at 3:32am
[10 replies] Last: 0 to the power 0 is the fourth one? (by closed account 48T7M4Gy)
|
by bacardiman
Storing Data and Using Loops
|
I've been assigned some homework in class, and I understand if homework is frowned upon. The problem is, I believe I have a learning disability, and while I bel... |
Feb 5, 2017 at 2:28am
[2 replies] Last: Thanks! That did it! (by bacardiman)
|
by Akaso
HELP!!!!
|
SO i'm trying to write this program for my class have no idea what to do. It's a currency converter. this I what I have so far but when I type a number my math ... |
Feb 5, 2017 at 2:25am
[4 replies] Last: cin and cout are C++. printf and scanf are C. however, printf is muc... (by jonnin)
|
by nchron
1st Program Critique
|
Hello all, I am new to CPP programming. I have some PHP experience but have finally taken the plunge to desktop programming. I've begun in the world of C / C++... |
Feb 5, 2017 at 2:20am
[2 replies] Last: For a first program its pretty nice. Learn to define constants at the... (by jonnin)
|
by baelec
Cannot convert float to float (calling function values inside another function
|
Hello all, first time poster here. I keep getting the following error when trying to calculate the average on line 142/143. assignment3.1.cpp: In function ‘i... |
Feb 5, 2017 at 1:15am
[2 replies] Last: designcalc is a function, and you're trying to pass it to a function t... (by helios)
|
by MAK001
Compare two strings in C++
|
I need to compare two strings in C++. Suppose the first string is sol and the other one incomplete_ans. They both have the same length. I am using the compare f... |
Feb 4, 2017 at 11:41pm
[2 replies] Last: if ((sol.compare(incomplete_ans)) == 0); Remove the semi-colon at ... (by wildblue)
|
by katiestevers
Can I use a pointer to print only the first word of a cstring?
|
Hello! I want to know what I need to add to my program in order to keep it opperating properly if someone doesn't follow the directions. For example the it sa... |
Feb 4, 2017 at 11:13pm
[13 replies] Last: Hello katiestevers, Good to see you back. In answer to your new subj... (by Handy Andy)
|
by llSPEEDll
Error, seeking help
|
So I'm trying to find the average on 3 months of rainfall. Whenever I run this code, it asks for the first month only. #include <iostream> using namespa... |
Feb 4, 2017 at 10:36pm
[2 replies] Last: You need to do the average calculation after getting values for the mo... (by joe864864)
|
by MAK001
how to look at each character of a string without for loop in C++
|
Suppose I have a character, and I want to check if the character is in the string. For example, I want to know if 'a' is in the string "artifact" without using ... |
Feb 4, 2017 at 10:02pm
[2 replies] Last: You can use either std::string::find or std::find from the <algor... (by closed account E0p9LyTq)
|
by xymobb
Duration 0 when testing run time of a function.
|
I am having a problem with the codes below. include<iostream> include<chrono> using namespace std; auto t1 = chrono::steady_clock::now(); ... |
Feb 4, 2017 at 9:34pm
[1 reply] : yep. If your function executes too fast, you can't register the time ... (by jonnin)
|
by Bavro3
Displaying an integer in Win32 API CreateWindow function
|
Hello. What i'd like my program to do is to display an integer after a button is pressed. For example, I've got the button 'Scavenge', which after it's pressed,... |
Feb 4, 2017 at 5:58pm
[2 replies] Last: Thanks! I'll look into it (by Bavro3)
|
Good Beginner Projects for Certain Levels? |
Hi! I'm new to C++, well sort of, I've tried learning it in the past but was busy with other things, and I think the one thing that caused me to not learn as we... |
Feb 4, 2017 at 4:54pm
[2 replies] Last: Ah that helps a lot! Just what I was looking for. When I said "where... (by TheIvernGiant)
|
by Kourosh23
Arrays and for loops
|
Just a personal contribution to the open source code. Hope it helps. #include <iostream> using namespace std; int main(){ int array = {4,2,3,1,5,6,7,11,... |
Feb 4, 2017 at 10:37am
[2 replies] Last: int average = sum/size; // sum = 66 and size = 11. To get average 66... (by TheIdeasMan)
|
by Gboss59
Delegating to a linked issue
|
Hi I am doing a chapter in my book about delegating to a linked list. When I compile the example in the book : http://pastebin.com/Ahe8XMb1 http://pastebin.... |
Feb 4, 2017 at 10:36am
[2 replies] Last: Hi I already did that in http://pastebin.com/aCL7uR2u to get it runnin... (by Gboss59)
|
by twownage15
Segmentation fault along with core dumped after running
|
So I still can't seem to find this seg fault when compiling on ubuntu. I ran valgrind and appears it's coming from this function. What is a good way to find the... |
Feb 4, 2017 at 10:17am
[5 replies] Last: Just a quick question: why are you using delete on something you did... (by TheIdeasMan)
|
by CajunCoder
How to use external libraries (SFML) with MinGW in the simplest way possible
|
Hi everyone. I am currently using very simple tools for learning C++. I'm writing my code in either of vim or sublime text, and compiling in command line us... |
Feb 4, 2017 at 10:06am
[no replies]
|
by cristina999
Programming Assignment: Making change
|
Hello! I am very NEW to programming this is my second week in my C++ class and I am having trouble with a part of my assignment. The assignment: "Write a p... |
Feb 4, 2017 at 6:15am
[2 replies] Last: AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH JOE!!!!!!!!!!!!!!!!!! That's ... (by cristina999)
|
Trouble with player health (Basics) |
Hi I'm testing out what I can do with C++ and I want to eventually develop a simple text based game. So I'm trying to create my own health system. The problem i... |
Feb 4, 2017 at 5:35am
[6 replies] Last: Ok thanks guys, I got it working (thx shadder). Btw Flaze07 I'm using ... (by Chickenman256)
|