
please wait
by mainecat
How to handle C-style Strings
|
Hi all, I seem to run across this a lot where old C code uses this shorthand style to create an array of pointers to C-strings: #include <stdio.h> void exis... |
Jun 7, 2018 at 8:11pm
[4 replies] Last: Yes, this does look more thematic. I've never used char** , so now I ... (by mainecat)
|
How can I use and emtpy 2-D array as a function argument? |
What's up!.. Say, for example, I want to fill a 2D array with dots '.' to later print it as a table or as a square whatever. something like this: ... ... ... |
Jun 7, 2018 at 7:49pm
[9 replies] Last: [quote=tpb]It would be possible to write just one operator<< template ... (by closed account E0p9LyTq)
|
by Eddy1501
Repeate code a set number of times (Urgent)
|
Is there a way to make this look more neat and tidy, in place of this mess? //Tree short led blinks digitalWrite (LED_RED, HIGH); delay(500); dig... |
Jun 7, 2018 at 5:39pm
[5 replies] Last: I think I may look at them all, and in the doing trying to understand ... (by Eddy1501)
|
by RslWlsn3
How to convert string to char* and pass it without it getting deleted on the stack
|
This code gives me the output: taco ╠╠╠╠╠╠╠╠ How can I make the second cout work? Pretend that main is a console and gmc is a dll. ... |
Jun 7, 2018 at 5:36pm
[14 replies] Last: Without knowing anything about g2, it sounds as though there's some ki... (by MikeyBoy)
|
by drewdizzle92
Pokemon game project
|
Write your question here. |
Jun 7, 2018 at 5:32pm
[2 replies] Last: Use a game engine for this project. If you really insist on just codi... (by Manga)
|
by RslWlsn3
Run-Time Check Failure #3 - The variable 'GsiReturnObj' is being used without being initialized.
|
Write your question here. Cant figure this one out. What am I missing? Run-Time Check Failure #3 - The variable 'GsiReturnObj' is being used without being initi... |
Jun 7, 2018 at 5:05pm
[8 replies] Last: Thanks tpb, that is very helpful! (by RslWlsn3)
|
by Dani90
find all possible permutation using backtracking algorithm
|
Hi..How do I write backtracking algorithm to find all possible permutation of different integer? |
Jun 7, 2018 at 4:20pm
[3 replies] Last: Are you wanting to print out all possible permutations? That quickly ... (by Manga)
|
by Mc Daniel
PAV CALCULATOR (P=PERIMETER, A= AREA, V= VOLUME)
|
Good day I have a challenge in making my program to repeat its process #include <iostream> #include <cmath> using namespace std; int main() { float P... |
Jun 7, 2018 at 3:41pm
[4 replies] Last: add a case for an exit code, and change the loop logic to end if the u... (by jonnin)
|
by smarkus
clothing size project
|
This program asks for a users height, weight, and age, and based off of that, it creates a clothing size. for the jacket size, the height times the weight di... |
Jun 7, 2018 at 11:52am
[1 reply] : > however, I don't get the complete decimal don't understand your issu... (by ne555)
|
by Unrepeatable
custom operator / in my string
|
Hi there! I have a question, how I can do operator / correctly. Operator / its like * but reversed. Operator * works like this - if it finds the same character,... |
Jun 7, 2018 at 10:47am
[1 reply] : You need to use bool: } String operator/(String kek) { //Operator '... (by coder777)
|
by vandita
minimum time after which line segment connecting points P and Q does not intersect the sphere
|
Hello, This is my first post here. I am trying to solve a question You are given two points P and Q and an opaque sphere in a three-dimensional space. The ... |
Jun 7, 2018 at 7:52am
[2 replies] Last: @vandita, The logic that you are trying to implement is fine: this is... (by lastchance)
|
by nearc
skip line
|
How to print specific txt file line? I want void function to print selected line using switch. sry for code in different language #include <iostream> ... |
Jun 7, 2018 at 7:48am
[7 replies] Last: [quote=nearc]I'm getting errors no matching function call to max() and... (by Peter87)
|
by bestblueever
Reading and Writing to a file.
|
I want to modify my program so that the program asks me to input the name of the file for input and reads the string from that file, then asks me to input the n... |
Jun 7, 2018 at 7:28am
[1 reply] : Using files. http://www.cplusplus.com/doc/tutorial/files/ (by Thomas1965)
|
by jamos
2 Player Battleships Game
|
Ok I'm a total scrub at C++ and need all the direction I can get. I'm tasked with creating a 2-player Battleships game and so far have this code with the gri... |
Jun 7, 2018 at 5:44am
[17 replies] Last: int main(){} //While Loop Here void initBoard(char board ){... (by H00G0)
|
by smarkus
Wrong calculation
|
I am writing a program that asks for the user's height, weight, and age, and then computes clothing sizes according to the formulas. However, the division a... |
Jun 7, 2018 at 5:32am
[2 replies] Last: There are return statements, one in each function. For example: dou... (by JLBorges)
|
by justStarting
Loop with a Y/N (continue/end)
|
I need to write a program that will ask for a # associated with a day of the week. once they select I need a a Y/N to continue with another try or exit the pro... |
Jun 7, 2018 at 2:32am
[3 replies] Last: I figured it out.. "choice" needed to be a char not an int. A few bro... (by justStarting)
|
by Nashogon
Taking values out of a function to use it in another?
|
Hello , I am new to programming and i'm really stuck! Our teacher gave us a problem , i'm so close to finishing it , but the last part says: - "Create a functi... |
Jun 7, 2018 at 1:03am
[8 replies] Last: the standard hand-rolled algorithm for highest is just this simple loo... (by jonnin)
|
Invalid use of non static data member : Working With 2-D Char Arrays |
I have to create a program to store information for a book store using class. I need to store names of 10 books,along with authors,publishers,cost,stock,quality... |
Jun 6, 2018 at 9:10pm
[3 replies] Last: @adam2016, It gives me a "invalid use of non-static data member" error... (by tpb)
|
by mainecat
libstdc++-6.dll SIGSEGV
|
Hi, can anyone help me debug this problem: (gdb) step PProgram received signal SIGSEGV, Segmentation fault. 0x6fe66a4f in ?? () from C:\MinGW\bin\libs... |
Jun 6, 2018 at 9:09pm
[4 replies] Last: Hi Repeater, thank you again for your help...and good call on noticing... (by mainecat)
|
by newintern
Compare
|
Hi, I've run this code, with the answers in the comments on the right. Is anyone able to explain how these numbers are calculated. I understand I'm comparing... |
Jun 6, 2018 at 5:10pm
[1 reply] : The value is not important. It may not be the same value on all compi... (by jonnin)
|