General C++ Programming - October 2015 (Page 14)

Arrays (Unlimited Input)
 
What I am trying to do, is allow the user to input any number of variables (for ex: 1 6 945 fhds)and my program will check for any strings. I have heard of arra...
[1 reply] : Arrays cannot be resized - once they are created they are stuck with t... (by LB)
by Suar
Writing a function problem..
 
Hello everyone, I came across this question and it's driving me crazy that I don't seem to know how to start writing the code necessary. So the question is: ...
[2 replies] Last: void DIYPrint(char c, int nteeth, int amp=5) { int i,j,k; for (i=1;i... (by hdj)
problem in receiving a data within a socket
 
Hello. I am using UDP protocol to receive a data from another computer in win32 API. For receiving a data I have created the socket,but data is not received fr...
[8 replies] Last: One more thing since I am receiving a data from remote computer so I h... (by mandar678)
Arrays question
 
I have a question that made me crazy : My question might not be doable. if i have an int array of size 20 , EX int array ; and i want to keep adding to thi...
[2 replies] Last: There are two big issues that jump out at me: 1) You call add multipl... (by Danny Toledo)
LinkList problem
 
list_driver.cpp #include <cctype> // Provides toupper #include <iostream> // Provides cout and cin #include <cstdlib> // Provides EXIT_SUCCESS...
[1 reply] : Use [co de] tags. You didn't ask a question. What is the problem?... (by Zhuge)
Running program for a period of time
 
Hello! How can I make my code to run for a fixed period of time? Something Like runfor10seconds{ ch=_getch(); } For 10 seconds the program will wai...
[2 replies] Last: http://stackoverflow.com/questions/9240109/how-to-run-a-program-for-a-... (by closed account 48T7M4Gy)
why am I getting expected primary-expression before { token
 
The problem is "expected primary-expression before '{' token" in this part of the code: ---------------------------------------------------------- void find...
[5 replies] Last: Change your Code Blocks settings and point it to C:/MinGW or whatever ... (by LB)
a question for Code::blocks user
 
Hi, I recently started to use code::blocks and my problem is in compiler flags, c++14 or c++11 standarts are not exist and when I try to add them via other opti...
[1 reply] : It is likely that the version of GCC/MinGW bundled with Code Blocks is... (by LB)
X Window system
 
Hello, i cant find docs for the X window System library(link pls). By the way can u give me some useful sites with XWS lessons. Thanks.
[no replies]
OpenGL 3D Zoom in and out
 
How do I zoom in to near plant and out. I can rotation the object. But it not about rotation. It all about zoom in and out. glScalef is for 2d. I need for 3d o...
[no replies]
by yj1214
Could someone please help me moving a screen?
 
I have been working to fix this problem for a long time but I still don't know how to fix it. I have asked this question on Stackoverflow but there was no answe...
[2 replies] Last: See: http://s4.postimg.org/l327q8ffx/window_reposition.png #include ... (by cire)
Search Trie for prefixes
 
Hi, I have implemented a Trie structure in C, and implemented insert and search function. I have a problem with search. It returns only full words, and not pre...
[2 replies] Last: The reason your original failed is because you never assigned the valu... (by doug4)
How to Add and Subtract arrays?
 
I need to make a calculator that adds and subtracts arrays. The problem the professor didn't really explain it well. This is what I got from the notes I took in...
[4 replies] Last: There are two parts to this. The first is understanding the problem an... (by kbw)
Enumeration Issue/learning point
 
I see that with enumerated code often times will see this: enum Animal , , , ; then later in code: Animal animal; cout<<animal; my question is abt Animal ani...
[7 replies] Last: Got it, finally. Thx! (by technologist)
How to loop back to main menu?
 
Okay I made this program which basically has a menu and will have different options given at the menu. The user can choose to run different parts of the progra...
[3 replies] Last: can someone help ? :( (by closed account 9ypNhbRD)
HP Fortify Privacy Violation issue.
 
HP Fortify flags a privacy violation critical error when writing an id to archive. Below is the mock-up of the code snippet(As the code is CR protected) void...
[no replies]
C program to prints out letters in alphabet order
 
Helo want to create program that print out letters in alphabetical order in input number defines how much numbers it should print out Input a 3 c 10 E 5 ...
[1 reply] : #include <ctype.h> #include <stdio.h> #include <stdlib.h> const char... (by MiiNiPaa)
reversing a combination of int and character
 
dear senior programmers can you help me with a programm that has a single user input that will reverse both the character and number for example 123abc ...
[2 replies] Last: Thank you so much (by Geraldization)
let them talk
 
What do u have to say
[4 replies] Last: It matters because it wastes peoples' time. Someone might spend the t... (by MikeyBoy)
Need Help Adding Loops
 
#include <iostream> using namespace std; int main() { int num; cout << endl << "Enter numbers, 999 to quit" << endl; cin >> num; ...
[1 reply] : If you're not using a container class like vectors or arrays, you're g... (by YFGHNG)
October 2015 Pages: 1... 1213141516... 27
  Archived months: [sep2015] [nov2015]

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