General C++ Programming - April 2018 (Page 11)

dijkstra
 
Given N and an NxN matrix , find the shortest path from (1, 1) to (n, n) example : Input : 3 1...
[2 replies] Last: thanks (by MattC98)
by ir8o8
Palindromes
 
Hey all, I am doing a Palindrome code and I need some help on my function called int palindrome_fix_...
[1 reply] : Hi ir8o8, I'm amazed how useless are those exercices ^_^~ I suppose yo... (by punksheep)
Non-Standard Type Sizes - Networking
 
Hello there! So to clarify the title, it's not guaranteed that an "int" for example will be the sam...
[1 reply] : Use plain text. When you feel the urge to design a complex binary fi... (by JLBorges)
Leibniz's series pi/4 = 1 - 1/3 + 1/5 - 1/7 + ....
 
Write a program Q3.cpp to compute π by using the following formula. pi/4 = 1 − 1/3 +1/5 − 1/7 +...
[no replies]
include versus library files as cause of error?
 
Compiling I get the following output: x64_MT9V034_vid\Debug/../src/main.cpp:142: undefined refer...
[7 replies] Last: Right place right time. I'll make understanding this article a mission... (by technologist)
by Pumps
Reading text file into linked list
 
Write your question here. I am working on a program that requires me to read a text file and insert...
[1 reply] : Hi Pumps, You were very close ^_^ You just inverted the two vari... (by punksheep)
I got some problem and need some help to finish the homework
 
Write a program Q2.cpp that meets the following requirements. a. Write a function inc()that will in...
[2 replies] Last: Hi johnlai, Your teacher is very strange :P... this exercice teac... (by punksheep)
ANYONE KNOWS THE PROBLEM?
 
Anyone knows how to solve the problem I'm having #include<iostream> #include<cmath> using na...
[1 reply] : HI Javyesco... Your "option choice" is read into the meN variabl... (by punksheep)
Vending Machine Money Validation
 
Hello, I am working on a vending Machine simulator. I am missing the payment part. What I need...
[3 replies] Last: thank you so much for your input. I will continue making those correct... (by Anahuac18)
Exception Handling (Exception keeps printing, ignoring other functions)
 
The primary issue is my exception within my test function continuously prints the exception, but ign...
[3 replies] Last: What is the value of size when you call add ? What is the value of ... (by JLBorges)
by tina e
3D Array with multiple values in each cell- please help
 
How can I use objects to create an an array with the dimensions 100x100x100 where each cell contains...
[3 replies] Last: You can not define the allocate number 100 multiple 3 times in given p... (by shivkumar12)
Makefile problems with object files
 
I am trying to write a Makefile that will compile an example project. As long as I don't define obj...
[2 replies] Last: @doug4 Yes, that was the problem, and additionally the different sour... (by G0rdano)
unoriented graph
 
Mark invented facebook, meanwhile some people created friendships, he doesnt want to waste time so h...
[no replies]
quest/wrong
 
i have this quest : https://csacademy.com/contest/round-76/task/candy-boxes/ why is this code wrong?...
[10 replies] Last: tl;dr: Your algorithm is faulty. Matt, I don't want you to have a bad... (by dhayden)
Why am I getting garbage values? - Using arrays to calc polynomial roots
 
Hello, I am writing a program that will take coefficients of a polynomial, store them in an array ...
[2 replies] Last: Finished it ! Thanks for your help! #include <iostream> #include <... (by Shishykish)
by tina e
Finding the Mean of 4D image using CImg Library
 
Hi! I have an image im(100,100,100,35). This means that it is 100x100x100 in dimensions and each ...
[no replies]
Weird error when compiling my client
 
Hello everyone, I am new to C++ and learning more about it, grabbed a client for a game from the ...
[6 replies] Last: Hey guys ! Both of you thanks for responding and trying to help me sol... (by Ralumbi)
std::future slow
 
Code and tests are here: https://wandbox.org/permlink/WRrexu49nQ5vnGyb Is there a reason for this?...
[1 reply] : clang gave me there the less outrageous 34049 17024 37675 19496 https:... (by Cubbi)
Sorting a Map
 
I am attempting to sort a map<string,int> varName i tried using the std sort with the built in iter...
[2 replies] Last: A std::map is always sorted by its keys, by definition. (by mbozzi)
Tally via Map/ I/O issues
 
I am having trouble getting my head around what exactly i am supposed to do. I am trying to create ...
[5 replies] Last: I am ignoring the remove non-alpha right now because the input exampl... (by dhayden)
April 2018 Pages: 1... 910111213... 17
  Archived months: [mar2018] [may2018]

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