Beginners - May 2011 (Page 29)

by Teacup
Writing a AVR Software UART
 
Hello Guys, Myself and a friend have been engaged in a personal project where we are utilising a ATmega32a to eventually control 12 hobby servo motors in fou...
[no replies]
by bbcc
Reference and dereference operators
 
Hi there, I am sort of confused by reference and dereference operators in c++. The more I study the more I confused. as far as I understood & is a memory add...
[11 replies] Last: Thank you methodos, you are really great in explaining:) Thanks to ... (by bbcc)
Inventory System
 
Hello, Ive been working on a home inventory system for practice so i can keep track of my hobby but ive ran into 2 problems, these are the last things i need to...
[1 reply] : Regarding problem 1: adjusting inventory amounts. This means changing ... (by closed account D80DSL3A)
by w00ty
Creating class from text file inputs
 
Hello . I was wondering how I would go about doing this I have a function that reads the text file , and have created the class structure before hand But ...
[2 replies] Last: Thanks , will do :) (by w00ty)
What's wrong!!
 
what's wrong with this code ? I've used it before and it works and gives me 2D array , but now when i opened the program again it represent numbers without st...
[3 replies] Last: my sss was the problem i used the same variable for something else , ... (by Thuraya)
by tayf
about 'loop'. help me please..
 
hi guys ı have a problem that ı have to solve but ı cant.now ı will enter a =5.after that ı need odd and even number checker.if the number is odd(first num...
[14 replies] Last: finally i did guys thanks for your help :) #include<stdio.h> const n... (by tayf)
Cannot re-compile
 
I am doing something daft. I am using C++ in VS 10 I change a program and press Ctrl +S to save the changes I press Ctrl+F5 and get the old version. What am...
[1 reply] : i think Ctrl+F5 runs the program...so the changes that have you made a... (by ankitsingh12)
Looping with classes and pointers
 
Ok so I'm working on an assignment that prompts the user for a number of rooms and then asks the user for the length and width of each room. When I compile, I g...
[4 replies] Last: With that last bit of code and a little tweaking, I got it to compile.... (by Brianzor)
Linked List
 
How do I read data from a file into a linked list?
[3 replies] Last: Open a file stream and start reading the names...then insert the names... (by ankitsingh12)
programming problem
 
Hi all! I have a very big problem. Unfortunatelly I forget to do my homework. The task is do a program in c++ which working with graphs. It is free what the pr...
[4 replies] Last: go for and search google for complete programs...on community you are ... (by ankitsingh12)
by WSiaB
Going through an Enumerated List
 
When I try the following: enum DayNames {Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday}; int main () { DayNames dayOfWeek; for (i...
[5 replies] Last: Get in the habit of encapsulating reusable code. It will help you dev... (by webJose)
Help Required - It is urgent
 
Here is a piece of code snippet: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <memory.h> char ** func() { char *a ; int i = 0; f...
[6 replies] Last: You may prefer it to have it local, but it won't work. Make it global... (by webJose)
How to code a shape!!
 
Anyone know how to code a shape? What i mean is like a shape made of * i know how to do a normal array of * but not a heart, Christmas tree, etc...
[4 replies] Last: its not a common task, so i dont believe there are any of those symbol... (by ascii)
Why does C++ make you specify which functions are virtual?
 
Hi, I've been learning Java and C++, and was wondering what the advantage is to the way C++ handles virtual functions, where you have to explicitly state which ...
[4 replies] Last: in essence, all Java methods are virtual in C++, you only pay for wha... (by kfmfe04)
Aborted (core dumped)
 
I am wondering why my code started to list memory allocation after working with a string array. could use some help. here is the source code. string firstName...
[3 replies] Last: You also cannot legally declare arrays like that string array ;... (by Disch)
by Donny
Error C2143
 
This is frustrating the hell out me. I'm also not sure if my random number function is correct, I want a number which is either 0 or 1 at random. Obviously i...
[3 replies] Last: You only need to seed the SRNG one time: srand(time(NULL)); after t... (by Mathhead200)
by zelin
a logic questions
 
Guys someone asked a question... if there are two integers in some variables etc.. how can u find which one is smaller and which one is bigger provided u can...
[2 replies] Last: That sounds fun! #include <iostream> #include <limits> using... (by Mathhead200)
Convert String to a Unique Value
 
Hey guys. I'm working on a class assignment and I'm having trouble converting a string - "Bread" for example, to a unique numerical value - 529384002 for examp...
[3 replies] Last: Thanks a lot to both of you! (by FTLRalph)
Delete a number from static array
 
I am trying to write a program that deletes a number from a static array (I can't use vectors). After this program compiles, I get the following error: error...
[2 replies] Last: thank you, no clue how I missed that (by Maese909)
Array of objects questions.
 
I am very confused about array of objects coding. I have looked around a bit, and nothing of what I found was helpful in having me actually understand it (cause...
[5 replies] Last: #include <string> //All the members of this class are private, a... (by Mathhead200)
May 2011 Pages: 1... 2728293031... 48
  Archived months: [apr2011] [jun2011]

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