Beginners - July 2014 (Page 42)

Grabbing More data...
 
Hello all, I have a program that is near complete (thanks to users like you), but there is just one more thing I would like it to be able to do. The program ...
[3 replies] Last: @dhayden I realize that this is the case, I agree it is more of a ... (by Osceola)
by bonho
broadcasting with named pipes
 
I am exploring to use named pipes for IPC for the low latency and reliable need. At this moment I'll have the pipe server to listens to the following simultane...
[no replies]
Winsock and system()
 
Here's my question 1. Can someone tell me where can I learn about winsock ? Or maybe a book about winsock ? 2. I know that system() are OS-dependent and b...
[no replies]
random number is always 1
 
I've been working on this game that requires a random number between 0 and 6. Here's the code I used: srand(static_cast<unsigned int> (time(0))); pos = ...
[10 replies] Last: I think this is just how some implementations of srand/rand works. ran... (by Peter87)
Gui Qt
 
My Program does not work It says the program stopped working ...... #include "mainwindow.h" #include <QApplication> #include <QWidget> #include <QMainWindo...
[3 replies] Last: Thanks bro.......... (by Salman0349)
program developing
 
Write your question here. I want to writ a program which can help me extract data according to user interest and then transfer it into my database. for example...
[1 reply] : With a small team of people and a few years work you might get somethi... (by Yay295)
float value equation
 
Hello. there seems to be a slight bug somewhere in my program (slight bug by .000001 to be precise) I've been trying to think of a logical equation to solve th...
[3 replies] Last: its a double buffered key input in opengl. once its hit it outputs the... (by dark ninjuh)
by s1l3nt
Calculating number of rows in a 2D array
 
I am writing this simple program that takes an 2D array like such: "######################", "#@ # X #", "# # #", "# ...
[2 replies] Last: I see I kinda screwed myself here, because at some point the @ would ... (by s1l3nt)
by hero80
learn by teaching
 
Write your question here. Am a beginner in C++ language. am a 2nd year student in computer science and i desire to take C++ tutorial with my colleague in my de...
[5 replies] Last: Do you have trouble understanding what you read? I wasn't comparing dr... (by BHX)
by myregm
list
 
I want a function or algorithm ot find similar elements in two or more lists (from STL). for example: list1 = a,d,t,e,b list2 = t,k,p,w,e and answer: list3 = t,...
[1 reply] : There may already be a function to do this, but here's some pseudo-cod... (by Yay295)
Switch statement & if statement issue
 
I am writing a choose your own adventure sort of thing. My code is included below. Since there is a lot of narrative in this game, I cut out the storyline bits ...
[2 replies] Last: Oh, thanks so much! (by compass)
adding odds
 
hi everyone, so I want SumOdds to add for example the first 4 odds, but the function is taking 4 as an index so it will start at the beginning of the array and...
[4 replies] Last: got it! thanks again! (by serrld113)
Testing each array
 
The program below will generate 5 random numbers and asks the user to enter 5 numbers to see how many numbers he guessed right. What i need help is how do i tes...
[2 replies] Last: Ohhh that worked. ty (by darkn3ss)
Copying a pointer's items to another pointer
 
So I have these instructions: " If there is NOT enough space Set m_space to m_space + 5 Allocate a new pointer to an integer with m_space elements. Copy th...
[1 reply] : line 10 is not how you delete a pointer. Use delete m_items; I'm ... (by Yay295)
by DianaV
compiler
 
Hi, I changed books from Jumping into C++ using code-block as my compiler and #include <iostream> to "Programming: Principles and Practice using C++" got the ...
[15 replies] Last: You could add the includes to the .cpp instead of including the header... (by admkrk)
Insert int into int array
 
Hi guys, I'm having trouble trying to put an int into an int array. I'm supposed to use a function called FillArray for the user to input an array of their choi...
[5 replies] Last: thank you! I was able to fix the problem by adding a -1 here: for (i... (by serrld113)
by dave92
Dudeney Number problem
 
hello everyone :) iam new here and i wish to learn from the pro programmers over here iam having a trouble to solve this problem actually : Write a program ...
[4 replies] Last: thanks again for your help that was kinda helpful but i still didn't... (by dave92)
unable to print float
 
Im using ncurses but there seems to be NO WAY that i can print a float to the console. is that really not supported?
[2 replies] Last: You can use printw or similar. It uses the same format as printf. http... (by Peter87)
"deleting" last int of array
 
I enter the numbers 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 into the array and choose a number to delete (like 2) but then the output looks like this {1, 3, 4, 5, 6...
[7 replies] Last: you declare an array of size 'SIZE' valid index for accessing that arr... (by ne555)
Need help with the simple "hello world" program
 
I am having a problem with the hello world program. It use to work fine then all of a sudden this "line" dissapeared and i don't know how to get it back. The ...
[4 replies] Last: no problem, but we are going to need more information to help you. you... (by Little Bobby Tables)
July 2014 Pages: 1... 40414243
  Archived months: [jun2014] [aug2014]

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