General C++ Programming - September 2016 (Page 11)

Compiling with libstdc++.so.5 instead of 6
 
Hello! I'm building a process that will run in several machines that have different versions of libstdc++. I need to make the process compatible for all of ...
[no replies]
by bozmin
Printing a variable to change it !
 
is there any way to print a variable, and edit it on line ???? ex: line1. string name1="Marc"; string name2; line2. cout<<"Your name is :"<<name1; ...
[4 replies] Last: oh, looks so easy now! i got it, thank you for your help ! (by bozmin)
Store the value of any key the user presses
 
Is there a easier way of detecting any button the user presses and storing it in a variable then just making a lot of if statements with GetAsyncKeyState?
[1 reply] : Almost always a long chain of if-statements is a bad idea. Switches a... (by mbozzi)
Beginning with DEV C++
 
Hello, I am a beginner with C++ and am using DEV C++ 4.9.4.2. I created my very first project; Hello WOrld. However it is failing to work. Here is the code I ...
[2 replies] Last: There's a problem with the install. Your code is fine. https://source... (by SamuelAdams)
by varmak
Segmentation Fault
 
I'm currently trying to code a BFS styled program for an assignment of mine. Logically speaking, I think I have it down but it was taking too long to execute so...
[4 replies] Last: show your updated code. also, comment your `shortestPath()' function ... (by ne555)
by Mak3
Pig latin Please help
 
Using this code i have to create a Pig Latin Converter program that will read in a file called "pigLatinFile.in" of English sentences, convert them into Pig Lat...
[14 replies] Last: Why do you have two threads for the same problem? http://www.cplusplus... (by AbstractionAnon)
by bozmin
Changing a variable in an object
 
Hello, How can i change a variable that had been created through a constructor?? I have a Constructor1(FirstName, LastName, PhoneNumber); and Constructor2...
[4 replies] Last: Hey, thank you ! here is the code : I just try to create a contact th... (by bozmin)
My code doesn't compile
 
Hi everybody, I have a code which I don't compile. This code is : //====================LIBRARY=================================================== #include ...
[4 replies] Last: Compile C code with a C compiler. The C++, while close, can differ. ... (by keskiverto)
by leon13
how to rotate elements to the left in array?
 
im trying to rotate an array to the left for example rotateLeft3([1, 2, 3]) → [2, 3, 1] here is my soultuion but its not working for some reason. Can s...
[1 reply] : Line 1 should be: #include <iostream> otherwise it doesn't compile. ... (by fcantoro)
Tolong Please
 
1. Buatlah program untuk mengurutkan (sorting) dan mencari (searching) data dengan ketentuan sebagai berikut : a. Data angka yang diinputkan masih berupa data ...
[1 reply] : Please note that this is not a homework site. We won't do your homewor... (by keskiverto)
expression must have bool type (or be convertible to bool)
 
I have been thru the other forums on this issue, but cannot find a solution to this issue. If anyone can provide some assistance, I would appreciate it. This ...
[3 replies] Last: Thanks!! (by joekamel12)
Object "access permission" questions
 
I already have a solution to this problem that will work if there aren't any other solutions that would be better to use but I just thought I would ask if there...
[2 replies] Last: It is an application that hosts scripts and other elements. Different... (by primem0ver)
by asjad
Create this program.
 
Set the series 2,4,6....18,20. into the array.Then perform processes to move the number one position to the right and store the content of the last element into...
[11 replies] Last: I agree with JayhawkZombie Realise that TheSmallGuy (aka gentleg... (by TheIdeasMan)
Triangle solving program assignment
 
So here's my code for solving triangles, the first part has no problem, but I can't figure out how to compute the second part, which is to solve by entering the...
[1 reply] : You know the lengths of all 3, and you can compute the angles, but tha... (by JayhawkZombie)
Fastest and Efficient way of file read and write
 
What is the fastest way to read and write file in C++ ? Data is plain text (human readable) not binary, with some control characters.
[7 replies] Last: Controlling the size of your writes will help a lot more than you migh... (by SamuelAdams)
How can I write a driver for a custom device?
 
Hi at all! I was wondering a thing. Let's pretend I make a electronical device, like a gamepad, which generate a sequence of bits (so I have a memory buffer) wi...
[1 reply] : Drivers are based on the chips, such a video, network, serial port, yo... (by SamuelAdams)
File extension change from .txt to .vbs
 
I am working on a project to change .txt files to .vbs files without manually changing the extension... How would I change the file extension using c++ so that ...
[4 replies] Last: It's Windows Batch script, not C++. What errors are you getting? (by Duthomhas)
Function Help
 
I am trying to create a function that gets the area of a triangle with the user inputting the points (input is in another function). However, I cannot seem to g...
[2 replies] Last: Thanks So much! I can't believe I forgot that. (by Univcplus)
I want to return a hexadecimal
 
I want my function to return a hexadecimal value or is there a way to convert a decimal to hexadecimal and store it in a int.
[1 reply] : An int is stored as binary. It does not keep track of what numeral sys... (by Peter87)
Recursive Function
 
Write a recursive function that takes a non-negative integer as an argument and displays the digits of the integer out in reverse order. This is my code so...
[2 replies] Last: your not calling the function correctly in the main. you need to add a... (by leon13)
September 2016 Pages: 1... 910111213... 19
  Archived months: [aug2016] [oct2016]

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